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
F132250922: D26595.diff
Wed, Oct 15, 4:58 AM
Unknown Object (File)
Wed, Oct 1, 7:06 AM
Unknown Object (File)
Aug 23 2025, 7:40 AM
Unknown Object (File)
Aug 16 2025, 6:51 AM
Unknown Object (File)
Aug 12 2025, 1:22 PM
Unknown Object (File)
Aug 7 2025, 10:22 AM
Unknown Object (File)
Aug 6 2025, 10:51 PM
Unknown Object (File)
Jul 31 2025, 7:39 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable