Re: [PATCH v3 1/2] powerpc/32: Warn and return ENOSYS on syscalls from kernel

2020-03-05 Thread Michael Ellerman
On Fri, 2020-01-31 at 11:34:54 UTC, Christophe Leroy wrote: > Since commit b86fb88855ea ("powerpc/32: implement fast entry for > syscalls on non BOOKE") and commit 1a4b739bbb4f ("powerpc/32: > implement fast entry for syscalls on BOOKE"), syscalls from > kernel are unexpected and can have

[PATCH v3 1/2] powerpc/32: Warn and return ENOSYS on syscalls from kernel

2020-01-31 Thread Christophe Leroy
Since commit b86fb88855ea ("powerpc/32: implement fast entry for syscalls on non BOOKE") and commit 1a4b739bbb4f ("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