1st 0xfffffd807f00db58 vmmaplk (&map->lock) @ /syzkaller/managers/multicore/kernel/sys/uvm/uvm_fault.c:1442 2nd 0xfffffd806edcc0a8 inode (&ip->i_lock) @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at: #0 witness_checkorder+0x6d8 #1 _rw_enter+0xbf #2 vm_map_lock_ln+0x14e #3 uvm_map+0x2e2 #4 km_alloc+0x19a #5 pool_multi_alloc_ni+0xe4 #6 pool_p_alloc+0x70 #7 pool_do_get+0x127 #8 pool_get+0x104 #9 ufsdirhash_build+0x40b #10 ufs_lookup+0x2a5 #11 VOP_LOOKUP+0x63 #12 vfs_lookup+0x552 #13 namei+0x4af #14 start_init+0xd6 lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at: #0 witness_checkorder+0x6d8 #1 _rw_enter+0xbf #2 _rrw_enter+0x5c #3 VOP_LOCK+0x55 #4 vn_lock+0x6e #5 uvn_io+0x2ca #6 uvn_get+0x206 #7 uvm_fault+0x12c1 #8 uvm_fault_wire+0x70 #9 uvm_map_pageable_wire+0x2fd #10 uvm_map_protect+0x610 #11 syscall+0x5a0 #12 Xsyscall+0x128 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 witness_checkorder(21131ca0e8a88c02,81,fffffd806edcc098,fffffd806edcc098,0) at witness_checkorder+0x12f9 witness_debugger sys/kern/subr_witness.c:2543 [inline] witness_checkorder(21131ca0e8a88c02,81,fffffd806edcc098,fffffd806edcc098,0) at witness_checkorder+0x12f9 sys/kern/subr_witness.c:1089 _rw_enter(b04c5bffc9d131d3,60b,fffffd806edcc098,ffffffff81ed388a) at _rw_enter+0xbf _rrw_enter(71ed66f0690c7f5c,fffffd80782ba810,ffffffff8164e290,0) at _rrw_enter+0x5c sys/kern/kern_rwlock.c:410 VOP_LOCK(8f3c9c865c441152,fffffd80782ba810) at VOP_LOCK+0x55 sys/kern/vfs_vops.c:598 vn_lock(fd46240ef9270974,1000) at vn_lock+0x6e sys/kern/vfs_vnops.c:549 uvn_io(e035ba50a135c40f,0,0,fffffd8078740948,0) at uvn_io+0x2ca sys/uvm/uvm_vnode.c:1188 uvn_get(21131ca0e8f6682c,ffffffff81c275a0,fffffd8078740948,fffffd806ac27120,0,0) at uvn_get+0x206 sys/uvm/uvm_vnode.c:1048 uvm_fault(702ec1722f208d5c,20fff000,0,2) at uvm_fault+0x12c1 sys/uvm/uvm_fault.c:1023 uvm_fault_wire(b9ea8abd28a357db,2,20fff000,fffffd806ac27120) at uvm_fault_wire+0x70 sys/uvm/uvm_fault.c:1293 uvm_map_pageable_wire(991864896e4c7c29,fffffd806ac27120,20fff000,20ffb000,0,4) at uvm_map_pageable_wire+0x2fd sys/uvm/uvm_map.c:2258 uvm_map_protect(8f3c9c865c2d6b9c,0,ffff800020b924c8,3e52be182c8,0) at uvm_map_protect+0x610 sys/uvm/uvm_map.c:3294 syscall(e035ba50a11dc29d) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(e035ba50a11dc29d) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffffa4,0,3,3e2d006c010) at Xsyscall+0x128 end of kernel end trace frame: 0x3e52be18350, count: -14 ddb{1}> show registers rdi 0x3 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff800020c6ef40 rbx 0x3 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800001148000 rax 0xffff800000941f80 r8 0xffffffff81d74cdf witness_checkorder+0x12cf r9 0x5 r10 0xaeee7fe4e22b58f7 r11 0x4170b48cd413f98e r12 0xfffffd80025ccc30 r13 0xffffffff81ebb01a cmd0646_9_tim_udma+0xd31c r14 0xffffffff822c0730 w_lodata+0x4ee40 r15 0xffffffff822c7740 w_lodata+0x55e50 rip 0xffffffff81a668f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c6ef30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor0) pid=94691 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b92270,0xffffffff822e46c8 process=0xffff800020b94010 user=0xffff800020c6a000, vmspace=0xfffffd807f00db40 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 69186 432137 50301 0 2 0 syz-executor0 *69186 94691 50301 0 7 0x4000000 syz-executor0 84017 432161 1 0 3 0x100083 ttyin getty 22046 304961 0 0 3 0x14200 bored sosplice 8743 141563 66010 0 3 0x82 nanosleep syz-executor1 50301 348766 66010 0 3 0x82 nanosleep syz-executor0 66010 335266 60264 0 3 0x82 thrsleep syz-fuzzer 66010 136165 60264 0 3 0x4000082 thrsleep syz-fuzzer 66010 344698 60264 0 3 0x4000082 thrsleep syz-fuzzer 66010 69972 60264 0 3 0x4000082 thrsleep syz-fuzzer 66010 39888 60264 0 3 0x4000082 thrsleep syz-fuzzer 66010 497150 60264 0 3 0x4000082 thrsleep syz-fuzzer 66010 425418 60264 0 3 0x4000082 kqread syz-fuzzer 66010 63723 60264 0 3 0x4000082 thrsleep syz-fuzzer 66010 235373 60264 0 3 0x4000082 thrsleep syz-fuzzer 66010 424816 60264 0 3 0x4000082 thrsleep syz-fuzzer 60264 483374 82341 0 3 0x10008a pause ksh 82341 70245 10111 0 3 0x92 select sshd 10111 475055 1 0 3 0x80 select sshd 54768 302956 10748 73 3 0x100010 biowait syslogd 10748 129591 1 0 3 0x100082 netio syslogd 76576 368052 1 77 3 0x100090 poll dhclient 98800 329899 1 0 3 0x80 poll dhclient 28446 166420 0 0 2 0x14200 zerothread 57943 8719 0 0 3 0x14200 aiodoned aiodoned 92195 259154 0 0 3 0x14200 syncer update 12724 409243 0 0 3 0x14200 cleaner cleaner 53662 366381 0 0 7 0x14200 reaper 38415 368556 0 0 3 0x14200 pgdaemon pagedaemon 15297 413046 0 0 3 0x14200 bored crynlk 27771 90950 0 0 3 0x14200 bored crypto 40616 394340 0 0 3 0x40014200 acpi0 acpi0 50696 66467 0 0 3 0x40014200 idle1 28791 155715 0 0 3 0x14200 bored softnet 77569 341434 0 0 3 0x14200 bored systqmp 47331 67696 0 0 3 0x14200 bored systq 5366 213011 0 0 3 0x40014200 bored softclock 82657 355731 0 0 3 0x40014200 idle0 1 415741 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper