Re: [PATCH v4 0/2] make sigaltstack() compatible with swapcontext()

2016-03-06 Thread Stas Sergeev
06.03.2016 23:02, Szabolcs Nagy пишет: * Stas Sergeev [2016-03-01 00:29:03 +0300]: The following patches make it possible to use swapcontext() in a sighandler that works on sigaltstack. i don't think that's possible, the (obsolete) userspace *context functions cannot operate on kernel provided

Re: [PATCH v4 0/2] make sigaltstack() compatible with swapcontext()

2016-03-06 Thread Szabolcs Nagy
* Szabolcs Nagy [2016-03-06 21:02:08 +0100]: > * Stas Sergeev [2016-03-01 00:29:03 +0300]: > > The following patches make it possible to use swapcontext() > > in a sighandler that works on sigaltstack. > > i don't think that's possible, the (obsolete) userspace > *context functions cannot operat

Re: [PATCH v4 0/2] make sigaltstack() compatible with swapcontext()

2016-03-06 Thread Szabolcs Nagy
* Stas Sergeev [2016-03-01 00:29:03 +0300]: > The following patches make it possible to use swapcontext() > in a sighandler that works on sigaltstack. i don't think that's possible, the (obsolete) userspace *context functions cannot operate on kernel provided ucontext_t structs, so they are not u

[PATCH v4 0/2] make sigaltstack() compatible with swapcontext()

2016-02-29 Thread Stas Sergeev
The following patches make it possible to use swapcontext() in a sighandler that works on sigaltstack. The approach is inspired by Andy Lutomirski's suggestion that sigaltstack should disarm itself after saving into uc_stack: https://lkml.org/lkml/2016/2/1/594 I add the SS_AUTODISARM flag that doe