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
F102893950: D43145.diff
Mon, Nov 18, 10:18 AM
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

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 55060
Build 51949: arc lint + arc unit