syzbot


ASan: Unauthorized Access in knote

Status: closed as invalid on 2019/06/25 16:49
Reported-by: syzbot+0c04426f290f602f05b6@syzkaller.appspotmail.com
First crash: 1843d, last: 1829d
Duplicate bugs (2)
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
assert failed: kn->kn_fop != NULL 2 1832d 1832d 0/3 closed as dup on 2019/04/27 10:48
panic: prevented execution of user address ADDR (SMEP) 1 1824d 1824d 0/3 closed as dup on 2019/04/27 10:52

Sample crash report:
Hu&V=Mn-Mlt}ANj2F��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������./file0�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������./file0���������������������������������������������������������� �����	����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������./file0�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������./file0���������������������������������������������������������� �����	�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[ 961.6388633] ASan: Unauthorized Access In 0xffffffff80f7343c: Addr 0xffffd50012fbd440 [8 bytes, read, PoolUseAfterFree]
[ 961.6488830] #0 0xffffffff80f7343c in knote <netbsd>
[ 961.6589092] #1 0xffffffff8103063b in selnotify <netbsd>
[ 961.6689176] #2 0xffffffff81028863 in pipeselwakeup <netbsd>
[ 961.6689176] #3 0xffffffff81028b42 in pipeclose.part.0 <netbsd>
[ 961.6789262] #4 0xffffffff81028de2 in pipe_close <netbsd>
[ 961.6789262] #5 0xffffffff80f6a9d0 in closef <netbsd>
[ 961.6889599] #6 0xffffffff80f6e695 in fd_free <netbsd>
[ 961.6989662] #7 0xffffffff80f7bbac in exit1 <netbsd>
[ 961.6989662] #8 0xffffffff80fb9a94 in sigexit <netbsd>
[ 961.7089884] #9 0xffffffff80fba1d7 in sendsig <netbsd>
[ 961.7089884] #10 0xffffffff80f8d608 in lwp_userret <netbsd>
[ 961.7190091] #11 0xffffffff8026bbfd in syscall <netbsd>
[ 961.7290300] ASan: Unauthorized Access In 0xffffffff80f7344c: Addr 0xffffd50012fbd4a0 [8 bytes, read, PoolUseAfterFree]
[ 961.7390580] #0 0xffffffff80f7344c in knote <netbsd>
[ 961.7390580] #1 0xffffffff8103063b in selnotify <netbsd>
[ 961.7490728] #2 0xffffffff81028863 in pipeselwakeup <netbsd>
[ 961.7590918] #3 0xffffffff81028b42 in pipeclose.part.0 <netbsd>
[ 961.7590918] #4 0xffffffff81028de2 in pipe_close <netbsd>
[ 961.7691192] #5 0xffffffff80f6a9d0 in closef <netbsd>
[ 961.7791383] #6 0xffffffff80f6e695 in fd_free <netbsd>
[ 961.7791383] #7 0xffffffff80f7bbac in exit1 <netbsd>
[ 961.7891566] #8 0xffffffff80fb9a94 in sigexit <netbsd>
[ 961.7891566] #9 0xffffffff80fba1d7 in sendsig <netbsd>
[ 961.7991776] #10 0xffffffff80f8d608 in lwp_userret <netbsd>
[ 961.8091993] #11 0xffffffff8026bbfd in syscall <netbsd>
[ 961.8091993] panic: kernel diagnostic assertion "kn->kn_fop != NULL" failed: file "/syzkaller/managers/netbsd/kernel/sys/kern/kern_event.c", line 1653 
[ 961.8292393] cpu1: Begin traceback...
[ 961.8292393] vpanic() at netbsd:vpanic+0x214
[ 961.8392623] _GLOBAL__sub_D_65535_0_cpu_configure() at netbsd:_GLOBAL__sub_D_65535_0_cpu_configure
[ 961.8593271] knote() at netbsd:knote+0x117
[ 961.8693364] selnotify() at netbsd:selnotify+0x30
[ 961.8793592] pipeselwakeup() at netbsd:pipeselwakeup+0x47
[ 961.8893770] pipeclose.part.0() at netbsd:pipeclose.part.0+0x8a
[ 961.9094090] pipe_close() at netbsd:pipe_close+0x2b
[ 961.9194445] closef() at netbsd:closef+0xf3
[ 961.9294621] fd_free() at netbsd:fd_free+0x174
[ 961.9394873] exit1() at netbsd:exit1+0x265
[ 961.9495082] sigexit() at netbsd:sigexit+0x33c
[ 961.9495082] sendsig() at netbsd:sendsig
[ 961.9595251] lwp_userret() at netbsd:lwp_userret+0x2db
[ 961.9795651] syscall() at netbsd:syscall+0x42d
[ 961.9795651] --- syscall (number 32) ---
[ 961.9895762] 7e6f64a3e02a:
[ 961.9895762] cpu1: End traceback...

[ 961.9895762] dumping to dev 4,1 (offset=0, size=0): not possible
[ 961.9996015] rebooting...
SeaBIOS (version 1.8.2-20190322_093631-google)
Total RAM Size = 0x00000001e0000000 = 7680 MiB
CPUs found: 2     Max CPUs supported: 2
found virtio-scsi at 0:3
virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0
virtio-scsi blksize=512 sectors=4194304 = 2048 MiB
drive 0x000f29c0: PCHS=0/0/0 translation=lba LCHS=520/128/63 s=4194304
Booting from Hard Disk 0...

>> NetBSD/x86 BIOS Boot, Revision 5.10 (Tue Jul 17 14:59:51 UTC 2018) (from NetBSD 8.0)
>> Memory: 639/3144640 k

     1. Boot normally
     2. Boot single user
     3. Disable ACPI
     4. Disable ACPI and SMP
     5. Drop to boot prompt

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/22 09:26 netbsd d3c02f29f4eb 0a77c33c console log report ci2-netbsd
2019/04/18 03:47 netbsd e2c1f34107c4 b0e8efcb console log report ci2-netbsd
2019/04/16 00:00 netbsd 425dd0ee874e 505ab413 console log report ci2-netbsd
2019/04/13 00:59 netbsd 1ed788060c36 4f421599 console log report ci2-netbsd
2019/04/07 23:51 netbsd a10759f081a1 c34fde03 console log report ci2-netbsd
* Struck through repros no longer work on HEAD.