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

Michael Ellerman patch-notifications at ellerman.id.au
Tue Nov 2 21:11:50 AEDT 2021


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
> are exclusively for userspace access.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/lib/sstep: Don't use __{get/put}_user() on kernel addresses
      https://git.kernel.org/powerpc/c/e28d0b675056d072f1f11fa644d0efbb016bb7ce

cheers


More information about the Linuxppc-dev mailing list