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)
Sun, Sep 27, 1:23 PM
Unknown Object (File)
Thu, Sep 17, 9:57 PM
Unknown Object (File)
Thu, Sep 17, 4:51 PM
Unknown Object (File)
Wed, Sep 16, 2:45 AM
Unknown Object (File)
Tue, Sep 15, 6:17 AM
Unknown Object (File)
Thu, Sep 10, 10:03 PM
Unknown Object (File)
Thu, Sep 10, 2:01 PM
Unknown Object (File)
Thu, Sep 10, 6:49 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