Page MenuHomeFreeBSD

lio_listio: Don't post a completion notification if none was requested
ClosedPublic

Authored by markj on Jul 15 2021, 6:11 PM.
Tags
None
Referenced Files
F169365851: D31197.id92243.diff
Tue, Sep 1, 8:18 AM
F169312336: D31197.id.diff
Tue, Sep 1, 4:30 AM
F169283931: D31197.diff
Tue, Sep 1, 3:19 AM
Unknown Object (File)
Mon, Aug 31, 12:49 AM
Unknown Object (File)
Sun, Aug 30, 8:07 AM
Unknown Object (File)
Sun, Aug 30, 4:58 AM
Unknown Object (File)
Sun, Aug 30, 3:12 AM
Unknown Object (File)
Fri, Aug 28, 8:09 PM
Subscribers

Details

Summary

One is allowed to use LIO_NOWAIT without specifying a sigevent. In this
case, lj->lioj_signal is left uninitialized, but several code paths
examine liov_signal.sigev_notify to figure out which notification to
post. Unconditionally initialize that field to SIGEV_NONE.

Add a dumb test case which triggers the bug.

Reported by: KMSAN+syzkaller
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable