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)
Mon, Jun 15, 10:56 PM
Unknown Object (File)
Jun 4 2026, 2:05 PM
Unknown Object (File)
Jun 4 2026, 4:30 AM
Unknown Object (File)
May 21 2026, 8:04 AM
Unknown Object (File)
May 16 2026, 1:28 PM
Unknown Object (File)
May 15 2026, 8:02 AM
Unknown Object (File)
May 14 2026, 5:44 PM
Unknown Object (File)
May 12 2026, 4:36 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 55128
Build 52017: arc lint + arc unit