syzbot


netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_mount.c:LINE, member access wi

Status: fixed on 2020/03/08 17:09
Reported-by: syzbot+c024c50570cccac51532@syzkaller.appspotmail.com
Fix commit: 431ed6f61bc2 - Pad kmem cache names with zeros so vmstat -m and -C are readable. - Exclude caches with size not a factor or multiple of the coherency unit. 4c7232d4a136 KMEM_SIZE: append the size_t to the allocated buffer, rather than prepending, so it doesn't screw up the alignment of the buffer.
First crash: 1579d, last: 1503d

Sample crash report:
[   1.0000000] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_mount.c:153:13, member access within misaligned address 0xffffce00b44cb008 for type 'struct mount' which requires 64 byte alignment

[   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] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc
[   1.0000000] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408
[   1.0000000] vfs_mountalloc() at netbsd:vfs_mountalloc+0x320 sys/kern/vfs_mount.c:153
[   1.0000000] vfs_vnode_sysinit() at netbsd:vfs_vnode_sysinit+0x1e sys/kern/vfs_vnode.c:391
[   1.0000000] vntblinit() at netbsd:vntblinit+0x345 sys/kern/vfs_subr.c:141
[   1.0000000] vfsinit() at netbsd:vfsinit+0x1c3 sys/kern/vfs_init.c:418
[   1.0000000] main() at netbsd:main+0x2f9 sys/kern/init_main.c:490
[   1.0000000] cpu0: End traceback...
[   1.0000000] fatal breakpoint trap in supervisor mode
[   1.0000000] trap type 1 code 0 rip 0xffffffff8021f59d cs 0x8 rflags 0x202 cr2 0 ilevel 0x8 rsp 0xffffffff86467700
[   1.0000000] curlwp 0xffffffff85569b80 pid 0.1 lowest kstack 0xffffffff864632c0
Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x5:  leave
db{0}> 

Crashes (1446):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/08 02:07 netbsd fc5189d65433 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/08 00:16 netbsd 0dcf2082eff0 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 22:25 netbsd ec23c06e14c8 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 20:35 netbsd fb91f65b8b80 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 19:07 netbsd 252fe4065e31 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 16:45 netbsd 2f63e80badce 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 14:55 netbsd 834bfd362cf3 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 10:46 netbsd 6e855e416aea 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 09:37 netbsd 7612cfe48b62 2e9971bb .config console log report ci2-netbsd-kubsan
2020/03/07 08:53 netbsd 7612cfe48b62 fd2a5f28 .config console log report ci2-netbsd-kubsan
2020/03/07 03:23 netbsd 5d8359d020dc fd2a5f28 .config console log report ci2-netbsd-kubsan
2020/03/06 23:12 netbsd a366430acb33 fd2a5f28 .config console log report ci2-netbsd-kubsan
2020/03/06 21:13 netbsd 7678b69c83a6 7fb694ef .config console log report ci2-netbsd-kubsan
2020/03/06 17:18 netbsd d479aab50cae 7fb694ef .config console log report ci2-netbsd-kubsan
2020/03/06 13:38 netbsd b8ae0b285185 7fb694ef .config console log report ci2-netbsd-kubsan
2020/03/06 13:38 netbsd b8ae0b285185 7fb694ef .config console log report ci2-netbsd-kubsan
2020/03/06 08:19 netbsd b7aa7ce4e5e6 b655d91b .config console log report ci2-netbsd-kubsan
2020/03/06 07:16 netbsd eb695547e0fe b655d91b .config console log report ci2-netbsd-kubsan
2020/03/06 02:02 netbsd 650054c68de5 b655d91b .config console log report ci2-netbsd-kubsan
2020/03/06 00:10 netbsd fda153d0768e b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 22:21 netbsd 86d0f176a73f b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 20:24 netbsd e3fa99b3ece4 b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 18:23 netbsd de6a65c42e04 b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 15:50 netbsd 181ae15e4f19 b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 14:00 netbsd c7bdfaacbbe8 b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 11:50 netbsd 5a41c5144ec5 b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 10:39 netbsd d263f785804e b655d91b .config console log report ci2-netbsd-kubsan
2020/03/05 10:06 netbsd d263f785804e 576fb9bc .config console log report ci2-netbsd-kubsan
2020/03/05 05:57 netbsd b33f921b3e08 576fb9bc .config console log report ci2-netbsd-kubsan
2020/03/05 04:06 netbsd da01e06f4e5e 576fb9bc .config console log report ci2-netbsd-kubsan
2020/03/05 01:17 netbsd 86e1c033bcd3 576fb9bc .config console log report ci2-netbsd-kubsan
2020/03/04 23:39 netbsd e10ee85e0cc6 576fb9bc .config console log report ci2-netbsd-kubsan
2020/03/04 22:38 netbsd cb4b5b875e76 576fb9bc .config console log report ci2-netbsd-kubsan
2020/03/04 21:29 netbsd cb4b5b875e76 712198ac .config console log report ci2-netbsd-kubsan
2020/03/04 21:29 netbsd cb4b5b875e76 712198ac .config console log report ci2-netbsd-kubsan
2020/03/04 19:34 netbsd f43e0fdf8215 712198ac .config console log report ci2-netbsd-kubsan
2020/03/04 17:24 netbsd 15a254b74737 712198ac .config console log report ci2-netbsd-kubsan
2020/03/04 15:34 netbsd a479dad99234 712198ac .config console log report ci2-netbsd-kubsan
2020/03/04 13:25 netbsd 913c9c2da67a 712198ac .config console log report ci2-netbsd-kubsan
2020/03/04 10:35 netbsd 2ea27ca198b1 712198ac .config console log report ci2-netbsd-kubsan
2020/03/04 08:18 netbsd 2ea27ca198b1 1f73b64b .config console log report ci2-netbsd-kubsan
2020/03/04 07:31 netbsd 3a9b8c574132 1f73b64b .config console log report ci2-netbsd-kubsan
2019/12/23 06:58 netbsd 101443cf5e00 8b967267 .config console log report ci2-netbsd-kubsan
* Struck through repros no longer work on HEAD.