1st 0xfffffd807f00d720 vmmaplk (&map->lock) @ /syzkaller/managers/multicore/kernel/sys/uvm/uvm_fault.c:1442 2nd 0xfffffd806a11cd68 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{0}> ddb{0}> set $lines = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 witness_checkorder(11c3aa6be8cdc530,81,fffffd806a11cd58,fffffd806a11cd58,0) at witness_checkorder+0x12f9 witness_debugger sys/kern/subr_witness.c:2543 [inline] witness_checkorder(11c3aa6be8cdc530,81,fffffd806a11cd58,fffffd806a11cd58,0) at witness_checkorder+0x12f9 sys/kern/subr_witness.c:1089 _rw_enter(efd8857331f34a8a,60b,fffffd806a11cd58,ffffffff81ed5429) at _rw_enter+0xbf _rrw_enter(31a430a3f301e03a,fffffd807de3fda8,ffffffff819017a0,0) at _rrw_enter+0x5c sys/kern/kern_rwlock.c:410 VOP_LOCK(2fe4906b97cc5ade,fffffd807de3fda8) at VOP_LOCK+0x55 sys/kern/vfs_vops.c:598 vn_lock(2497211d823817bf,8000000000001000) at vn_lock+0x6e sys/kern/vfs_vnops.c:549 uvn_io(ecdb3b6a30af40ea,0,0,fffffd807e3a72d8,8000000000000000) at uvn_io+0x2ca sys/uvm/uvm_vnode.c:1188 uvn_get(a3bafdf863308ce5,ffffffff8136c1a0,fffffd807e3a72d8,fffffd806cee3108,8000000000000000,1) at uvn_get+0x206 sys/uvm/uvm_vnode.c:1048 uvm_fault(b63043770d1b84d9,21000000,0,1) at uvm_fault+0x12c1 sys/uvm/uvm_fault.c:1023 uvm_fault_wire(1430b40a9fd24ca,1,21000000,fffffd806cee3108) at uvm_fault_wire+0x70 sys/uvm/uvm_fault.c:1293 uvm_map_pageable_wire(d472ad10972eefbe,fffffd806cee3108,21000000,20ff7000,0,4) at uvm_map_pageable_wire+0x2fd sys/uvm/uvm_map.c:2258 uvm_map_protect(11c3aa6be815568f,0,ffff800020b93080,28e5a3265e8,0) at uvm_map_protect+0x610 sys/uvm/uvm_map.c:3294 syscall(631d04914f82b498) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(631d04914f82b498) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffffa4,0,3,28c2d024010) at Xsyscall+0x128 end of kernel end trace frame: 0x28e5a326670, count: -14 ddb{0}> show registers rdi 0x3 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff800020c6d760 rbx 0x3 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800002b48000 rax 0xffff800001b46800 r8 0xffffffff81bca74f witness_checkorder+0x12cf r9 0x5 r10 0xa963d6acd0d133ff r11 0x3c3297e7a76bee13 r12 0xfffffd80025ccc30 r13 0xffffffff81eba9a8 cmd0646_9_tim_udma+0xd171 r14 0xffffffff822c3b60 w_lodata+0x4e810 r15 0xffffffff822cb1a0 w_lodata+0x55e50 rip 0xffffffff817711a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c6d750 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor1) pid=243649 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b92018,0xffffffff822db680 process=0xffff800020b94358 user=0xffff800020c68000, vmspace=0xfffffd807f00d708 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77346 316161 31898 0 2 0 syz-executor1 *77346 243649 31898 0 7 0x4000000 syz-executor1 77258 47411 0 0 3 0x14200 bored sosplice 31898 286333 4574 0 3 0x82 nanosleep syz-executor1 44772 516480 4574 0 3 0x82 nanosleep syz-executor0 4574 117532 27968 0 3 0x82 thrsleep syz-fuzzer 4574 463822 27968 0 3 0x4000082 thrsleep syz-fuzzer 4574 15658 27968 0 3 0x4000082 thrsleep syz-fuzzer 4574 84984 27968 0 3 0x4000082 kqread syz-fuzzer 4574 512711 27968 0 3 0x4000082 thrsleep syz-fuzzer 4574 285210 27968 0 3 0x4000082 thrsleep syz-fuzzer 4574 140070 27968 0 3 0x4000082 thrsleep syz-fuzzer 4574 155300 27968 0 3 0x4000082 thrsleep syz-fuzzer 4574 299123 27968 0 3 0x4000082 thrsleep syz-fuzzer 4574 3553 27968 0 3 0x4000082 thrsleep syz-fuzzer 27968 429028 79080 0 3 0x10008a pause ksh 79080 133620 80575 0 3 0x92 select sshd 10836 335765 1 0 3 0x100083 ttyin getty 80575 452671 1 0 3 0x80 select sshd 57524 465277 45877 73 7 0x100090 syslogd 45877 366613 1 0 3 0x100082 netio syslogd 10783 43692 1 77 3 0x100090 poll dhclient 14776 203665 1 0 3 0x80 poll dhclient 28770 298272 0 0 3 0x14200 pgzero zerothread 4063 460714 0 0 3 0x14200 aiodoned aiodoned 18066 374200 0 0 3 0x14200 syncer update 18087 284125 0 0 3 0x14200 cleaner cleaner 63605 65307 0 0 3 0x14200 reaper reaper 59312 36329 0 0 3 0x14200 pgdaemon pagedaemon 33225 8288 0 0 3 0x14200 bored crynlk 72068 389742 0 0 3 0x14200 bored crypto 61789 299830 0 0 3 0x40014200 acpi0 acpi0 98522 271604 0 0 3 0x40014200 idle1 73091 424248 0 0 3 0x14200 bored softnet 42680 33260 0 0 3 0x14200 bored systqmp 72876 311912 0 0 3 0x14200 bored systq 57397 66835 0 0 3 0x40014200 bored softclock 59265 352380 0 0 3 0x40014200 idle0 1 66930 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper