Al Viro 8beb18c25b 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-04-05 11:23:39 +02:00
..
2023-03-17 08:45:14 +01:00
2023-02-01 08:23:19 +01:00
2023-02-01 08:23:19 +01:00
2023-04-05 11:23:39 +02:00
2023-03-17 08:45:17 +01:00
2023-02-01 08:23:19 +01:00