mirror of
https://github.com/opnsense/src.git
synced 2026-05-20 00:45:45 -04:00
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
Reviewed by: asomers
Sponsored by: The FreeBSD Foundation
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| aio_kqueue_test.c | ||
| aio_test.c | ||
| lio_kqueue_test.c | ||
| lio_test.c | ||
| local.h | ||
| Makefile | ||
| Makefile.depend | ||