projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
994af18
)
Revert "riscv: mm: accelerate pagefault when badaccess"
author
Palmer Dabbelt
<palmer@rivosinc.com>
Thu, 30 May 2024 16:44:51 +0000
(09:44 -0700)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Mon, 3 Jun 2024 14:41:13 +0000
(07:41 -0700)
I accidentally picked up an earlier version of this patch, which had
already landed via mm. The patch I picked up contains a bug, which I
kept as I thought it was a fix. So let's just revert it.
This reverts commit
4c6c0020427a4547845a83f7e4d6085e16c3e24f
.
Fixes:
4c6c0020427a
("riscv: mm: accelerate pagefault when badaccess")
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link:
https://lore.kernel.org/r/20240530164451.21336-1-palmer@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/fault.c
patch
|
blob
|
history
diff --git
a/arch/riscv/mm/fault.c
b/arch/riscv/mm/fault.c
index b3fcf7d67efba16a9ee5adf8e4144ef663326edb..5224f373380225a2dfdecd40bfc01ce8f5d13bc0 100644
(file)
--- a/
arch/riscv/mm/fault.c
+++ b/
arch/riscv/mm/fault.c
@@
-293,8
+293,8
@@
void handle_page_fault(struct pt_regs *regs)
if (unlikely(access_error(cause, vma))) {
vma_end_read(vma);
count_vm_vma_lock_event(VMA_LOCK_SUCCESS);
- tsk->thread.bad_cause =
SEGV_ACCERR
;
- bad_area_nosemaphore(regs,
code
, addr);
+ tsk->thread.bad_cause =
cause
;
+ bad_area_nosemaphore(regs,
SEGV_ACCERR
, addr);
return;
}