Skip to content

sigaltstack: remove EPERM check

Stas Sergeev linux-api lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests: Add test for sigaltstack(SS_DISABLE) inside sighandlertools/testing/selftests/Makefile tools/testing/selftests/sigaltstack/Makefile tools/testing/selftests/sigaltstack/sas.c+126 -00 replies
2/2sigaltstack: remove EPERM check to make swapcontext() usablekernel/signal.c+5 -104 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] sigaltstack: remove EPERM check

The following patches add the self-test for sigaltstack(SS_DISABLE) inside the signal handler, and remove the EPERM check in a sigaltstack() syscall.
This is needed to make sigaltstack() compatible with swapcontext(): before using swapcontext() inside the sighandler, the sigaltstack should be disabled, or the stack will be corrupted by the subsequent signals.