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)
Thu, May 9, 5:53 PM
Unknown Object (File)
Thu, May 9, 2:42 PM
Unknown Object (File)
Thu, May 9, 1:00 PM
Unknown Object (File)
Thu, May 9, 10:41 AM
Unknown Object (File)
Thu, May 9, 4:04 AM
Unknown Object (File)
Tue, Apr 30, 5:19 PM
Unknown Object (File)
Wed, Apr 24, 5:49 PM
Unknown Object (File)
Wed, Apr 24, 5:48 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