mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
powerpc/32: Warn and return ENOSYS on syscalls from kernel
Since commitb86fb88855("powerpc/32: implement fast entry for syscalls on non BOOKE") and commit1a4b739bbb("powerpc/32: implement fast entry for syscalls on BOOKE"), syscalls from kernel are unexpected and can have catastrophic consequences as it will destroy the kernel stack. Test MSR_PR on syscall entry. In case syscall is from kernel, emit a warning and return ENOSYS error. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/8ee3bdbbdfdfc64ca7001e90c43b2aee6f333578.1580470482.git.christophe.leroy@c-s.fr
This commit is contained in:
parent
030e347430
commit
9e27086292
3 changed files with 40 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue