Re: [RFC PATCH v2 10/13] x86/um: nommu: signal handling

2024-11-30 Thread Hajime Tazaki
Hello, On Thu, 28 Nov 2024 19:37:21 +0900, Benjamin Berg wrote: > > +#ifndef CONFIG_MMU > > + memset(&r, 0, sizeof(r)); > > + /* mark is_user=1 when the IP is from userspace code. */ > > + if (mc && (REGS_IP(mc->gregs) > uml_reserved > > +    && REGS_IP(mc->gregs) < high_physmem)) > > + r.is_us

Re: [RFC PATCH v2 10/13] x86/um: nommu: signal handling

2024-11-28 Thread Benjamin Berg
Hi, On Mon, 2024-11-11 at 15:27 +0900, Hajime Tazaki wrote: > This commit updates the behavior of signal handling under !MMU > environment. 1) the stack preparation for the signal handlers and > 2) restoration of stack after rt_sigreturn(2) syscall.  Those are needed > as the stack usage on vfork(

[RFC PATCH v2 10/13] x86/um: nommu: signal handling

2024-11-10 Thread Hajime Tazaki
This commit updates the behavior of signal handling under !MMU environment. 1) the stack preparation for the signal handlers and 2) restoration of stack after rt_sigreturn(2) syscall. Those are needed as the stack usage on vfork(2) syscall is different. It also adds the follow up routine for SIGS