linux-mips
[Top] [All Lists]

ret_from_sys_call and signal

To: linux-mips@oss.sgi.com
Subject: ret_from_sys_call and signal
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Fri, 31 Aug 2001 15:23:10 +0900 (JST)
Organization: TOSHIBA Personal Computer System Corporation
Sender: owner-linux-mips@oss.sgi.com
After merging with 2.4.6 kernel, ret_from_sys_call (and
o32_ret_from_sys_call) does not check whether it returns to kernel
mode or not.

syscall may happen in kernel mode, so we should check KU_USER bits (as
 done in past code).  Is this right?

At least, currently DO_FAULT() jumps to ret_from_sys_call and it may
cause problems.  If page fault happened in kernel code when any
signals pending, do_signal() is called before returning to kernel and
it fails to setup sigcontext.

Any ideas?

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>
  • ret_from_sys_call and signal, Atsushi Nemoto <=