Page MenuHomeFreeBSD

mpr: Handle errors from copyout() in ioctl handlers
ClosedPublic

Authored by markj on Dec 25 2023, 5:58 PM.
Tags
None
Referenced Files
F168385668: D43177.id131853.diff
Thu, Aug 27, 10:25 PM
F168385558: D43177.diff
Thu, Aug 27, 10:23 PM
Unknown Object (File)
Sat, Aug 22, 11:49 AM
Unknown Object (File)
Thu, Aug 20, 3:01 PM
Unknown Object (File)
Tue, Aug 18, 4:02 PM
Unknown Object (File)
Tue, Aug 18, 10:48 AM
Unknown Object (File)
Mon, Aug 17, 6:28 PM
Unknown Object (File)
Mon, Aug 17, 3:03 PM
Subscribers
None

Details

Summary

In preparation for adding a __result_use_check annotation to copyin()
and related functions, start checking for errors from copyout() in
the mpr(4) user command handler. This should make it easier to catch
bugs.

MFC after: 1 month

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 55107
Build 51996: arc lint + arc unit