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

(cherry picked from commit 758927a982db0ae3ebb02c05aec8a53bcc0c20cb)

Details

Provenance
brooksAuthored on Jun 14 2023, 5:55 PM
Reviewer
markj
Differential Revision
D40519: oce(4): Don't directly access usespace
Parents
rGc2fbdd8efdfe: Document fdescfs mount option "rdlnk"
Branches
Unknown
Tags
Unknown