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)
Mon, Jun 15, 2:35 PM
Unknown Object (File)
May 10 2026, 11:48 PM
Unknown Object (File)
May 9 2026, 11:05 PM
Unknown Object (File)
May 9 2026, 11:05 AM
Unknown Object (File)
May 9 2026, 7:48 AM
Unknown Object (File)
May 9 2026, 3:23 AM
Unknown Object (File)
May 8 2026, 8:20 PM
Unknown Object (File)
May 8 2026, 6:07 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