Page MenuHomeFreeBSD

ocs: Check for copyin errors in the ioctl handler
ClosedPublic

Authored by markj on Dec 19 2023, 3:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 5:50 PM
Unknown Object (File)
Wed, Apr 24, 5:48 PM
Unknown Object (File)
Sun, Apr 21, 10:33 PM
Unknown Object (File)
Mar 25 2024, 9:08 AM
Unknown Object (File)
Mar 21 2024, 3:44 AM
Unknown Object (File)
Jan 14 2024, 7:07 AM
Unknown Object (File)
Jan 12 2024, 5:38 PM
Unknown Object (File)
Dec 27 2023, 1:23 AM
Subscribers
None

Details

Summary

If copyin() fails, the driver will blindly proceed with whatever had
been in the uninitialized DMA buffer. This is not what we want. Check
for copyin failures.

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