syzbot


panic: receive 3

Status: fixed on 2019/04/01 10:26
Reported-by: syzbot+e8aa26ad551c649227b4@syzkaller.appspotmail.com
Fix commit: c78c83f0efb3 Also check for MT_CONTROL, and end the receive operation if we see one. It is possible to get an MT_CONTROL if we sleep in MSG_WAITALL. The other BSDs do the same.
First crash: 1887d, last: 1879d

Sample crash report:
login: [  45.6952254] panic: receive 3
[  45.6952254] cpu1: Begin traceback...
[  45.6952254] vpanic() at netbsd:vpanic+0x214
[  45.7076127] snprintf() at netbsd:snprintf
[  45.7076127] soreceive() at netbsd:soreceive+0x1ef3
[  45.7200934] do_sys_recvmsg_so() at netbsd:do_sys_recvmsg_so+0x39b
[  45.7325776] do_sys_recvmsg() at netbsd:do_sys_recvmsg+0xb5
[  45.7450586] sys_recvmsg() at netbsd:sys_recvmsg+0x153
[  45.7575404] sys_syscall() at netbsd:sys_syscall+0xe2
[  45.7825075] syscall() at netbsd:syscall+0x32e
[  45.7825075] --- syscall (number 0) ---
[  45.7949886] 75a208e3f4ca:
[  45.7949886] cpu1: End traceback...

[  45.7949886] dumping to dev 4,1 (offset=0, size=0): not possible
[  45.8074732] rebooting...
SeaBIOS (version 1.8.2-20190204_181744-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 0x000f2a00: 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
|/-\|/-39066448\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/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-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+2876592\|/- [1062569\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+1362192-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+1043671-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-]=0x2b4f688
\|/-\|/-\|/-\|/-\|/-\|/-\|/-WARNING: couldn't open /var/db/entropy-file
WARNING: 1 module failed to load

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/03/04 00:46 netbsd 5737ec294446 1c0e457a console log report syz C ci2-netbsd
2019/02/23 19:33 netbsd af876e934dda 9737e71e console log report syz C ci2-netbsd
2019/03/04 00:14 netbsd 5737ec294446 1c0e457a console log report ci2-netbsd
2019/02/23 18:41 netbsd af876e934dda 9737e71e console log report ci2-netbsd
2019/02/23 18:39 netbsd af876e934dda 9737e71e console log report ci2-netbsd
* Struck through repros no longer work on HEAD.