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)
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
Unknown Object (File)
Sep 9 2024, 11:20 PM
Unknown Object (File)
Sep 9 2024, 1:29 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