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)
Sun, Nov 10, 12:50 PM
Unknown Object (File)
Sun, Nov 10, 11:22 AM
Unknown Object (File)
Wed, Nov 6, 3:59 PM
Unknown Object (File)
Tue, Nov 5, 3:12 AM
Unknown Object (File)
Tue, Oct 22, 9:20 AM
Unknown Object (File)
Tue, Oct 22, 9:20 AM
Unknown Object (File)
Tue, Oct 22, 9:20 AM
Unknown Object (File)
Tue, Oct 22, 9:10 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 Not Applicable
Unit
Tests Not Applicable