HomeFreeBSD

dtrace_asm.S: properly enter/exit user access

Description

dtrace_asm.S: properly enter/exit user access

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

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38298

Details

Provenance
mhorneAuthored on Feb 6 2023, 6:04 PM
Reviewer
markj
Differential Revision
D38298: dtrace_asm.S: properly enter/exit user access
Parents
rG4a1c4de232af: Allow sysctl hw.machine/hw.machine_arch in capability mode
Branches
Unknown
Tags
Unknown