Warning: Permanently added '10.128.0.196' (ED25519) to the list of known hosts. 2022/04/17 09:05:42 parsed 1 programs 2022/04/17 09:05:47 executed programs: 0 witness: lock order reversal: 1st 0xffffffff8290fd40 pf_lock (pf_lock) 2nd 0xffffffff8293ec40 netlock (netlock) lock order "netlock"(rwlock) -> "pf_lock"(rwlock) first seen at: #0 rw_enter_write+0x5b #1 pfioctl+0x417c #2 VOP_IOCTL+0x96 #3 vn_ioctl+0xbc #4 sys_ioctl+0x4a2 #5 syscall+0x489 #6 Xsyscall+0x128 lock order "pf_lock"(rwlock) -> "netlock"(rwlock) first seen at: #0 rw_enter_write+0x5b #1 uvn_io+0x418 #2 uvn_get+0x1df #3 uvm_fault_lower+0x36c #4 uvm_fault+0x248 #5 kpageflttrap+0x209 #6 kerntrap+0xef #7 alltraps_kern_meltdown+0x7b #8 copyout+0x53 #9 pfioctl+0x4516 #10 VOP_IOCTL+0x96 #11 vn_ioctl+0xbc #12 sys_ioctl+0x4a2 #13 syscall+0x489 #14 Xsyscall+0x128 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x18 witness_checkorder(ffffffff8293ec40,9,0) at witness_checkorder+0x10b7 rw_enter_write(ffffffff8293ec30) at rw_enter_write+0x5b uvn_io(fffffd806a9db1f8,ffff800021287ad8,1,202,0) at uvn_io+0x418 uvn_get(fffffd806a9db1f8,1000,ffff800021287b98,ffff800021287b68,0,0,39a3714e7d294411,1) at uvn_get+0x1df uvm_fault_lower(ffff800021287d00,ffff800021287d38,ffff800021287c80,0) at uvm_fault_lower+0x36c uvm_fault(fffffd807693cb98,20001000,0,2) at uvm_fault+0x248 kpageflttrap(ffff800021287e90,20001000) at kpageflttrap+0x209 kerntrap(ffff800021287e90) at kerntrap+0xef alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x53 pfioctl(4900,c0284457,ffff800021288300,1,ffff800021297508) at pfioctl+0x4516 VOP_IOCTL(fffffd806f680808,c0284457,ffff800021288300,1,fffffd807f7d7660,ffff800021297508) at VOP_IOCTL+0x96 vn_ioctl(fffffd807735d558,c0284457,ffff800021288300,ffff800021297508) at vn_ioctl+0xbc sys_ioctl(ffff800021297508,ffff800021288418,ffff800021288470) at sys_ioctl+0x4a2 syscall(ffff8000212884e0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa4c0, count: -17 ddb{1}> show registers rdi 0x3 rsi 0xffffffff8291ce90 __sancov_gen_cov_switch_values.134 rbp 0xffff8000212878a0 rbx 0x3 rdx 0x3fd rcx 0 rax 0x1 r8 0xffff800021287810 r9 0x8080808080808080 r10 0x321a97fd9038d3ae r11 0xb54610c4fbcb7d5c r12 0xffffffff82aa2240 w_lodata+0x52a10 r13 0 r14 0xffffffff82a9db70 w_lodata+0x4e340 r15 0xfffffd8002f6c780 rip 0xffffffff81c1bfe8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021287890 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.5) pid=512490 stat=onproc flags process=0 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021296548,0xffff8000212977b8 process=0xffff8000ffff2dd0 user=0xffff800021283000, vmspace=0xfffffd807693cb98 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49789 258841 67340 0 2 0x100000 sh *79700 512490 13741 0 7 0 syz-executor.5 18584 265929 7620 0 7 0x100002 sh 58695 518113 31339 0 2 0x2 ifconfig 30296 242727 8039 0 2 0x2 sh 31339 17633 32879 0 3 0x10008a sigsusp sh 62375 360213 84237 0 2 0x2 ifconfig 84237 413326 6209 0 3 0x10008a sigsusp sh 67340 56853 82033 0 3 0x10008a sigsusp sh 4853 16437 15040 0 2 0x2 arp 15040 69440 36135 0 3 0x10008a sigsusp sh 51012 278164 83338 0 2 0x100000 sh 83338 435982 63980 0 3 0x10008a sigsusp sh 6209 419130 69068 0 3 0x82 wait syz-executor.7 82033 256303 69068 0 3 0x82 wait syz-executor.3 7620 196524 69068 0 3 0x82 wait syz-executor.6 63980 262149 69068 0 3 0x82 wait syz-executor.4 8039 231927 69068 0 3 0x82 wait syz-executor.1 36135 56592 69068 0 3 0x82 wait syz-executor.2 13741 112166 69068 0 3 0x82 nanoslp syz-executor.5 32879 55694 69068 0 3 0x82 wait syz-executor.0 69068 276104 89959 0 3 0x82 nanoslp syz-execprog 69068 416534 89959 0 3 0x4000082 nanoslp syz-execprog 69068 492266 89959 0 3 0x4000082 thrsleep syz-execprog 69068 162072 89959 0 3 0x4000082 kqread syz-execprog 69068 98778 89959 0 3 0x4000082 thrsleep syz-execprog 69068 36414 89959 0 3 0x4000082 thrsleep syz-execprog 69068 496624 89959 0 3 0x4000082 thrsleep syz-execprog 69068 499017 89959 0 3 0x4000082 thrsleep syz-execprog 69068 404184 89959 0 3 0x4000082 thrsleep syz-execprog 89959 184147 3459 0 3 0x10008a sigsusp ksh 3459 403325 22344 0 3 0x9a kqread sshd 12013 43152 1 0 3 0x100083 ttyin getty 22344 353361 1 0 3 0x88 kqread sshd 49505 399814 16628 74 3 0x1100092 bpf pflogd 16628 196703 1 0 3 0x80 netio pflogd 20611 356703 43954 73 3 0x1100090 kqread syslogd 43954 231384 1 0 3 0x100082 netio syslogd 13448 85105 1 0 3 0x100080 kqread resolvd 57842 434298 1440 77 3 0x100092 kqread dhcpleased 2502 309926 1440 77 3 0x100092 kqread dhcpleased 1440 82735 1 0 3 0x80 kqread dhcpleased 73439 152815 0 0 3 0x14200 bored smr 29478 220921 0 0 2 0x14200 zerothread 76111 52438 0 0 3 0x14200 aiodoned aiodoned 37902 234706 0 0 3 0x14200 syncer update 44354 348106 0 0 3 0x14200 cleaner cleaner 18719 317933 0 0 3 0x14200 reaper reaper 36909 357304 0 0 3 0x14200 pgdaemon pagedaemon 69692 513726 0 0 3 0x14200 bored viomb 66840 143458 0 0 3 0x40014200 acpi0 acpi0 52627 258885 0 0 3 0x40014200 idle1 15063 270687 0 0 3 0x14200 bored softnet 21552 256716 0 0 3 0x14200 bored systqmp 9831 142684 0 0 3 0x14200 bored systq 92762 501366 0 0 3 0x40014200 bored softclock 29069 366599 0 0 3 0x40014200 idle0 1 315682 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 79700 (syz-executor.5) thread 0xffff800021297508 (512490) exclusive rwlock pf_lock r = 0 (0xffffffff8290fd40) #0 witness_lock+0x44d #1 pfioctl+0x4504 #2 VOP_IOCTL+0x96 #3 vn_ioctl+0xbc #4 sys_ioctl+0x4a2 #5 syscall+0x489 #6 Xsyscall+0x128 shared rwlock pfioctl_rw r = 0 (0xffffffff8290fda0) #0 witness_lock+0x44d #1 pfioctl+0x946 #2 VOP_IOCTL+0x96 #3 vn_ioctl+0xbc #4 sys_ioctl+0x4a2 #5 syscall+0x489 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b4b7a0) #0 witness_lock+0x44d #1 vn_ioctl+0x41 #2 sys_ioctl+0x4a2 #3 syscall+0x489 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10173 6473K 6473K 78643K 11263 0 pcb 13 8K 8K 78643K 13 0 rtable 134 3K 4K 78643K 216 0 ifaddr 72 14K 14K 78643K 76 0 counters 56 35K 35K 78643K 56 0 ioctlops 0 0K 4K 78643K 1481 0 iov 0 0K 0K 78643K 1 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1167 73K 73K 78643K 1180 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 93K 78643K 109 0 proc 67 91K 128K 78643K 450 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 37 2K 2K 78643K 37 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 626 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 167 72K 73K 78643K 2151 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 16 0K 0K 78643K 16 0 temp 56 4706K 4769K 78643K 3411 0 kqueue 12 18K 18K 78643K 25 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 27 0 24 1 0 1 1 0 8 0 rtentry 112 59 0 1 2 0 2 2 0 8 0 unpcb 136 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 13 0 0 1 0 1 1 0 8 0 inpcb 312 56 0 50 1 0 1 1 0 8 0 nd6 48 5 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 11 0 2 1 0 1 1 0 8 0 pfstkey 112 11 0 2 1 0 1 1 0 8 0 pfstate 320 11 0 2 1 0 1 1 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 202 0 0 13 0 13 13 0 8 0 art_table 32 203 0 0 2 0 2 2 0 8 0 art_node 16 58 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1481 0 49 90 0 90 90 0 8 0 ffsino 272 1481 0 49 96 0 96 96 0 8 0 nchpl 144 1745 0 59 63 0 63 63 0 8 0 uvmvnodes 80 1491 0 0 31 0 31 31 0 8 0 vnodes 224 1491 0 0 88 0 88 88 0 8 0 namei 1024 5858 0 5858 3 1 2 2 0 8 2 percpumem 16 40 0 0 1 0 1 1 0 8 0 scxspl 216 5558 0 5558 9 1 8 8 0 8 8 plimitpl 152 24 0 9 1 0 1 1 0 8 0 sigapl 424 426 0 376 6 0 6 6 0 8 0 knotepl 120 106 0 0 4 0 4 4 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 336 138 0 110 4 1 3 3 0 8 0 fdescpl 496 412 0 376 5 0 5 5 0 8 0 filepl 152 1543 0 1406 6 0 6 6 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 26 0 9 1 0 1 1 0 8 0 pgrppl 48 26 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 376 0 376 2 1 1 1 0 8 1 processpl 1064 426 0 376 4 0 4 4 0 8 0 procpl 672 434 0 376 6 0 6 6 0 8 0 sockpl 480 118 0 94 5 1 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 57 0 0 8 0 8 8 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 204 0 0 12 0 12 12 0 8 0 bufpl 288 3612 0 144 248 0 248 248 0 8 0 anonpl 24 51217 0 46435 43 3 40 40 0 186 8 amapchunkpl 152 4414 0 4066 17 1 16 16 0 158 1 amappl16 200 316 0 234 5 0 5 5 0 8 0 amappl15 192 7 0 6 2 1 1 1 0 8 0 amappl14 184 14 0 12 1 0 1 1 0 8 0 amappl13 176 95 0 84 2 1 1 1 0 8 0 amappl12 168 3 0 3 2 1 1 1 0 8 1 amappl11 160 93 0 70 2 0 2 2 0 8 0 amappl10 152 31 0 26 1 0 1 1 0 8 0 amappl9 144 468 0 466 1 0 1 1 0 8 0 amappl8 136 518 0 493 3 1 2 2 0 8 0 amappl7 128 99 0 90 1 0 1 1 0 8 0 amappl6 120 235 0 212 2 0 2 2 0 8 1 amappl5 112 98 0 85 1 0 1 1 0 8 0 amappl4 104 828 0 795 2 0 2 2 0 8 1 amappl3 96 485 0 444 2 0 2 2 0 8 0 amappl2 88 692 0 627 4 1 3 3 0 8 1 amappl1 80 11927 0 11270 22 2 20 20 0 8 4 amappl 88 1746 0 1634 3 0 3 3 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 412 0 376 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 412 0 376 1 0 1 1 0 8 0 vmmpekpl 168 8529 0 8504 2 0 2 2 0 8 0 vmmpepl 168 39098 0 37280 100 8 92 92 0 357 10 vmsppl 368 411 0 376 4 0 4 4 0 8 0 rwobjpl 56 12498 0 9954 42 1 41 41 0 8 3 pdppl 4096 831 0 752 123 40 83 83 0 8 4 pvpl 32 232644 0 223768 255 12 243 243 0 265 164 pmappl 248 411 0 376 3 0 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 614 0 44 17 0 17 17 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82968ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b4b598) at __mp_lock+0x122 intr_handler(ffff8000212d8380,ffff800000078500) at intr_handler+0x5e Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x39 softintr_dispatch(0) at softintr_dispatch+0x4e Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82b4b598) at __mp_lock+0x122 syscall(ffff8000212d86c0) at syscall+0x3ef Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9c60, count: -12 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x18 witness_checkorder(ffffffff8293ec40,9,0) at witness_checkorder+0x10b7 rw_enter_write(ffffffff8293ec30) at rw_enter_write+0x5b uvn_io(fffffd806a9db1f8,ffff800021287ad8,1,202,0) at uvn_io+0x418 uvn_get(fffffd806a9db1f8,1000,ffff800021287b98,ffff800021287b68,0,0,39a3714e7d294411,1) at uvn_get+0x1df uvm_fault_lower(ffff800021287d00,ffff800021287d38,ffff800021287c80,0) at uvm_fault_lower+0x36c uvm_fault(fffffd807693cb98,20001000,0,2) at uvm_fault+0x248 kpageflttrap(ffff800021287e90,20001000) at kpageflttrap+0x209 kerntrap(ffff800021287e90) at kerntrap+0xef alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x53 pfioctl(4900,c0284457,ffff800021288300,1,ffff800021297508) at pfioctl+0x4516 VOP_IOCTL(fffffd806f680808,c0284457,ffff800021288300,1,fffffd807f7d7660,ffff800021297508) at VOP_IOCTL+0x96 vn_ioctl(fffffd807735d558,c0284457,ffff800021288300,ffff800021297508) at vn_ioctl+0xbc sys_ioctl(ffff800021297508,ffff800021288418,ffff800021288470) at sys_ioctl+0x4a2 syscall(ffff8000212884e0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa4c0, count: -17 ddb{1}>