opnsense-src/tests/sys/aio
Mark Johnston 2e5f615295 lio_listio: Don't post a completion notification if none was requested
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
2021-07-15 22:41:10 -04:00
..
aio_kqueue_test.c Revert r337929 2018-08-16 22:04:00 +00:00
aio_test.c aio: fix the tests when ZFS is not available 2021-01-09 17:16:38 -07:00
lio_kqueue_test.c Revert r337929 2018-08-16 22:04:00 +00:00
lio_test.c lio_listio: Don't post a completion notification if none was requested 2021-07-15 22:41:10 -04:00
local.h Print out when unsafe AIO is enabled to debugging purposes 2017-05-09 19:20:02 +00:00
Makefile Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00