HomeFreeBSD

oce(4): Don't directly access usespace

Description

oce(4): Don't directly access usespace

Replace direct stores to userspace addresses (never safe and broken on
modern CPUs) with a copyout. Use a static assert on the size to ensure
we don't overflow the field.

Reviewed by: markj, jhb
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D40519

Details

Provenance
brooksAuthored on Jun 14 2023, 5:55 PM
Reviewer
markj
Differential Revision
D40519: oce(4): Don't directly access usespace
Parents
rGe27c618e20cd: mpi3mr: Add bare-bones manual
Branches
Unknown
Tags
Unknown