From: Tomas Hruby Date: Mon, 5 Dec 2011 01:08:48 +0000 (+0000) Subject: KERNEL - cause SIGSEGV if bad pointer to kernel X-Git-Tag: v3.2.0~135 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc-confgen.html?a=commitdiff_plain;h=192db7096052db2f26098cc2da394050c272e1df;p=minix.git KERNEL - cause SIGSEGV if bad pointer to kernel --- diff --git a/kernel/system.c b/kernel/system.c index 9007b4ce4..317aeb687 100644 --- a/kernel/system.c +++ b/kernel/system.c @@ -90,6 +90,7 @@ PRIVATE void kernel_call_finish(struct proc * caller, message *msg, int result) caller->p_delivermsg_vir, caller->p_name, caller->p_endpoint); + cause_sig(proc_nr(caller), SIGSEGV); } } } @@ -154,7 +155,8 @@ PUBLIC void kernel_call(message *m_user, struct proc * caller) else { printf("WARNING wrong user pointer 0x%08x from process %s / %d\n", m_user, caller->p_name, caller->p_endpoint); - result = EBADREQUEST; + cause_sig(proc_nr(caller), SIGSEGV); + return; }