Re: [PATCH] powerpc/lib/sstep: Don't use __{get/put}_user() on kernel addresses

2021-11-02 Thread Michael Ellerman
On Thu, 16 Sep 2021 20:43:36 +0200, Christophe Leroy wrote: > In the old days, when we didn't have kernel userspace access > protection and had set_fs(), it was wise to use __get_user() > and friends to read kernel memory. > > Nowadays, get_user() and put_user() are granting userspace access and >

[PATCH] powerpc/lib/sstep: Don't use __{get/put}_user() on kernel addresses

2021-09-16 Thread Christophe Leroy
In the old days, when we didn't have kernel userspace access protection and had set_fs(), it was wise to use __get_user() and friends to read kernel memory. Nowadays, get_user() and put_user() are granting userspace access and are exclusively for userspace access. Convert single step emulation fu