Page MenuHomeFreeBSD

netmap: Ignore errors in CSB_WRITE()
ClosedPublic

Authored by markj on Dec 26 2023, 11:56 PM.
Tags
None
Referenced Files
F163782622: D43200.diff
Sun, Jul 26, 12:06 AM
F163694699: D43200.diff
Sat, Jul 25, 1:10 PM
Unknown Object (File)
Tue, Jul 21, 12:41 PM
Unknown Object (File)
Jun 15 2026, 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
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