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 11, 11:31 AM
Unknown Object (File)
Thu, Nov 7, 6:33 PM
Unknown Object (File)
Thu, Nov 7, 1:30 AM
Unknown Object (File)
Oct 17 2024, 11:26 AM
Unknown Object (File)
Oct 16 2024, 12:45 AM
Unknown Object (File)
Oct 13 2024, 6:29 AM
Unknown Object (File)
Oct 12 2024, 10:25 AM
Unknown Object (File)
Oct 11 2024, 2:51 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