Page MenuHomeFreeBSD

netmap: Ignore errors in CSB_WRITE()
ClosedPublic

Authored by markj on Dec 26 2023, 11:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 13, 7:19 PM
Unknown Object (File)
May 19 2024, 2:41 PM
Unknown Object (File)
May 10 2024, 2:23 AM
Unknown Object (File)
May 9 2024, 2:42 PM
Unknown Object (File)
May 9 2024, 10:45 AM
Unknown Object (File)
May 9 2024, 4:10 AM
Unknown Object (File)
Apr 19 2024, 8:29 AM
Unknown Object (File)
Apr 16 2024, 5:47 PM
Subscribers

Details

Summary

The CSB_WRITE() and _READ() macros respectively write to and read from
userspace memory and so can in principle fault. However, we do not
check for errors and will proceed blindly if they fail. Add assertions
to verify that they do not.

This is in preparation for annotating copyin() and related functions
with __result_use_check.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable