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
F86810425: D26595.id77693.diff
Tue, Jun 25, 10:42 PM
Unknown Object (File)
Mon, Jun 17, 5:25 PM
Unknown Object (File)
May 23 2024, 5:38 PM
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
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