syzbot


assert failed: fp != NULL

Status: closed as invalid on 2020/06/24 18:36
Reported-by: syzbot+86dbcab64e1a23602500@syzkaller.appspotmail.com
First crash: 1712d, last: 1712d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
netbsd assert failed: fp != NULL (2) C 16 437d 1513d 0/3 upstream: reported C repro on 2020/09/30 13:47

Sample crash report:
[  41.1058433] panic: kernel diagnostic assertion "fp != NULL" failed: file "/syzkaller/managers/netbsd-kubsan/kernel/sys/kern/uipc_usrreq.c", line 1596 
[  41.1158654] cpu1: Begin traceback...
[  41.1358997] vpanic() at netbsd:vpanic+0x2af sys/kern/subr_prf.c:336
[  41.1759880] kern_assert() at netbsd:kern_assert+0x63
[  41.2361262] unp_send() at netbsd:unp_send+0x18b2 unp_internalize sys/kern/uipc_usrreq.c:1596 [inline]
[  41.2361262] unp_send() at netbsd:unp_send+0x18b2 sys/kern/uipc_usrreq.c:468
[  41.2862314] sosend() at netbsd:sosend+0x157d sys/kern/uipc_socket.c:1059
[  41.3263262] do_sys_sendmsg_so() at netbsd:do_sys_sendmsg_so+0x53d sys/kern/uipc_syscalls.c:629
[  41.3764319] do_sys_sendmsg() at netbsd:do_sys_sendmsg+0xbf sys/kern/uipc_syscalls.c:679
[  41.4265437] sys_sendmsg() at netbsd:sys_sendmsg+0x9b sys/kern/uipc_syscalls.c:533
2020/03/15 07:54:58 executed programs: 70
[  41.4666312] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline]
[  41.4666312] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77
[  41.5267661] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline]
[  41.5267661] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline]
[  41.5267661] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138
[  41.5367891] --- syscall (number 198) ---
[  41.5367891] Skipping crash dump on recursive panic
[  41.5468079] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:153:24, member access within misaligned address 0x3 for type 'struct x86_64_frame' which requires 8 byte alignment

[  41.5668524] Faulted in mid-traceback; aborting...
[  41.5668524] fatal breakpoint trap in supervisor mode
[  41.5768718] trap type 1 code 0 rip 0xffffffff8021f59d cs 0x8 rflags 0x286 cr2 0 ilevel 0x4 rsp 0xffffd480b6f95c10
[  41.5868966] curlwp 0xffff87acc9dd1bc0 pid 790.2 lowest kstack 0xffffd480b6f932c0
Stopped in pid 790.2 (syz-executor.0) at        netbsd:breakpoint+0x5:  leave
?
breakpoint() at netbsd:breakpoint+0x5
db_panic() at netbsd:db_panic+0xd1 sys/ddb/db_panic.c:67
vpanic() at netbsd:vpanic+0x2af sys/kern/subr_prf.c:336
isAlreadyReported() at netbsd:isAlreadyReported
HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc
HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:417
db_nextframe() at netbsd:db_nextframe+0x6f6 sys/arch/amd64/amd64/db_machdep.c:153
db_stack_trace_print() at netbsd:db_stack_trace_print+0x294 sys/arch/x86/x86/db_trace.c:277
db_panic() at netbsd:db_panic+0x8b x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:56 [inline]
db_panic() at netbsd:db_panic+0x8b sys/ddb/db_panic.c:57
vpanic() at netbsd:vpanic+0x2af sys/kern/subr_prf.c:336
kern_assert() at netbsd:kern_assert+0x63
unp_send() at netbsd:unp_send+0x18b2 unp_internalize sys/kern/uipc_usrreq.c:1596 [inline]
unp_send() at netbsd:unp_send+0x18b2 sys/kern/uipc_usrreq.c:468
sosend() at netbsd:sosend+0x157d sys/kern/uipc_socket.c:1059
do_sys_sendmsg_so() at netbsd:do_sys_sendmsg_so+0x53d sys/kern/uipc_syscalls.c:629
do_sys_sendmsg() at netbsd:do_sys_sendmsg+0xbf sys/kern/uipc_syscalls.c:679
sys_sendmsg() at netbsd:sys_sendmsg+0x9b sys/kern/uipc_syscalls.c:533
sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline]
sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77
syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline]
syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline]
syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138
--- syscall (number 198) ---
[  41.5969188] Skipping crash dump on recursive panic
[  41.5969188] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:154:14, member access within misaligned address 0x3 for type 'struct x86_64_frame' which requires 8 byte alignment

[  41.5969188] Faulted in mid-traceback; aborting...
[  41.5969188] fatal breakpoint trap in supervisor mode
[  41.5969188] trap type 1 code 0 rip 0xffffffff8021f59d cs 0x8 rflags 0x282 cr2 0 ilevel 0x8 rsp 0xffffd480b6f94890
[  41.5969188] curlwp 0xffff87acc9dd1bc0 pid 790.2 lowest kstack 0xffffd480b6f932c0
Stopped in pid 790.2 (syz-executor.0) at        netbsd:breakpoint+0x5:  leave
db{1}> 

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/15 08:08 netbsd 8b9467474a9e 749688d2 .config console log report syz ci2-netbsd-kubsan
2020/03/15 07:40 netbsd 8b9467474a9e 749688d2 .config console log report syz ci2-netbsd-kmsan
2020/03/15 07:01 netbsd 8b9467474a9e 749688d2 .config console log report ci2-netbsd-kmsan
* Struck through repros no longer work on HEAD.