Rdtsc in new kernels

Pavel Machek (pavel@bug.ucw.cz)
Mon, 10 May 1999 21:49:13 +0200


Hi!

It seems to me that with new kernels rdtsc is not being used unless
cpu type is set to 586/TSC+. This is difference from old kernels which
used rdtsc whenever it was available. This is why my badboy exploit
stopped running on my home computer.

I think that wherever rdtsc is used is pretty vital piece of
information, and I think it really should be available. (I was running
my computer for pretty long time thinking rdtsc is enabled... You
guessed it it was not.)

Pavel

--- clean/arch/i386/kernel/setup.c Fri Mar 26 17:45:59 1999
+++ linux/arch/i386/kernel/setup.c Mon May 10 21:39:38 1999
@@ -938,6 +938,11 @@
"f00f_bug\t: %s\n"
"fpu\t\t: %s\n"
"fpu_exception\t: %s\n"
+#ifdef CONFIG_X86_TSC
+ "using_rdtsc\t: yes\n"
+#else
+ "using_rdtsc\t: no\n"
+#endif
"cpuid level\t: %d\n"
"wp\t\t: %s\n"
"flags\t\t:",

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.          Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/