Page MenuHomeFreeBSD

netmap: Ignore errors in CSB_WRITE()
ClosedPublic

Authored by markj on Dec 26 2023, 11:56 PM.
Tags
None
Referenced Files
F156806553: D43200.id131885.diff
Sat, May 16, 1:28 PM
Unknown Object (File)
Fri, May 15, 8:02 AM
Unknown Object (File)
Thu, May 14, 5:44 PM
Unknown Object (File)
Tue, May 12, 4:36 AM
Unknown Object (File)
Mon, May 11, 9:22 AM
Unknown Object (File)
Sun, May 10, 1:35 PM
Unknown Object (File)
Sun, May 10, 1:27 PM
Unknown Object (File)
Sat, May 9, 7:36 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