mirror of
https://github.com/opnsense/src.git
synced 2026-04-03 08:25:16 -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 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31197 |
||
|---|---|---|
| .. | ||
| aio_kqueue_test.c | ||
| aio_test.c | ||
| lio_kqueue_test.c | ||
| lio_test.c | ||
| local.h | ||
| Makefile | ||
| Makefile.depend | ||