1st 0xfffffd807f00c450 vmmaplk (&map->lock) @ /syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c:1442 2nd 0xfffffd80772a3c48 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(50cd29232be8faa,81,fffffd80772a3c38,fffffd80772a3c38,0) at witness_checkorder+0x12f9 witness_debugger sys/kern/subr_witness.c:2543 [inline] witness_checkorder(50cd29232be8faa,81,fffffd80772a3c38,fffffd80772a3c38,0) at witness_checkorder+0x12f9 sys/kern/subr_witness.c:1089 _rw_enter(2c772d1a856f63a5,60b,fffffd80772a3c38,ffffffff81edebdf) at _rw_enter+0xbf _rrw_enter(40fd1a79c57dd2c4,fffffd807732ec48,ffffffff8139fd50,0) at _rrw_enter+0x5c sys/kern/kern_rwlock.c:410 VOP_LOCK(9440f744af65b08c,fffffd807732ec48) at VOP_LOCK+0x55 sys/kern/vfs_vops.c:598 vn_lock(b0cde31ed5019bf7,1000) at vn_lock+0x6e sys/kern/vfs_vnops.c:549 uvn_io(b78c87e3e537c4bc,0,0,fffffd8077141ef8,0) at uvn_io+0x2ca sys/uvm/uvm_vnode.c:1188 uvn_get(c900e4fc287c7854,ffffffff8146c190,fffffd8077141ef8,fffffd8068e808f8,0,1) at uvn_get+0x206 sys/uvm/uvm_vnode.c:1048 uvm_fault(b78c87e3e5c330ea,21000000,0,1) at uvm_fault+0x12c1 sys/uvm/uvm_fault.c:1023 uvm_fault_wire(e8d5b7380eccf123,1,21000000,fffffd8068e808f8) at uvm_fault_wire+0x70 sys/uvm/uvm_fault.c:1293 uvm_map_pageable_wire(9440f744af15f7b2,fffffd8068e808f8,21000000,20ffc000,0,4) at uvm_map_pageable_wire+0x2fd sys/uvm/uvm_map.c:2258 uvm_map_protect(b566dfc8665e3f99,10,ffff800020bba270,f67712f5748,0) at uvm_map_protect+0x610 sys/uvm/uvm_map.c:3294 syscall(8b4e802dce0c20a4) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(8b4e802dce0c20a4) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffffa4,0,3,f64d8071010) at Xsyscall+0x128 end of kernel end trace frame: 0xf67712f57d0, count: -14 ddb{1}> show registers rdi 0x3 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff800020cb5540 rbx 0x3 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800001546000 rax 0xffff80000454e080 r8 0xffffffff817c727f witness_checkorder+0x12cf r9 0x5 r10 0x74b17fd24fe65190 r11 0x9758c73c18c50aeb r12 0xfffffd80025cdc30 r13 0xffffffff81ebbd52 cmd0646_9_tim_udma+0xc96d r14 0xffffffff82271c90 w_lodata+0x476a0 r15 0xffffffff82280440 w_lodata+0x55e50 rip 0xffffffff81107618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020cb5530 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor0) pid=396008 stat=onproc flags process=10 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020bbabd0,0xffff800020bba028 process=0xffff800020bca360 user=0xffff800020cb0000, vmspace=0xfffffd807f00c438 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76728 319064 3773 32767 2 0x10 syz-executor0 *76728 396008 3773 32767 7 0x4000010 syz-executor0 56983 218039 11778 32767 7 0x10 syz-executor1 56983 351822 11778 32767 3 0x4000010 biowait syz-executor1 56983 371849 11778 32767 3 0x4000010 inode syz-executor1 11778 266249 58042 32767 3 0x90 nanosleep syz-executor1 58042 350627 50770 0 3 0x82 wait syz-executor1 3773 356771 20938 32767 3 0x90 nanosleep syz-executor0 20938 324019 50770 0 3 0x82 wait syz-executor0 66609 412434 0 0 3 0x14200 bored sosplice 50770 383759 64104 0 3 0x82 thrsleep syz-fuzzer 50770 189788 64104 0 3 0x4000082 thrsleep syz-fuzzer 50770 304706 64104 0 3 0x4000082 thrsleep syz-fuzzer 50770 464247 64104 0 3 0x4000082 thrsleep syz-fuzzer 50770 312894 64104 0 3 0x4000082 kqread syz-fuzzer 50770 90435 64104 0 3 0x4000082 thrsleep syz-fuzzer 50770 62025 64104 0 3 0x4000082 thrsleep syz-fuzzer 50770 343335 64104 0 3 0x4000082 thrsleep syz-fuzzer 50770 250568 64104 0 3 0x4000082 thrsleep syz-fuzzer 50770 209891 64104 0 3 0x4000082 thrsleep syz-fuzzer 64104 241459 62769 0 3 0x10008a pause ksh 62769 357017 93936 0 3 0x92 select sshd 24377 186898 1 0 3 0x100083 ttyin getty 93936 278647 1 0 3 0x80 select sshd 91920 29521 76835 73 3 0x100010 biowait syslogd 76835 279781 1 0 3 0x100082 netio syslogd 61589 488551 1 77 3 0x100090 poll dhclient 42340 365522 1 0 3 0x80 poll dhclient 34383 292245 0 0 3 0x14200 pgzero zerothread 64901 295892 0 0 3 0x14200 aiodoned aiodoned 20835 161712 0 0 3 0x14200 syncer update 21519 391532 0 0 3 0x14200 cleaner cleaner 76080 130276 0 0 3 0x14200 reaper reaper 49502 145914 0 0 3 0x14200 pgdaemon pagedaemon 1512 519468 0 0 3 0x14200 bored crynlk 16487 344723 0 0 3 0x14200 bored crypto 76540 124069 0 0 3 0x40014200 acpi0 acpi0 51010 346978 0 0 3 0x40014200 idle1 49106 293090 0 0 3 0x14200 bored softnet 78339 55656 0 0 3 0x14200 bored systqmp 87030 23692 0 0 3 0x14200 bored systq 5447 153601 0 0 3 0x40014200 bored softclock 72856 254250 0 0 3 0x40014200 idle0 1 472705 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper