[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: New Kernel Crash-Exploit discovered
- From: Brian Hirt <bhirt mobygames com>
- To: Discussion of the Fedora Legacy Project <fedora-legacy-list redhat com>
- Subject: Re: New Kernel Crash-Exploit discovered
- Date: Tue, 15 Jun 2004 09:25:24 -0600
On Jun 15, 2004, at 8:36 AM, Simon Weller wrote:
Signed-Off-By: Sergey Vlasov <vsu altlinux ru>
--- linux-2.6.6/include/asm-i386/i387.h.fp-lockup 2004-05-10
06:33:06
+0400
+++ linux-2.6.6/include/asm-i386/i387.h 2004-06-12 22:02:58 +0400
@@ -48,10 +48,17 @@
save_init_fpu( tsk ); \
} while (0)
+/*
+ * There might be some pending exceptions in the FP state at this
point.
+ * However, it is too late to report them: this code is called
during .execve()
+ * (when the original executable is already gone) and during
sigreturn()
(when
+ * the signal handler context is already lost). So just clear them
to
prevent
+ * problems later.
+ */
#define __clear_fpu( tsk ) \
do { \
if ((tsk)->thread_info->status & TS_USEDFPU) { \
- asm volatile("fwait"); \
+ asm volatile("fnclex"); \
the patch quoted in this message is different than the one linus
approved:
http://linux.bkbits.net:8080/linux-2.4/
gnupatch%4040cdf6f8V7sOe5n96HA5Q7r9uDRvJQ
#define clear_fpu( tsk ) do { \
if ( tsk->flags & PF_USEDFPU ) { \
- asm volatile("fwait"); \
+ asm volatile("fnclex ; fwait"); \
tsk->flags &= ~PF_USEDFPU; \
stts(); \
} \
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]