[Top] [All Lists]

ret_from_sys_call and signal

Subject: ret_from_sys_call and signal
From: Atsushi Nemoto <>
Date: Fri, 31 Aug 2001 15:23:10 +0900 (JST)
Organization: TOSHIBA Personal Computer System Corporation
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 <=