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)
Jan 29 2025, 4:47 PM
Unknown Object (File)
Jan 12 2025, 11:25 PM
Unknown Object (File)
Dec 31 2024, 3:24 AM
Unknown Object (File)
Dec 6 2024, 9:19 PM
Unknown Object (File)
Nov 25 2024, 6:55 PM
Unknown Object (File)
Nov 22 2024, 6:17 PM
Unknown Object (File)
Nov 20 2024, 1:36 AM
Unknown Object (File)
Nov 18 2024, 12: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