summaryrefslogtreecommitdiff
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2024-07-20 22:41:07 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-03 08:54:11 +0200
commitcc3368064c68ab8c89beea89b68ed85572ce193d (patch)
tree788b90bc209bd27b8b61bae0da64a42764f22bb4 /mm/hugetlb.c
parent8fe6e8cb5fba5ad9f27d379d74a14cec7d3ff6de (diff)
LoongArch: Check TIF_LOAD_WATCH to enable user space watchpoint
[ Upstream commit 3892b11eac5aaaeefbf717f1953288b77759d9e2 ] Currently, there are some places to set CSR.PRMD.PWE, the first one is in hw_breakpoint_thread_switch() to enable user space singlestep via checking TIF_SINGLESTEP, the second one is in hw_breakpoint_control() to enable user space watchpoint. For the latter case, it should also check TIF_LOAD_WATCH to make the logic correct and clear. Fixes: c8e57ab0995c ("LoongArch: Trigger user-space watchpoints correctly") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions