Re: mmap, SIGBUS, and handling it

From: Dave Gilbert (Home) (gilbertd@treblig.org)
Date: Fri May 10 2002 - 10:56:03 EST


David S. Miller wrote:
> From: Mihai RUSU <dizzy@roedu.net>
> Date: Fri, 10 May 2002 18:37:21 +0300 (EEST)
>
> 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?

Well imagining you really wanted to do it you could skip a store
instruction or put a dummy value in the register that something is being
loaded into.

Dave

-
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