[PATCH] Wrong signal in SIGBUS's siginfo.

From: Daniel Kobras (kobras@tat.physik.uni-tuebingen.de)
Date: Thu Sep 06 2001 - 16:52:22 EST


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/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:38 EST