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
Unknown Object (File)
Fri, Mar 29, 12:56 PM
Unknown Object (File)
Jan 15 2024, 12:32 PM
Unknown Object (File)
Dec 19 2023, 11:43 PM
Unknown Object (File)
Sep 23 2023, 8:31 AM
Unknown Object (File)
Sep 16 2023, 4:31 PM
Unknown Object (File)
Jul 4 2023, 2:07 AM
Unknown Object (File)
Jul 4 2023, 2:06 AM
Unknown Object (File)
Jul 4 2023, 2:05 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40491
Build 37380: arc lint + arc unit