Skip to content
Commit 47a94e87 authored by Benjamin Gray's avatar Benjamin Gray Committed by Greg Kroah-Hartman
Browse files

powerpc/watchpoint: Disable pagefaults when getting user instruction

[ Upstream commit 3241f260

 ]

This is called in an atomic context, so is not allowed to sleep if a
user page needs to be faulted in and has nowhere it can be deferred to.
The pagefault_disabled() function is documented as preventing user
access methods from sleeping.

In practice the page will be mapped in nearly always because we are
reading the instruction that just triggered the watchpoint trap.

Signed-off-by: default avatarBenjamin Gray <bgray@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230829063457.54157-3-bgray@linux.ibm.com
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7eb09f70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment