1st 0xfffffd807f00cb58 vmmaplk (&map->lock) @ /syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c:1442 2nd 0xfffffd8078086f80 inode (&ip->i_lock) @ /syzkaller/managers/setuid/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(bb52092d60834d1b,81,fffffd8078086f70,fffffd8078086f70,0) at witness_checkorder+0x12f9 witness_debugger sys/kern/subr_witness.c:2543 [inline] witness_checkorder(bb52092d60834d1b,81,fffffd8078086f70,fffffd8078086f70,0) at witness_checkorder+0x12f9 sys/kern/subr_witness.c:1089 _rw_enter(750935e3e678f9f1,60b,fffffd8078086f70,ffffffff81edebdf) at _rw_enter+0xbf _rrw_enter(3e96a358635d0eb3,fffffd8077f6f910,ffffffff8139fd50,0) at _rrw_enter+0x5c sys/kern/kern_rwlock.c:410 VOP_LOCK(ff5940428c4e034b,fffffd8077f6f910) at VOP_LOCK+0x55 sys/kern/vfs_vops.c:598 vn_lock(30dca7ca2249ad52,1000) at vn_lock+0x6e sys/kern/vfs_vnops.c:549 uvn_io(639b4bf282def9ca,0,0,fffffd8078096b40,0) at uvn_io+0x2ca sys/uvm/uvm_vnode.c:1188 uvn_get(ee413b79038ca506,ffffffff8146c190,fffffd8078096b40,fffffd8069d55708,0,4) at uvn_get+0x206 sys/uvm/uvm_vnode.c:1048 uvm_fault(639b4bf2822a0d9c,20f1b000,0,4) at uvm_fault+0x12c1 sys/uvm/uvm_fault.c:1023 uvm_fault_wire(e7c1da014ea6f09c,4,20f1b000,fffffd8069d55708) at uvm_fault_wire+0x70 sys/uvm/uvm_fault.c:1293 uvm_map_pageable_wire(ff5940428c3e4475,fffffd8069d55708,20f80000,20d80000,0,4) at uvm_map_pageable_wire+0x2fd sys/uvm/uvm_map.c:2258 uvm_map_protect(d4de837981450845,10,ffff800020b92e28,72a0dacd408,0) at uvm_map_protect+0x610 sys/uvm/uvm_map.c:3294 syscall(2f6f379bfa10cd8) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(2f6f379bfa10cd8) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffffa4,0,3,7272f530010) at Xsyscall+0x128 end of kernel end trace frame: 0x72a0dacd490, count: -14 ddb{1}> show registers rdi 0x3 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff800020c5b4d0 rbx 0x3 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800001546000 rax 0xffff800000940ec0 r8 0xffffffff817c727f witness_checkorder+0x12cf r9 0x5 r10 0xfd090c863e4b7dec r11 0xbf44529dc1456299 r12 0xfffffd80025cdc30 r13 0xffffffff81ebbd52 cmd0646_9_tim_udma+0xc96d r14 0xffffffff8226f6c0 w_lodata+0x450d0 r15 0xffffffff82280440 w_lodata+0x55e50 rip 0xffffffff81107618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c5b4c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor0) pid=413868 stat=onproc flags process=10 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020b93080,0xffffffff82300be0 process=0xffff800020b94358 user=0xffff800020c56000, vmspace=0xfffffd807f00cb40 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 89756 180304 16206 32767 2 0x10 syz-executor0 *89756 413868 16206 32767 7 0x4000010 syz-executor0 26892 174421 36404 32767 7 0x10 syz-executor1 26892 103352 36404 32767 3 0x4000090 netio syz-executor1 36404 16714 85122 32767 3 0x90 nanosleep syz-executor1 85122 417129 58042 0 3 0x82 wait syz-executor1 16206 433789 71525 32767 3 0x90 nanosleep syz-executor0 71525 447243 58042 0 3 0x82 wait syz-executor0 90516 33329 0 0 3 0x14200 bored sosplice 58042 79190 37142 0 3 0x82 thrsleep syz-fuzzer 58042 329359 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 370735 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 50959 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 344279 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 91611 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 363176 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 139324 37142 0 3 0x4000082 kqread syz-fuzzer 58042 121214 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 31517 37142 0 3 0x4000082 thrsleep syz-fuzzer 58042 361767 37142 0 3 0x4000082 thrsleep syz-fuzzer 37142 505160 81020 0 3 0x10008a pause ksh 81020 355681 80421 0 3 0x92 select sshd 39459 474434 1 0 3 0x100083 ttyin getty 80421 393728 1 0 3 0x80 select sshd 6595 226113 21869 73 2 0x100090 syslogd 21869 171851 1 0 3 0x100082 netio syslogd 80338 25584 1 77 3 0x100090 poll dhclient 16287 208385 1 0 3 0x80 poll dhclient 47357 144835 0 0 2 0x14200 zerothread 36722 235683 0 0 3 0x14200 aiodoned aiodoned 73119 265994 0 0 3 0x14200 syncer update 64019 309934 0 0 3 0x14200 cleaner cleaner 56827 84698 0 0 3 0x14200 reaper reaper 20512 447559 0 0 3 0x14200 pgdaemon pagedaemon 84873 323123 0 0 3 0x14200 bored crynlk 6772 246319 0 0 3 0x14200 bored crypto 45295 286872 0 0 3 0x40014200 acpi0 acpi0 91420 400340 0 0 3 0x40014200 idle1 83365 218155 0 0 3 0x14200 bored softnet 85830 442224 0 0 3 0x14200 bored systqmp 4755 276420 0 0 3 0x14200 bored systq 43429 280997 0 0 3 0x40014200 bored softclock 22706 390572 0 0 3 0x40014200 idle0 1 317643 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper