1st 0xfffffd807f00c720 vmmaplk (&map->lock) @ /syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c:1442 2nd 0xfffffd806cf3be70 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 sys_mlockall+0x69 #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(4480696b030006b2,81,fffffd806cf3be60,fffffd806cf3be60,0) at witness_checkorder+0x12f9 witness_debugger sys/kern/subr_witness.c:2543 [inline] witness_checkorder(4480696b030006b2,81,fffffd806cf3be60,fffffd806cf3be60,0) at witness_checkorder+0x12f9 sys/kern/subr_witness.c:1089 _rw_enter(a508317b3a24e0e4,60b,fffffd806cf3be60,ffffffff81edebdf) at _rw_enter+0xbf _rrw_enter(bdb3e6ba581f925f,fffffd806e115d50,ffffffff8139fd50,0) at _rrw_enter+0x5c sys/kern/kern_rwlock.c:410 VOP_LOCK(439c331e1de7efe5,fffffd806e115d50) at VOP_LOCK+0x55 sys/kern/vfs_vops.c:598 vn_lock(11ada628cf046039,9000) at vn_lock+0x6e sys/kern/vfs_vnops.c:549 uvn_io(30756c28cadbbd25,0,0,fffffd806e6e3008,8000) at uvn_io+0x2ca sys/uvm/uvm_vnode.c:1188 uvn_get(2a33cc9aad20cd5f,ffffffff8146c190,fffffd806e6e3008,fffffd806cdc9858,8000,3) at uvn_get+0x206 sys/uvm/uvm_vnode.c:1048 uvm_fault(30756c28ca2f4973,1b32020000,ffffffffffff8000,3) at uvm_fault+0x12c1 sys/uvm/uvm_fault.c:1023 uvm_fault_wire(4e42ebacd8fcbaa9,3,1b32020000,fffffd806cdc9858) at uvm_fault_wire+0x70 sys/uvm/uvm_fault.c:1293 uvm_map_pageable_wire(439c331e1dce2a72,1,ffff800020b93080,d00a3d9a188,0,10f0) at uvm_map_pageable_wire+0x2fd sys/uvm/uvm_map.c:2258 sys_mlockall(d8ba08e9243f7d9c,10,ffff800020b93080) at sys_mlockall+0x69 sys/uvm/uvm_mmap.c:801 syscall(ec2687d05cb53750) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ec2687d05cb53750) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffffa2,0,1,cfe8c086010) at Xsyscall+0x128 end of kernel end trace frame: 0xd00a3d9a210, count: -14 ddb{1}> show registers rdi 0x3 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff800020c6f640 rbx 0x3 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800001b47000 rax 0xffff800001b46ec0 r8 0xffffffff817c727f witness_checkorder+0x12cf r9 0x5 r10 0x13d9782fdd5f4664 r11 0xe23bd7fdb79cc6c5 r12 0xfffffd80025cdc30 r13 0xffffffff81ebbd52 cmd0646_9_tim_udma+0xc96d r14 0xffffffff82278e00 w_lodata+0x4e810 r15 0xffffffff82280440 w_lodata+0x55e50 rip 0xffffffff81107618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c6f630 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor1) pid=444484 stat=onproc flags process=10 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b93c38,0xffffffff82300be0 process=0xffff800020b94358 user=0xffff800020c6a000, vmspace=0xfffffd807f00c708 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=4, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87026 168148 22871 32767 7 0x10 syz-executor1 *87026 444484 22871 32767 7 0x4000010 syz-executor1 95988 28190 88317 32767 3 0x10 biowait syz-executor0 88317 226126 99934 0 3 0x82 wait syz-executor0 22871 348525 49108 32767 3 0x90 nanosleep syz-executor1 49108 518444 99934 0 3 0x82 wait syz-executor1 99856 120520 0 0 3 0x14200 bored sosplice 99934 54375 72198 0 3 0x82 thrsleep syz-fuzzer 99934 99603 72198 0 3 0x4000082 nanosleep syz-fuzzer 99934 423138 72198 0 3 0x4000082 thrsleep syz-fuzzer 99934 404968 72198 0 3 0x4000082 kqread syz-fuzzer 99934 106441 72198 0 3 0x4000082 thrsleep syz-fuzzer 99934 142891 72198 0 3 0x4000082 thrsleep syz-fuzzer 99934 521901 72198 0 3 0x4000082 thrsleep syz-fuzzer 99934 149172 72198 0 3 0x4000082 thrsleep syz-fuzzer 99934 367449 72198 0 3 0x4000082 thrsleep syz-fuzzer 99934 52388 72198 0 3 0x4000082 thrsleep syz-fuzzer 72198 78649 91630 0 3 0x10008a pause ksh 91630 297164 50942 0 3 0x92 select sshd 34664 471928 1 0 3 0x100083 ttyin getty 50942 10413 1 0 3 0x80 select sshd 51211 217129 68182 73 2 0x100090 syslogd 68182 271340 1 0 3 0x100082 netio syslogd 64825 76471 1 77 3 0x100090 poll dhclient 83492 243603 1 0 3 0x80 poll dhclient 98739 279315 0 0 2 0x14200 zerothread 75448 276280 0 0 3 0x14200 aiodoned aiodoned 34969 162670 0 0 3 0x14200 syncer update 55959 83755 0 0 3 0x14200 cleaner cleaner 45837 188161 0 0 3 0x14200 reaper reaper 42075 328760 0 0 3 0x14200 pgdaemon pagedaemon 48614 237980 0 0 3 0x14200 bored crynlk 76184 41610 0 0 3 0x14200 bored crypto 61384 199163 0 0 3 0x40014200 acpi0 acpi0 73240 93065 0 0 3 0x40014200 idle1 44565 325070 0 0 3 0x14200 bored softnet 80965 372882 0 0 3 0x14200 bored systqmp 54809 261061 0 0 3 0x14200 bored systq 73835 19947 0 0 3 0x40014200 bored softclock 93384 174956 0 0 3 0x40014200 idle0 1 84031 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper