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
Unknown Object (File)
Sat, Jan 25, 7:50 PM
Unknown Object (File)
Sat, Jan 25, 7:19 PM
Unknown Object (File)
Oct 14 2024, 2:01 AM
Unknown Object (File)
Sep 30 2024, 9:46 PM
Unknown Object (File)
Sep 25 2024, 10:56 AM
Unknown Object (File)
Sep 24 2024, 6:14 AM
Unknown Object (File)
Sep 18 2024, 12:09 AM
Unknown Object (File)
Sep 15 2024, 6:23 AM
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