syzbot


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

Status: fixed on 2019/11/17 08:54
Reported-by: syzbot+d27bc1be926b3641c0ad@syzkaller.appspotmail.com
Fix commit: 473e202ba108 NULL-check the structure pointer, not the address of its first field. This is clearer and also appeases syzbot.
First crash: 1842d, last: 1832d

Sample crash report:
[   1.5901550] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_subr.c:793:14, member access within null pointer of type 'struct vnode_impl'

[   1.6025195] cpu0: Begin traceback...
[   1.6066290] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336
[   1.6266633] isAlreadyReported() at netbsd:isAlreadyReported
[   1.6366788] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0x15b
[   1.6567132] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408
[   1.6767468] sched_sync() at netbsd:sched_sync+0x50a sys/kern/vfs_subr.c:793
[   1.6767468] cpu0: End traceback...
[   1.6767468] fatal breakpoint trap in supervisor mode
[   1.6876654] trap type 1 code 0 rip 0xffffffff8021dddd cs 0x8 rflags 0x286 cr2 0 ilevel 0 rsp 0xffffb180a691a9e0
[   1.6876654] curlwp 0xfffff6a8b821f660 pid 0.55 lowest kstack 0xffffb180a69172c0
Stopped in pid 0.55 (system) at netbsd:breakpoint+0x5:  leave
db{0}> 

Crashes (99):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/16 05:02 netbsd 356b653f20ef 79248ee8 .config console log report ci2-netbsd-kubsan
2019/11/15 06:14 netbsd b2562eb8779a 048f2d49 .config console log report ci2-netbsd-kubsan
2019/11/13 19:11 netbsd d5c9b58d2cdf 048f2d49 .config console log report ci2-netbsd-kubsan
2019/11/12 08:43 netbsd b99a164f0b89 048f2d49 .config console log report ci2-netbsd-kubsan
2019/11/11 16:06 netbsd 82f6dd62a5f1 377d77fa .config console log report ci2-netbsd-kubsan
2019/11/11 16:06 netbsd 82f6dd62a5f1 377d77fa .config console log report ci2-netbsd-kubsan
2019/11/11 14:31 netbsd 76b21a935f6b dc438b91 .config console log report ci2-netbsd-kubsan
2019/11/09 22:15 netbsd 99cc47c9b3fc 1e35461e .config console log report ci2-netbsd-kubsan
2019/11/08 13:43 netbsd 65956b581c58 1e35461e .config console log report ci2-netbsd-kubsan
2019/11/08 07:49 netbsd ff68b4ed94ee 1e35461e .config console log report ci2-netbsd-kubsan
2019/11/08 07:18 netbsd b3378305e660 1e35461e .config console log report ci2-netbsd-kubsan
2019/11/08 06:16 netbsd b3378305e660 f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/08 02:46 netbsd 60b2f326c3d0 f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/08 00:35 netbsd 732d83491b28 f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 22:46 netbsd d6a3d55f15dc f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 20:35 netbsd fa1b60d01b31 f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 17:26 netbsd 380859a9c36f f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 17:26 netbsd 380859a9c36f f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 15:35 netbsd 5ded54d2bd9e f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 15:35 netbsd 5ded54d2bd9e f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 15:35 netbsd 5ded54d2bd9e f39aff9e .config console log report ci2-netbsd-kubsan
2019/11/07 15:00 netbsd 5ded54d2bd9e d5bc6812 .config console log report ci2-netbsd-kubsan
2019/11/07 15:00 netbsd 5ded54d2bd9e d5bc6812 .config console log report ci2-netbsd-kubsan
2019/11/07 15:00 netbsd 5ded54d2bd9e d5bc6812 .config console log report ci2-netbsd-kubsan
2019/11/07 11:46 netbsd 5ded54d2bd9e d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 11:46 netbsd 5ded54d2bd9e d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 11:46 netbsd 5ded54d2bd9e d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 09:56 netbsd d463556d564b d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 09:56 netbsd d463556d564b d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 09:56 netbsd d463556d564b d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 04:47 netbsd ac87dec65892 d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 04:47 netbsd ac87dec65892 d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 04:47 netbsd ac87dec65892 d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 02:56 netbsd 5a0c99d1a339 d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 02:56 netbsd 5a0c99d1a339 d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 02:56 netbsd 5a0c99d1a339 d797d201 .config console log report ci2-netbsd-kubsan
2019/11/07 02:36 netbsd 5a0c99d1a339 da505f84 .config console log report ci2-netbsd-kubsan
2019/11/07 02:36 netbsd 5a0c99d1a339 da505f84 .config console log report ci2-netbsd-kubsan
2019/11/07 02:36 netbsd 5a0c99d1a339 da505f84 .config console log report ci2-netbsd-kubsan
2019/11/07 00:45 netbsd 23abf61dff6d da505f84 .config console log report ci2-netbsd-kubsan
2019/11/07 00:45 netbsd 23abf61dff6d da505f84 .config console log report ci2-netbsd-kubsan
2019/11/07 00:45 netbsd 23abf61dff6d da505f84 .config console log report ci2-netbsd-kubsan
2019/11/06 15:55 netbsd e55c71186a2b da505f84 .config console log report ci2-netbsd-kubsan
* Struck through repros no longer work on HEAD.