panic: kernel diagnostic assertion "pg->wire_count != 0" failed: file "/syzkaller/managers/netbsd

2 views
Skip to first unread message

syzbot

unread,
Jan 21, 2020, 2:45:09 AM1/21/20
to syzkaller-...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: fd34b2d2 pmap_get_ptp(): the uvm_pagefree() call in the fa..
git tree: netbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=15229685e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=824b23e1f4b6c76b
dashboard link: https://syzkaller.appspot.com/bug?extid=083bcfb859fe7268ce53
compiler: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+083bcf...@syzkaller.appspotmail.com

[ 47.6608485] panic: kernel diagnostic assertion "pg->wire_count != 0" failed: file "/syzkaller/managers/netbsd-kubsan/kernel/sys/uvm/uvm_page.c", line 1582
[ 47.6809177] cpu0: Begin traceback...
[ 47.7409259] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336
[ 47.7910309] kern_assert() at netbsd:kern_assert+0x63
[ 47.8511549] uvm_pageunwire() at netbsd:uvm_pageunwire+0x1e9 sys/uvm/uvm_page.c:1582
[ 47.9112827] uvm_fault_unwire_locked() at netbsd:uvm_fault_unwire_locked+0x32d sys/uvm/uvm_fault.c:2422
[ 47.9714064] uvm_fault_unwire() at netbsd:uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:2388
[ 48.0215133] genfs_directio() at netbsd:genfs_directio+0xa1a sys/miscfs/genfs/genfs_io.c:1749
[ 48.0816400] ffs_write() at netbsd:ffs_write+0xa7b sys/ufs/ufs/ufs_readwrite.c:354
[ 48.1417643] VOP_WRITE() at netbsd:VOP_WRITE+0x108 sys/kern/vnode_if.c:506
[ 48.2119105] vn_write() at netbsd:vn_write+0x277 sys/kern/vfs_vnops.c:609
[ 48.2720356] do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415
[ 48.3321615] sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline]
[ 48.3321615] sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381
[ 48.3922843] sys___syscall() at netbsd:sys___syscall+0x1c8 sy_call sys/sys/syscallvar.h:65 [inline]
[ 48.3922843] sys___syscall() at netbsd:sys___syscall+0x1c8 sys/kern/sys_syscall.c:77
[ 48.4524122] syscall() at netbsd:syscall+0x29a sy_call sys/sys/syscallvar.h:65 [inline]
[ 48.4524122] syscall() at netbsd:syscall+0x29a sy_invoke sys/sys/syscallvar.h:94 [inline]
[ 48.4524122] syscall() at netbsd:syscall+0x29a sys/arch/x86/x86/syscall.c:138
[ 48.4724561] --- syscall (number 198) ---
[ 48.4724561] Skipping crash dump on recursive panic
[ 48.4836376] 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

[ 48.5046267] Faulted in mid-traceback; aborting...
[ 48.5046267] fatal breakpoint trap in supervisor mode
[ 48.5126104] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x282 cr2 0x726d19450818 ilevel 0 rsp 0xffff8f80b2cbfbd0
[ 48.5256434] curlwp 0xffff8f383e383520 pid 473.3 lowest kstack 0xffff8f80b2cbd2c0
Stopped in pid 473.3 (syz-executor.3) 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+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+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+0x2aa sys/kern/subr_prf.c:336
kern_assert() at netbsd:kern_assert+0x63
uvm_pageunwire() at netbsd:uvm_pageunwire+0x1e9 sys/uvm/uvm_page.c:1582
uvm_fault_unwire_locked() at netbsd:uvm_fault_unwire_locked+0x32d sys/uvm/uvm_fault.c:2422
uvm_fault_unwire() at netbsd:uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:2388
genfs_directio() at netbsd:genfs_directio+0xa1a sys/miscfs/genfs/genfs_io.c:1749
ffs_write() at netbsd:ffs_write+0xa7b sys/ufs/ufs/ufs_readwrite.c:354
VOP_WRITE() at netbsd:VOP_WRITE+0x108 sys/kern/vnode_if.c:506
vn_write() at netbsd:vn_write+0x277 sys/kern/vfs_vnops.c:609
do_filewritev.part.1() at netbsd:do_filewritev.part.1+0x415
sys_writev() at netbsd:sys_writev+0x54 do_filewritev sys/kern/sys_generic.c:381 [inline]
sys_writev() at netbsd:sys_writev+0x54 sys/kern/sys_generic.c:381
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) ---
[ 48.5330171] Skipping crash dump on recursive panic
[ 48.5330171] 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

[ 48.5330171] Faulted in mid-traceback; aborting...
[ 48.5330171] fatal breakpoint trap in supervisor mode
[ 48.5330171] trap type 1 code 0 rip 0xffffffff8021e7cd cs 0x8 rflags 0x282 cr2 0x726d19450818 ilevel 0x8 rsp 0xffff8f80b2cbe8d0
[ 48.5330171] curlwp 0xffff8f383e383520 pid 473.3 lowest kstack 0xffff8f80b2cbd2c0
Stopped in pid 473.3 (syz-executor.3) at netbsd:breakpoint+0x5: leave


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
Reply all
Reply to author
Forward
0 new messages