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, Oct 25, 1:00 AM
Unknown Object (File)
Wed, Oct 22, 4:35 AM
Unknown Object (File)
Fri, Oct 17, 6:02 AM
Unknown Object (File)
Fri, Oct 17, 5:50 AM
Unknown Object (File)
Fri, Oct 17, 5:50 AM
Unknown Object (File)
Fri, Oct 17, 5:50 AM
Unknown Object (File)
Thu, Oct 16, 8:29 PM
Unknown Object (File)
Wed, Oct 15, 4:58 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