summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/hw_breakpoint.c
diff options
context:
space:
mode:
authorBenjamin Gray <bgray@linux.ibm.com>2023-08-29 16:34:56 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2023-09-18 12:23:47 +1000
commit3241f260eb830d27d09cc604690ec24533fdb433 (patch)
treedc6ff92495792555a61aa746cc639a68cd307f41 /arch/powerpc/kernel/hw_breakpoint.c
parentcc879ab3ce39bc39f9b1d238b283f43a5f6f957d (diff)
powerpc/watchpoint: Disable pagefaults when getting user instruction
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: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230829063457.54157-3-bgray@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kernel/hw_breakpoint.c')
0 files changed, 0 insertions, 0 deletions