syzbot


netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/init_main.c:LINE, left shift of AD

Status: fixed on 2020/02/20 23:05
Reported-by: syzbot+f02ca5f83ac7196b8afd@syzkaller.appspotmail.com
Fix commit: 1e5952fd4837 Fix integer overflow when printing available memory size (resulting from a cast lost during merges).
First crash: 1796d, last: 1796d

Sample crash report:
[   1.0000000] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/init_main.c:1177:35, left shift of 1888145 by 12 places cannot be represented in type 'int'

[   1.0000000] cpu0: Begin traceback...
[   1.0000000] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336
[   1.0000000] isAlreadyReported() at netbsd:isAlreadyReported
[   1.0000000] HandleShiftOutOfBounds() at netbsd:HandleShiftOutOfBounds+0x28b sys/../common/lib/libc/misc/ubsan.c:470
[   1.0000000] banner() at netbsd:banner+0x117 sys/kern/init_main.c:1177
[   1.0000000] cpu_startup() at netbsd:cpu_startup+0x2d6 sys/arch/amd64/amd64/machdep.c:410
[   1.0000000] main() at netbsd:main+0x16a sys/kern/init_main.c:339
[   1.0000000] cpu0: End traceback...
[   1.0000000] fatal breakpoint trap in supervisor mode
[   1.0000000] trap type 1 code 0 rip 0xffffffff8021dd9d cs 0x8 rflags 0x202 cr2 0 ilevel 0x8 rsp 0xffffffff8625d710
[   1.0000000] curlwp 0xffffffff85344aa0 pid 0.1 lowest kstack 0xffffffff862592c0
Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x5:  leave
db{0}> 

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/22 15:06 netbsd c78fc1365b97 8b967267 .config console log report ci2-netbsd-kubsan
2019/12/22 15:06 netbsd c78fc1365b97 8b967267 .config console log report ci2-netbsd-kubsan
2019/12/22 15:06 netbsd c78fc1365b97 8b967267 .config console log report ci2-netbsd-kubsan
2019/12/22 11:36 netbsd add389a76b89 8b967267 .config console log report ci2-netbsd-kubsan
2019/12/22 11:36 netbsd add389a76b89 8b967267 .config console log report ci2-netbsd-kubsan
2019/12/22 11:36 netbsd add389a76b89 8b967267 .config console log report ci2-netbsd-kubsan
2019/12/22 04:52 netbsd add389a76b89 bc586918 .config console log report ci2-netbsd-kubsan
2019/12/22 04:52 netbsd add389a76b89 bc586918 .config console log report ci2-netbsd-kubsan
2019/12/22 04:52 netbsd add389a76b89 bc586918 .config console log report ci2-netbsd-kubsan
* Struck through repros no longer work on HEAD.