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)
Dec 20 2023, 4:42 AM
Unknown Object (File)
Dec 1 2023, 1:41 AM
Unknown Object (File)
Sep 27 2023, 3:44 PM
Unknown Object (File)
Sep 27 2023, 3:41 PM
Unknown Object (File)
Sep 27 2023, 3:41 PM
Unknown Object (File)
Sep 15 2023, 12:01 AM
Unknown Object (File)
Aug 26 2023, 11:17 PM
Unknown Object (File)
Apr 6 2023, 5:59 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

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