Page MenuHomeFreeBSD

dtrace_asm.S: properly enter/exit user access
ClosedPublic

Authored by mhorne on Jan 31 2023, 7:26 PM.
Tags
None
Referenced Files
F102002758: D38298.diff
Wed, Nov 6, 10:24 AM
Unknown Object (File)
Sep 30 2024, 4:16 AM
Unknown Object (File)
Sep 24 2024, 8:55 AM
Unknown Object (File)
Sep 23 2024, 4:41 AM
Unknown Object (File)
Sep 23 2024, 4:38 AM
Unknown Object (File)
Sep 21 2024, 11:46 PM
Unknown Object (File)
Sep 21 2024, 12:38 PM
Unknown Object (File)
Sep 19 2024, 9:13 AM
Subscribers

Details

Summary

In order to read or write userspace memory without generating an access
fault, we must first enable the SUM bit in the sstatus CSR.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49360
Build 46250: arc lint + arc unit

Event Timeline

sys/cddl/dev/dtrace/riscv/dtrace_asm.S
150

What is 1b referring to here?

152

There are multiple jumps to 2, but they are not consistent about whether SUM is set.

mhorne added inline comments.
sys/cddl/dev/dtrace/riscv/dtrace_asm.S
150

Yikes!

This revision is now accepted and ready to land.Feb 6 2023, 6:22 PM
This revision was automatically updated to reflect the committed changes.
mhorne marked an inline comment as done.