Re: mmap, SIGBUS, and handling it

From: Maciej W. Rozycki (macro@ds2.pg.gda.pl)
Date: Fri May 10 2002 - 10:53:21 EST


On Fri, 10 May 2002, David S. Miller wrote:

> PS: why signal(SIGBUS,SIG_IGN) doesnt work, but a user handler its called
> if set with signal(SIGBUS,handle_sigbus) ?
>
> How would you like the kernel to "ignore" a page fault that cannot be
> serviced?

 I would expect it to return from the handler with no action, possibly
re-executing the faulting instruction (if the reason was synchronous) and
causing an infinite loop. For consistency, whether it makes sense, or not
(ditto for SIGSEGV, etc.).

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

- 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 : Tue May 14 2002 - 12:00:14 EST