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)
Mon, Nov 17, 3:34 AM
Unknown Object (File)
Mon, Nov 17, 2:15 AM
Unknown Object (File)
Sun, Nov 16, 6:47 PM
Unknown Object (File)
Fri, Nov 14, 4:30 AM
Unknown Object (File)
Thu, Nov 13, 4:03 AM
Unknown Object (File)
Tue, Nov 11, 9:58 PM
Unknown Object (File)
Tue, Nov 11, 6:12 PM
Unknown Object (File)
Sun, Nov 9, 4:25 AM

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