]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "exec: avoid RLIMIT_STACK races with prlimit()"
authorKees Cook <keescook@chromium.org>
Tue, 12 Dec 2017 19:28:38 +0000 (11:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Dec 2017 22:26:25 +0000 (14:26 -0800)
commit19c444005246e75d7368587a51306b6462a25eab
tree82a08df0d53ff8eaed94c405f79690a5c11f4fae
parent75ebcd3d699c8fec1bacd5d2bb33ea74cbbb09b6
Revert "exec: avoid RLIMIT_STACK races with prlimit()"

This reverts commit 6b65ea67b6c496dafa5ea614d9a28d1a5595fd6d.

SELinux runs with secureexec for all non-"noatsecure" domain transitions,
which means lots of processes end up hitting the stack hard-limit change
that was introduced in order to fix a race with prlimit(). That race fix
will need to be redesigned.

Reported-by: Laura Abbott <labbott@redhat.com>
Reported-by: Tomáš Trnka <trnka@scm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c