FreeBSD Bugzilla – Attachment 232744 Details for
Bug 262836
[arm64] cacheline flush instruction (dc cvau) causes SIGSEGV from userland
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
https://git.sr.ht/~dch/src/commit/ae9221b85d18b6816276b8401734548f03b89013.patch
file_262836.txt (text/plain), 633 bytes, created by
Dave Cottlehuber
on 2022-03-26 16:12:27 UTC
(
hide
)
Description:
https://git.sr.ht/~dch/src/commit/ae9221b85d18b6816276b8401734548f03b89013.patch
Filename:
MIME Type:
Creator:
Dave Cottlehuber
Created:
2022-03-26 16:12:27 UTC
Size:
633 bytes
patch
obsolete
>--- > sys/arm64/arm64/trap.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c >index fa921e39b84..94eadf3b60d 100644 >--- a/sys/arm64/arm64/trap.c >+++ b/sys/arm64/arm64/trap.c >@@ -318,8 +318,10 @@ data_abort(struct thread *td, struct trapframe *frame, uint64_t esr, > ftype = VM_PROT_EXECUTE; > break; > default: >- ftype = (esr & ISS_DATA_WnR) == 0 ? VM_PROT_READ : >- VM_PROT_WRITE; >+ if ((esr & ISS_DATA_WnR) == 0 || (esr & ISS_DATA_CM) != 0) >+ ftype = VM_PROT_READ; >+ else >+ ftype = VM_PROT_WRITE; > break; > } > >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 262836
: 232744