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)
Sun, May 12, 4:57 PM
Unknown Object (File)
Thu, May 9, 4:16 AM
Unknown Object (File)
Wed, May 8, 5:44 PM
Unknown Object (File)
Tue, Apr 30, 5:20 PM
Unknown Object (File)
Mon, Apr 29, 4:34 AM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 55003
Build 51892: arc lint + arc unit