]> git.baikalelectronics.ru Git - kernel.git/commit
exec: Copy oldsighand->action under spin-lock
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 7 Jun 2021 13:54:27 +0000 (15:54 +0200)
committerKees Cook <keescook@chromium.org>
Tue, 25 Oct 2022 22:05:58 +0000 (15:05 -0700)
commiteea81823bb85ab6960d5c0e627f6f4e36007f25c
tree9e77ced5c3e449aa1f607c11de88b3295c7112a9
parent6358759813eb1920a7e9bc57799a80a94f6c66b8
exec: Copy oldsighand->action under spin-lock

unshare_sighand should only access oldsighand->action
while holding oldsighand->siglock, to make sure that
newsighand->action is in a consistent state.

Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Cc: stable@vger.kernel.org
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/AM8PR10MB470871DEBD1DED081F9CC391E4389@AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM
fs/exec.c