Page MenuHomeFreeBSD

gntdev: Handle errors from suword32() in gntdev_alloc_gref()
ClosedPublic

Authored by markj on Dec 21 2023, 2:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 25, 6:32 AM
Unknown Object (File)
Fri, Apr 24, 1:17 PM
Unknown Object (File)
Sat, Apr 18, 3:07 PM
Unknown Object (File)
Sat, Apr 11, 9:16 AM
Unknown Object (File)
Mar 17 2026, 5:21 PM
Unknown Object (File)
Feb 6 2026, 4:25 PM
Unknown Object (File)
Feb 1 2026, 10:26 PM
Unknown Object (File)
Jan 31 2026, 1:22 PM

Details

Summary

Try to copy out output values before handling errors, and check that we
did so successfully. In particular, it doesn't seem sensible to ignore
errors here, otherwise userspace won't have any way to refer to the
allocations.

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