]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/sstep: Convert to scoped user access
authorChristophe Leroy (CS GROUP) <chleroy@kernel.org>
Tue, 10 Mar 2026 10:03:41 +0000 (11:03 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 1 Apr 2026 03:51:07 +0000 (09:21 +0530)
commitcd54714e938d4951abc671e562d10c2308613901
treec02665a97e08505d064fa8cd8f82def5eee43633
parentbf53ede0038fe2a7b02cad85f337aba43ced572a
powerpc/sstep: Convert to scoped user access

Commit 861574d51bbd ("powerpc/uaccess: Implement masked user access")
provides optimised user access by avoiding the cost of access_ok().

Convert single step emulation functions to scoped user access to
benefit from masked user access.

Scoped user access also make the code simpler.

Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/8f2d85bddacff18046096dc255fd94f6a0f8b230.1773137010.git.chleroy@kernel.org
arch/powerpc/lib/sstep.c