Al Viro f6cf5f13fa sh: sanitize the flags on sigreturn
[ Upstream commit 573b22ccb7ce9ab7f0539a2e11a9d3609a8783f5 ]

We fetch %SR value from sigframe; it might have been modified by signal
handler, so we can't trust it with any bits that are not modifiable in
user mode.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-30 12:47:54 +02:00
..
2021-11-25 09:48:31 +01:00
2020-09-13 21:22:55 -04:00
2018-12-28 12:11:45 -08:00
2020-08-14 22:05:13 -04:00
2020-06-01 14:48:52 -04:00
2021-04-22 13:32:39 +01:00
2020-06-01 14:48:52 -04:00
2020-09-13 21:22:55 -04:00
2020-06-01 14:48:52 -04:00
2021-07-08 11:48:21 -07:00
2019-03-05 21:07:13 -08:00
2023-02-01 08:27:20 +01:00
2023-03-17 08:49:03 +01:00