Al Viro 5fdb54270f 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:49:19 +02:00
..
2020-09-13 21:22:55 -04:00
2022-02-25 09:36:06 +01:00
2018-12-28 12:11:45 -08: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
2022-05-19 19:30:31 +02:00
2021-07-08 11:48:21 -07:00
2019-03-05 21:07:13 -08:00
2022-02-25 09:36:06 +01:00
2021-12-13 12:04:45 -06:00
2023-02-25 11:25:42 +01:00