syzbot


netbsd test error: panic: LOCKDEBUG: Reader / writer lock error: rw_vector_tryenter,585: assertion failed: (op != RW_READER && RW_OWNER(rw)

Status: closed as invalid on 2019/12/01 07:25
Reported-by: syzbot+39816316d9d0c05ce018@syzkaller.appspotmail.com
First crash: 1818d, last: 1818d

Sample crash report:
[  38.9932763] panic: LOCKDEBUG: Reader / writer lock error: rw_vector_tryenter,585: assertion failed: (op != RW_READER && RW_OWNER(rw) == curthread) || (op == RW_READER && RW_COUNT(rw) != 0)
[  39.0108885] cpu0: Begin traceback...
[  39.0275437] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336
[  39.0876468] snprintf() at netbsd:snprintf
[  39.1477497] lockdebug_abort1() at netbsd:lockdebug_abort1+0x16a sys/kern/subr_lockdebug.c:799
[  39.2178692] rw_abort() at netbsd:rw_abort+0x50 sys/kern/kern_rwlock.c:209
[  39.2879907] rw_tryenter() at netbsd:rw_tryenter+0x13c sys/kern/kern_rwlock.c:587
[  39.3380768] vm_map_lock_try() at netbsd:vm_map_lock_try+0x3c sys/uvm/uvm_map.c:682
[  39.3981817] uvm_map_prepare() at netbsd:uvm_map_prepare+0xc0 sys/uvm/uvm_map.c:1170
[  39.4582884] uvm_map() at netbsd:uvm_map+0xa4 sys/uvm/uvm_map.c:1099
[  39.5284060] uvm_mmap.part.0() at netbsd:uvm_mmap.part.0+0x32a
[  39.5885094] sys_mmap() at netbsd:sys_mmap+0x809 uvm_mmap sys/uvm/uvm_mmap.c:401 [inline]
[  39.5885094] sys_mmap() at netbsd:sys_mmap+0x809 sys/uvm/uvm_mmap.c:401
[  39.6486109] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline]
[  39.6486109] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77
[  39.7087158] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline]
[  39.7087158] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline]
[  39.7087158] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138
[  39.7292047] --- syscall (number 198) ---
[  39.7292047] Skipping crash dump on recursive panic
[  39.7292047] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:153:24, member access within misaligned address 0x7 for type 'struct x86_64_frame' which requires 8 byte alignment

[  39.7603613] Faulted in mid-traceback; aborting...
[  39.7603613] fatal breakpoint trap in supervisor mode
[  39.7703289] trap type 1 code 0 rip 0xffffffff8021ddbd cs 0x8 rflags 0x282 cr2 0x76d566a00000 ilevel 0 rsp 0xffffaa00a690acc0
[  39.7815192] curlwp 0xffffeb4dab5f52c0 pid 45.3 lowest kstack 0xffffaa00a69082c0
Stopped in pid 45.3 (syz-executor.0) at netbsd:breakpoint+0x5:  leave
?
breakpoint() at netbsd:breakpoint+0x5
db_panic() at netbsd:db_panic+0x109 sys/ddb/db_panic.c:67
vpanic() at netbsd:vpanic+0x2aa 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:408
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+0x2c4 sys/arch/x86/x86/db_trace.c:277
db_panic() at netbsd:db_panic+0xa3 x86_curcpu sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./machine/cpu.h:67 [inline]
db_panic() at netbsd:db_panic+0xa3 sys/ddb/db_panic.c:57
vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336
snprintf() at netbsd:snprintf
lockdebug_abort1() at netbsd:lockdebug_abort1+0x16a sys/kern/subr_lockdebug.c:799
rw_abort() at netbsd:rw_abort+0x50 sys/kern/kern_rwlock.c:209
rw_tryenter() at netbsd:rw_tryenter+0x13c sys/kern/kern_rwlock.c:587
vm_map_lock_try() at netbsd:vm_map_lock_try+0x3c sys/uvm/uvm_map.c:682
uvm_map_prepare() at netbsd:uvm_map_prepare+0xc0 sys/uvm/uvm_map.c:1170
uvm_map() at netbsd:uvm_map+0xa4 sys/uvm/uvm_map.c:1099
uvm_mmap.part.0() at netbsd:uvm_mmap.part.0+0x32a
sys_mmap() at netbsd:sys_mmap+0x809 uvm_mmap sys/uvm/uvm_mmap.c:401 [inline]
sys_mmap() at netbsd:sys_mmap+0x809 sys/uvm/uvm_mmap.c:401
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) ---
[  39.7815192] Skipping crash dump on recursive panic
[  39.7815192] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/amd64/amd64/db_machdep.c:154:14, member access within misaligned address 0x7 for type 'struct x86_64_frame' which requires 8 byte alignment

[  39.7815192] Faulted in mid-traceback; aborting...
[  39.7815192] fatal breakpoint trap in supervisor mode
[  39.7815192] trap type 1 code 0 rip 0xffffffff8021ddbd cs 0x8 rflags 0x282 cr2 0x76d566a00000 ilevel 0x8 rsp 0xffffaa00a69099c0
[  39.7815192] curlwp 0xffffeb4dab5f52c0 pid 45.3 lowest kstack 0xffffaa00a69082c0
Stopped in pid 45.3 (syz-executor.0) at netbsd:breakpoint+0x5:  leave

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/30 16:07 netbsd 9f4d2cb8cff0 3a75be00 .config console log report ci2-netbsd-kubsan
2019/11/30 02:21 netbsd 79a6ddb041a7 3a75be00 .config console log report ci2-netbsd-kubsan
* Struck through repros no longer work on HEAD.