ret_from_sys_call and signal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux