kernel: protection fault trap, code=0 Stopped at witness_checkorder+0x4f5: movl 0x10(%r14),%ecx ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace witness_checkorder(fffffd806ef671c0,9,0) at witness_checkorder+0x4f5 witness_lock_order_check sys/kern/subr_witness.c:2442 [inline] witness_checkorder(fffffd806ef671c0,9,0) at witness_checkorder+0x4f5 sys/kern/subr_witness.c:890 mtx_enter(fffffd806ef671b0) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000211f5808,fffffd806ef671b0,fffffd806ef67238,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211f5808,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211f5808) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211f5808,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000211f5808,ffff800021263aa0,ffff800021263af0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021263b70) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021263b70) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f11e23a3730, count: -9 ddb{1}> show registers rdi 0xffffffff rsi 0xffffffff rbp 0xffff800021263840 rbx 0xffffffff rdx 0 rcx 0xc rax 0xfffffd80031ee000 r8 0x1 r9 0x1 r10 0x61a8f8e11774d674 r11 0x8f79fd056195d39a r12 0xfffffd80031c6300 r13 0xfffffd806ef671c0 r14 0xdeaf4152deaf4152 r15 0xfffffd80039b5248 rip 0xffffffff8159fd35 witness_checkorder+0x4f5 cs 0x8 rflags 0x10212 __ALIGN_SIZE+0xf212 rsp 0xffff800021263790 ss 0x10 witness_checkorder+0x4f5: movl 0x10(%r14),%ecx ddb{1}> show proc PROC (syz-executor3001616429) pid=340220 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=58, nice=20 forw=0xffffffffffffffff, list=0xffff8000211f4818,0xffff8000211f5020 process=0xffff8000ffff65c8 user=0xffff80002125e000, vmspace=0xfffffd8008a12740 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21210 57033 53191 0 2 0 syz-executor3001616429 30352 209133 41392 0 2 0 syz-executor3001616429 22822 386880 26724 0 7 0 syz-executor3001616429 80359 244025 10025 0 2 0 syz-executor3001616429 80359 493795 10025 0 2 0x4000000 syz-executor3001616429 45476 324629 1992 0 2 0 syz-executor3001616429 39987 154553 83942 0 2 0 syz-executor3001616429 39987 356224 83942 0 2 0x4000000 syz-executor3001616429 83942 276428 50731 0 3 0x80 nanoslp syz-executor3001616429 1992 228046 50731 0 3 0x80 nanoslp syz-executor3001616429 26724 158760 50731 0 3 0x80 nanoslp syz-executor3001616429 10025 355848 50731 0 3 0x80 nanoslp syz-executor3001616429 53191 513357 50731 0 3 0x80 nanoslp syz-executor3001616429 91648 442846 50731 0 3 0x80 nanoslp syz-executor3001616429 41392 148671 50731 0 3 0x80 nanoslp syz-executor3001616429 44041 283673 50731 0 2 0 syz-executor3001616429 50731 446604 68644 0 3 0x82 nanoslp syz-executor3001616429 68644 488279 13060 0 3 0x10008a sigsusp ksh 13060 497764 12630 0 2 0x9a sshd 79902 461915 1 0 3 0x100083 ttyin getty 12630 2467 1 0 3 0x88 kqread sshd 94080 383468 1196 74 3 0x1100092 bpf pflogd 1196 414385 1 0 3 0x80 netio pflogd 47750 262116 52804 73 3 0x1100090 kqread syslogd 52804 99936 1 0 3 0x100082 netio syslogd 2194 205944 1 0 3 0x100080 kqread resolvd 18581 51146 84810 77 3 0x100092 kqread dhcpleased 85807 514335 84810 77 3 0x100092 kqread dhcpleased 84810 469752 1 0 3 0x80 kqread dhcpleased 34871 327062 0 0 3 0x14200 bored smr 15747 77600 0 0 2 0x14200 zerothread 18981 474354 0 0 3 0x14200 aiodoned aiodoned 84316 142097 0 0 3 0x14200 syncer update 79287 445063 0 0 3 0x14200 cleaner cleaner 5359 473730 0 0 2 0x14200 reaper 12606 33333 0 0 3 0x14200 pgdaemon pagedaemon 84739 444496 0 0 3 0x14200 bored viomb 17902 403631 0 0 3 0x40014200 acpi0 acpi0 61162 72058 0 0 3 0x40014200 idle1 78841 78709 0 0 3 0x14200 bored softnet3 72442 159301 0 0 3 0x14200 bored softnet2 1409 80383 0 0 3 0x14200 bored softnet1 89756 178294 0 0 3 0x14200 bored softnet0 58155 413134 0 0 3 0x14200 bored systqmp 22416 356800 0 0 3 0x14200 bored systq 80852 359064 0 0 3 0x40014200 bored softclock 62464 18653 0 0 3 0x40014200 idle0 1 495119 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10162 6456K 6457K 78643K 11240 0 pcb 13 8K 8K 78643K 13 0 rtable 58 1K 2K 78643K 116 0 pf 15 6K 10K 78643K 26 0 ifaddr 13 9K 9K 78643K 13 0 ifgroup 22 1K 1K 78643K 22 0 counters 44 33K 33K 78643K 44 0 ioctlops 0 0K 4K 78643K 1475 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1176 74K 74K 78643K 1192 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 1 0K 0K 78643K 1 0 proc 67 91K 91K 78643K 302 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 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 1K 78643K 272 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 8 62K 64K 78643K 10 0 UVM amap 128 6K 7K 78643K 5797 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 4 0K 0K 78643K 4 0 temp 1 5904K 5968K 78643K 3136 0 kqueue 11 16K 28K 78643K 577 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 21 0 18 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 35 0 20 1 0 1 1 0 8 0 syncache 304 5 0 5 1 0 1 1 0 8 1 tcpqe 32 170 0 170 1 1 0 1 0 8 0 tcpcb 808 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 368 594 0 587 2 0 2 2 0 8 1 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 9 0 0 1 0 1 1 0 8 0 pfstkey 128 9 0 0 1 0 1 1 0 8 0 pfstate 376 9 0 0 1 0 1 1 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1432 0 38 88 0 88 88 0 8 0 ffsino 272 1432 0 38 93 0 93 93 0 8 0 nchpl 144 1618 0 49 59 0 59 59 0 8 0 uvmvnodes 80 1446 0 0 30 0 30 30 0 8 0 vnodes 216 1446 0 0 81 0 81 81 0 8 0 namei 1024 4575 0 4575 1 0 1 1 0 8 1 percpumem 16 35 0 0 1 0 1 1 0 8 0 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 4847 0 4847 3 2 1 2 1 8 1 plimitpl 152 17 0 10 1 0 1 1 0 8 0 sigapl 424 915 0 867 7 1 6 6 0 8 0 futexpl 64 1480 0 1480 1 0 1 1 0 8 1 knotepl 120 48 0 0 2 0 2 2 0 8 0 kqueuepl 216 581 0 574 1 0 1 1 0 8 0 pipepl 320 95 0 92 1 0 1 1 0 8 0 fdescpl 496 898 0 868 4 0 4 4 0 8 0 filepl 152 1842 0 1783 3 0 3 3 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 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 104 71 0 59 1 0 1 1 0 8 0 zombiepl 144 869 0 867 1 0 1 1 0 8 0 processpl 1072 915 0 867 4 0 4 4 0 8 0 procpl 680 1493 0 1442 6 1 5 5 0 8 0 sockpl 488 650 0 625 4 0 4 4 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 242 0 0 31 0 31 31 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 256 0 0 16 0 16 16 0 8 0 bufpl 288 2534 0 90 175 0 175 175 0 8 0 anonpl 24 216381 0 214229 25 4 21 25 0 186 7 amapchunkpl 152 19155 0 18940 13 1 12 12 0 158 3 amappl16 200 6285 0 6284 5 4 1 5 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 116 0 105 1 0 1 1 0 8 0 amappl13 176 12 0 11 1 0 1 1 0 8 0 amappl12 168 1462 0 1445 2 1 1 2 0 8 0 amappl11 160 63 0 49 1 0 1 1 0 8 0 amappl10 152 15 0 14 1 0 1 1 0 8 0 amappl9 144 191 0 191 1 1 0 1 0 8 0 amappl8 136 34 0 32 1 0 1 1 0 8 0 amappl7 128 597 0 582 1 0 1 1 0 8 0 amappl6 120 161 0 146 1 0 1 1 0 8 0 amappl5 112 127 0 116 1 0 1 1 0 8 0 amappl4 104 478 0 445 1 0 1 1 0 8 0 amappl3 96 4360 0 4317 3 1 2 2 0 8 0 amappl2 88 1059 0 1006 2 0 2 2 0 8 0 amappl1 80 12329 0 11823 12 0 12 12 0 8 1 amappl 88 5486 0 5404 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 898 0 868 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 898 0 868 1 0 1 1 0 8 0 vmmpekpl 168 10002 0 9982 2 0 2 2 0 8 0 vmmpepl 168 56523 0 55205 64 1 63 63 0 357 5 vmsppl 464 897 0 868 4 0 4 4 0 8 0 rwobjpl 56 26861 0 24682 34 2 32 33 0 8 1 pdppl 4096 1804 0 1736 86 16 70 70 0 8 2 pvpl 32 348977 0 343707 58 5 53 57 0 265 10 pmappl 248 897 0 868 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 514 0 19 15 0 15 15 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82bc2ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82cbdb20) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cbdb20) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff8000212abf10) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212abf10) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f11e23a3650, count: -6 ddb{0}> machine ddbcpu 1 Stopped at witness_checkorder+0x4f5: movl 0x10(%r14),%ecx ddb{1}> trace witness_checkorder(fffffd806ef671c0,9,0) at witness_checkorder+0x4f5 witness_lock_order_check sys/kern/subr_witness.c:2442 [inline] witness_checkorder(fffffd806ef671c0,9,0) at witness_checkorder+0x4f5 sys/kern/subr_witness.c:890 mtx_enter(fffffd806ef671b0) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000211f5808,fffffd806ef671b0,fffffd806ef67238,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211f5808,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211f5808) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211f5808,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000211f5808,ffff800021263aa0,ffff800021263af0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021263b70) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021263b70) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f11e23a3730, count: -9