diff options
author | Ravi Bangoria <ravi.bangoria@linux.ibm.com> | 2020-09-02 07:29:40 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-15 15:13:18 +0300 |
commit | 9b6b7c680cc20971444d9f836e49fc98848bcd0a (patch) | |
tree | 74f86dbee4a8abba2c76558c4eaf570863a9cdc3 /Documentation/scsi/53c700.rst | |
parent | 4441eb02333a9b46a0d919aa7a6d3b137b5f2562 (diff) | |
download | linux-9b6b7c680cc20971444d9f836e49fc98848bcd0a.tar.xz |
powerpc/watchpoint/ptrace: Fix SETHWDEBUG when CONFIG_HAVE_HW_BREAKPOINT=N
When kernel is compiled with CONFIG_HAVE_HW_BREAKPOINT=N, user can
still create watchpoint using PPC_PTRACE_SETHWDEBUG, with limited
functionalities. But, such watchpoints are never firing because of
the missing privilege settings. Fix that.
It's safe to set HW_BRK_TYPE_PRIV_ALL because we don't really leak
any kernel address in signal info. Setting HW_BRK_TYPE_PRIV_ALL will
also help to find scenarios when kernel accesses user memory.
Reported-by: Pedro Miraglia Franco de Carvalho <pedromfc@linux.ibm.com>
Suggested-by: Pedro Miraglia Franco de Carvalho <pedromfc@linux.ibm.com>
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200902042945.129369-4-ravi.bangoria@linux.ibm.com
Diffstat (limited to 'Documentation/scsi/53c700.rst')
0 files changed, 0 insertions, 0 deletions