syzbot


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

Status: fixed on 2020/03/30 22:03
Reported-by: syzbot+dd5df915b2cd2f3f3da5@syzkaller.appspotmail.com
Fix commit: 395a577cab63 Pacify a syzbot complaint about bit shifting.
First crash: 1704d, last: 1703d

Sample crash report:
[   1.8109069] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_cache.c:345:14, left shift of 4161115716 by 32 places cannot be represented in type 'long int'

[   1.8152464] cpu1: Begin traceback...
[   1.8252588] vpanic() at netbsd:vpanic+0x2af sys/kern/subr_prf.c:336
[   1.8452911] isAlreadyReported() at netbsd:isAlreadyReported
[   1.8653163] HandleShiftOutOfBounds() at netbsd:HandleShiftOutOfBounds+0x288 sys/../common/lib/libc/misc/ubsan.c:479
[   1.8853382] cache_lookup.cold.4() at netbsd:cache_lookup.cold.4+0x19
[   1.9053613] ufs_lookup() at netbsd:ufs_lookup+0x3ae sys/ufs/ufs/ufs_lookup.c:357
[   1.9153731] VOP_LOOKUP() at netbsd:VOP_LOOKUP+0x119 sys/kern/vnode_if.c:177
[   1.9353975] lookup_once() at netbsd:lookup_once+0x427 sys/kern/vfs_lookup.c:1020
[   1.9554202] namei_tryemulroot() at netbsd:namei_tryemulroot+0xa99 namei_oneroot sys/kern/vfs_lookup.c:1260 [inline]
[   1.9554202] namei_tryemulroot() at netbsd:namei_tryemulroot+0xa99 sys/kern/vfs_lookup.c:1541
[   1.9754696] namei() at netbsd:namei+0x2e sys/kern/vfs_lookup.c:1577
[   1.9854672] nameiat_simple_kernel() at netbsd:nameiat_simple_kernel+0xcd sys/kern/vfs_lookup.c:1917
[   2.0154911] start_init() at netbsd:start_init+0x10c check_console sys/kern/init_main.c:918 [inline]
[   2.0154911] start_init() at netbsd:start_init+0x10c sys/kern/init_main.c:983
[   2.0154911] cpu1: End traceback...
[   2.0154911] fatal breakpoint trap in supervisor mode
[   2.0255055] trap type 1 code 0 rip 0xffffffff8021f59d cs 0x8 rflags 0x282 cr2 0 ilevel 0 rsp 0xffff9f00b6ead380
[   2.0355103] curlwp 0xffffce797a41a4c0 pid 1.1 lowest kstack 0xffff9f00b6eaa2c0
Stopped in pid 1.1 (init) at    netbsd:breakpoint+0x5:  leave
db{1}> 

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/23 19:48 netbsd cfbc01200758 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 19:48 netbsd cfbc01200758 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 19:48 netbsd cfbc01200758 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 17:56 netbsd eeabd1f3e001 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 17:56 netbsd eeabd1f3e001 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 17:56 netbsd eeabd1f3e001 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 15:48 netbsd e882d9ec16f9 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 15:48 netbsd e882d9ec16f9 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 15:48 netbsd e882d9ec16f9 84f999d6 .config console log report ci2-netbsd-kubsan
2020/03/23 13:59 netbsd c471b4931c22 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 13:59 netbsd c471b4931c22 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 13:59 netbsd c471b4931c22 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 12:10 netbsd c6a494f3e241 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 12:10 netbsd c6a494f3e241 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 12:10 netbsd c6a494f3e241 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 09:59 netbsd d480a8918730 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 09:59 netbsd d480a8918730 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 09:59 netbsd d480a8918730 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 08:09 netbsd d32b68e652ff 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 08:09 netbsd d32b68e652ff 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 08:09 netbsd d32b68e652ff 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 06:19 netbsd 5db5733560d1 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 06:19 netbsd 5db5733560d1 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 06:19 netbsd 5db5733560d1 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 04:29 netbsd 3591dd79cfe6 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 04:29 netbsd 3591dd79cfe6 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 04:29 netbsd 3591dd79cfe6 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 02:19 netbsd f09a8fc1cf52 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 02:19 netbsd f09a8fc1cf52 78267cec .config console log report ci2-netbsd-kubsan
2020/03/23 02:19 netbsd f09a8fc1cf52 78267cec .config console log report ci2-netbsd-kubsan
2020/03/22 23:50 netbsd 0d64c20ba4b8 78267cec .config console log report ci2-netbsd-kubsan
2020/03/22 23:50 netbsd 0d64c20ba4b8 78267cec .config console log report ci2-netbsd-kubsan
2020/03/22 23:50 netbsd 0d64c20ba4b8 78267cec .config console log report ci2-netbsd-kubsan
2020/03/22 21:45 netbsd 24cb291f03eb 78267cec .config console log report ci2-netbsd-kubsan
2020/03/22 21:45 netbsd 24cb291f03eb 78267cec .config console log report ci2-netbsd-kubsan
2020/03/22 21:45 netbsd 24cb291f03eb 78267cec .config console log report ci2-netbsd-kubsan
* Struck through repros no longer work on HEAD.