Page MenuHomeFreeBSD

Avoid a dubious assignment to bio_data in aio_qbio().
ClosedPublic

Authored by jhb on Sep 29 2020, 9:14 PM.
Tags
None
Referenced Files
F84425738: D26595.diff
Thu, May 23, 5:38 PM
Unknown Object (File)
Dec 20 2023, 4:42 AM
Unknown Object (File)
Dec 1 2023, 1:41 AM
Unknown Object (File)
Sep 27 2023, 3:44 PM
Unknown Object (File)
Sep 27 2023, 3:41 PM
Unknown Object (File)
Sep 27 2023, 3:41 PM
Unknown Object (File)
Sep 15 2023, 12:01 AM
Unknown Object (File)
Aug 26 2023, 11:17 PM
Subscribers

Details

Summary

A user pointer is not a suitable value for bio_data and the next block
of code always overwrites bio_data anyway. Just use cb->aio_buf
directly in the call to vm_fault_quick_hold_pages().

Test Plan
  • kyua test -k /usr/tests/sys/aio/Kyuafile

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33886
Build 31093: arc lint + arc unit