lkml.org 
[lkml]   [2001]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Moi!

The page fault handler for i386 contains a typo that will cause
SIGBUS errors to disguise as SIGSEGVs in their siginfo structs.
Here's a trivial fix to sort out the who is who. Patch applies
at least to 2.4.9 and (with a little fuzz) 2.4.9-ac2.

Regards,

Daniel.

---[snip]---

--- arch/i386/mm/fault.c.vanilla Thu Jul 12 11:52:05 2001
+++ arch/i386/mm/fault.c Thu Sep 6 23:38:45 2001
@@ -313,7 +313,7 @@
tsk->thread.cr2 = address;
tsk->thread.error_code = error_code;
tsk->thread.trap_no = 14;
- info.si_code = SIGBUS;
+ info.si_signo = SIGBUS;
info.si_errno = 0;
info.si_code = BUS_ADRERR;
info.si_addr = (void *)address;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:02    [W:0.333 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site