]> 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)
commit3fa95bd5185b039c0db2bbe4972d8ca11276f0a4
tree82a08df0d53ff8eaed94c405f79690a5c11f4fae
parent885beb4654e9ae9d7c0ba71011dcbc7f543fa5d3
Revert "exec: avoid RLIMIT_STACK races with prlimit()"

This reverts commit 892f7709362a4a085e3bb104eb1150643b7ae879.

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