sh: sanitize the flags on sigreturn
stable inclusion from stable-v5.10.177 commit 8beb18c25beff12f27ffeb78f4e1de31a0e7cad0 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8beb18c25beff12f27ffeb78f4e1de31a0e7cad0 -------------------------------- [ Upstream commit 573b22cc ] 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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit ddfb9d8f)
Loading
Please sign in to comment