]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit779f4e1c6c7c661db40dfebd6dd6bda7b5f88aa3
tree82a08df0d53ff8eaed94c405f79690a5c11f4fae
parentf8940a0f20ebf3f1fb81008a6a9b287b65a85a92
Revert "exec: avoid RLIMIT_STACK races with prlimit()"

This reverts commit 04e35f4495dd560db30c25efca4eecae8ec8c375.

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