kernel: protection fault trap, code=0 Stopped at witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace witness_checkorder(fffffd806f10b010,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f10b000) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000212242a8,fffffd806f10b000,fffffd806f10b088,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212242a8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212242a8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212242a8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212242a8,ffff80002e419770,ffff80002e4197c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e419840) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e419840) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7defb6d3d100, count: -9 ddb{0}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff80002e419510 rbx 0xe rdx 0 rcx 0xffff8000212242a8 rax 0xffffffff82bfcff0 cpu_info_full_primary+0x1ff0 r8 0x1 r9 0 r10 0xbd85d70080634558 r11 0x4e6d821a366d2914 r12 0 r13 0xfffffd806f10b010 r14 0xfffeffff00010000 r15 0xffff8000212242a8 rip 0xffffffff81eeff1c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002e419460 ss 0x10 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{0}> show proc PROC (syz-executor.2) pid=522807 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021225d38,0xffff800021274d60 process=0xffff80002615d0d8 user=0xffff80002e414000, vmspace=0xfffffd806c89a018 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60528 144622 4928 32767 2 0x10 syz-executor.1 21071 335835 664 32767 2 0x3010 syz-executor.7 4928 313231 34976 32767 3 0x90 nanoslp syz-executor.1 34976 231335 50873 0 3 0x82 wait syz-executor.1 77159 483305 54338 32767 2 0x10 syz-executor.5 54338 259470 50873 0 3 0x82 wait syz-executor.5 33599 225962 77700 32767 3 0x90 nanoslp syz-executor.3 77700 202808 50873 0 3 0x82 wait syz-executor.3 21612 348834 0 0 3 0x14200 bored sosplice 664 108793 68068 32767 3 0x90 nanoslp syz-executor.7 87059 307026 59138 32767 2 0x10 syz-executor.6 68068 205089 50873 0 3 0x82 wait syz-executor.7 59138 159697 50873 0 3 0x82 wait syz-executor.6 31386 502530 71638 32767 2 0x10 syz-executor.4 71638 481203 50873 0 3 0x82 wait syz-executor.4 94397 250308 89571 32767 3 0x90 nanoslp syz-executor.2 89571 141058 50873 0 3 0x82 wait syz-executor.2 8357 464195 56173 32767 2 0x10 syz-executor.0 56173 226001 50873 0 3 0x82 wait syz-executor.0 50873 328899 52329 0 3 0x2000082 thrsleep syz-fuzzer 50873 356440 52329 0 3 0x6000082 nanoslp syz-fuzzer 50873 77218 52329 0 3 0x6000082 wait syz-fuzzer 50873 160882 52329 0 3 0x6000082 thrsleep syz-fuzzer 50873 512525 52329 0 3 0x6000082 wait syz-fuzzer 50873 168213 52329 0 3 0x6000082 thrsleep syz-fuzzer 50873 366442 52329 0 3 0x6000082 wait syz-fuzzer 50873 483951 52329 0 3 0x6000082 wait syz-fuzzer 50873 398416 52329 0 2 0x6000002 syz-fuzzer 50873 203193 52329 0 3 0x6000082 wait syz-fuzzer 50873 519405 52329 0 3 0x6000082 thrsleep syz-fuzzer 50873 148643 52329 0 3 0x6000082 wait syz-fuzzer 50873 229999 52329 0 3 0x6000082 wait syz-fuzzer 50873 146410 52329 0 3 0x6000082 wait syz-fuzzer 50873 105674 52329 0 3 0x6000082 thrsleep syz-fuzzer 50873 89078 52329 0 3 0x6000082 kqread syz-fuzzer 52329 394938 38377 0 3 0x10008a sigsusp ksh 38377 517892 43215 0 7 0x12 sshd 99571 52199 1 0 3 0x100083 ttyin getty 43215 178199 1 0 3 0x88 kqread sshd 37958 25124 29333 73 3 0x1100090 kqread syslogd 29333 382749 1 0 3 0x100082 netio syslogd 96958 116494 1 0 3 0x100080 kqread resolvd 81330 522224 14751 77 3 0x100092 kqread dhcpleased 1622 393903 14751 77 3 0x100092 kqread dhcpleased 14751 33166 1 0 3 0x80 kqread dhcpleased 41254 475457 0 0 3 0x14200 bored smr 70109 519867 0 0 2 0x14200 zerothread 97593 365916 0 0 3 0x14200 aiodoned aiodoned 60737 336898 0 0 3 0x14200 syncer update 71083 384842 0 0 3 0x14200 cleaner cleaner 3625 412462 0 0 2 0x14200 reaper 32865 453484 0 0 3 0x14200 pgdaemon pagedaemon 77951 418608 0 0 3 0x14200 bored viomb 34775 110534 0 0 3 0x40014200 acpi0 acpi0 4814 166449 0 0 3 0x40014200 idle1 84187 455188 0 0 3 0x14200 bored softnet3 97688 164339 0 0 3 0x14200 bored softnet2 85951 173708 0 0 3 0x14200 bored softnet1 25020 323201 0 0 2 0x14200 softnet0 25540 79330 0 0 3 0x14200 bored systqmp 93139 64898 0 0 3 0x14200 bored systq 64769 63306 0 0 3 0x40014200 bored softclock 7842 359250 0 0 3 0x40014200 idle0 1 160988 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10187 6409K 6420K 78643K 11280 0 pcb 13 8K 8K 78643K 13 0 rtable 236 6K 6K 78643K 546 0 pf 29 8K 8K 78643K 39 0 ifaddr 44 15K 15K 78643K 68 0 ifgroup 50 2K 2K 78643K 70 0 sysctl 1 1K 1K 78643K 1 0 counters 60 35K 35K 78643K 70 0 ioctlops 0 0K 2K 78643K 44 0 iov 0 0K 16K 78643K 250 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1278 80K 80K 78643K 1418 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 19 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 21 77K 121K 78643K 1872 0 sigio 0 0K 0K 78643K 141 0 proc 56 78K 103K 78643K 726 0 subproc 104 6K 6K 78643K 169 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 61 0 in_multi 99 7K 7K 78643K 154 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 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 527 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 333 83K 92K 78643K 20397 0 UVM aobj 76 3K 3K 78643K 76 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 33 0 NDP 11 0K 2K 78643K 42 0 temp 74 5920K 5984K 78643K 8446 0 kqueue 12 18K 28K 78643K 207 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> 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 111 0 108 1 0 1 1 0 8 0 rtentry 112 169 0 58 4 0 4 4 0 8 0 unpcb 144 1007 0 994 13 10 3 8 0 8 2 syncache 304 29 0 29 4 3 1 1 0 8 1 tcpqe 32 481 0 481 5 5 0 2 0 8 0 tcpcb 808 806 0 794 24 11 13 13 0 8 11 arp 120 28 0 10 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 11 0 9 1 0 1 1 0 8 0 inpcb 368 1345 0 1329 22 14 8 11 0 8 6 nd6 136 42 0 17 1 0 1 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 682 0 224 29 0 29 29 0 8 0 art_table 32 683 0 224 4 0 4 4 0 8 0 art_node 16 168 0 67 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 4 1 0 1 1 0 8 0 semupl 112 10 0 10 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 73 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3853 0 2406 91 0 91 91 0 8 0 ffsino 272 3853 0 2406 97 0 97 97 0 8 0 nchpl 144 6579 0 4928 63 0 63 63 0 8 0 uvmvnodes 80 4031 0 0 83 0 83 83 0 8 0 vnodes 216 4031 0 0 224 0 224 224 0 8 0 namei 1024 22505 0 22505 3 2 1 2 0 8 1 percpumem 16 48 0 5 1 0 1 1 0 8 0 kstatmem 264 32 0 10 2 0 2 2 0 8 0 scxspl 216 24226 0 24226 13 10 3 8 1 8 3 plimitpl 152 186 0 163 3 2 1 2 0 8 0 sigapl 424 2147 0 2096 7 0 7 7 0 8 0 futexpl 64 15325 0 15325 1 0 1 1 0 8 1 knotepl 120 215 0 0 6 0 6 6 0 8 0 kqueuepl 216 582 0 574 13 8 5 5 0 8 4 pipepl 320 632 0 604 12 6 6 8 0 8 3 fdescpl 496 2129 0 2097 7 2 5 6 0 8 0 filepl 152 13142 0 12908 29 14 15 19 0 8 5 lockfpl 104 234 0 232 1 0 1 1 0 8 0 lockfspl 48 69 0 67 1 0 1 1 0 8 0 sessionpl 144 28 0 12 1 0 1 1 0 8 0 pgrppl 48 35 0 19 1 0 1 1 0 8 0 ucredpl 104 909 0 891 1 0 1 1 0 8 0 zombiepl 144 2099 0 2096 1 0 1 1 0 8 0 processpl 1072 2147 0 2096 5 1 4 5 0 8 0 procpl 680 5245 0 5178 10 2 8 8 0 8 1 sosppl 168 44 0 44 1 0 1 1 0 8 1 sockpl 488 2532 0 2500 79 66 13 32 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 308 0 0 38 0 38 38 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 313 0 0 20 0 20 20 0 8 0 bufpl 288 7150 0 824 452 0 452 452 0 8 0 anonpl 24 351558 0 341043 119 30 89 97 0 186 13 amapchunkpl 152 65748 0 64930 57 18 39 51 0 158 2 amappl16 200 7695 0 7428 29 2 27 27 0 8 12 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 161 0 146 2 1 1 2 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 2825 0 2791 2 0 2 2 0 8 0 amappl11 160 54 0 43 1 0 1 1 0 8 0 amappl10 152 59 0 44 1 0 1 1 0 8 0 amappl9 144 226 0 224 1 0 1 1 0 8 0 amappl8 136 255 0 190 3 0 3 3 0 8 0 amappl7 128 104 0 91 2 0 2 2 0 8 0 amappl6 120 269 0 247 2 1 1 2 0 8 0 amappl5 112 269 0 260 1 0 1 1 0 8 0 amappl4 104 591 0 554 3 1 2 3 0 8 0 amappl3 96 13136 0 13057 5 2 3 4 0 8 0 amappl2 88 2409 0 2337 3 1 2 3 0 8 0 amappl1 80 15883 0 15360 22 9 13 22 0 8 0 amappl 88 19637 0 19411 7 0 7 7 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 75 0 0 2 0 2 2 0 8 0 uaddrrnd 24 2129 0 2097 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2129 0 2097 1 0 1 1 0 8 0 vmmpekpl 168 22242 0 22181 4 0 4 4 0 8 0 vmmpepl 168 145571 0 143391 137 21 116 123 0 357 12 vmsppl 464 2128 0 2097 7 2 5 6 0 8 0 rwobjpl 56 45776 0 40405 81 2 79 79 0 8 0 pdppl 4096 4266 0 4194 158 76 82 94 0 8 10 pvpl 32 862717 0 846339 354 82 272 353 0 265 123 pmappl 248 2128 0 2097 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 963 0 107 25 0 25 25 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace witness_checkorder(fffffd806f10b010,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f10b000) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000212242a8,fffffd806f10b000,fffffd806f10b088,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212242a8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212242a8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212242a8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212242a8,ffff80002e419770,ffff80002e4197c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e419840) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e419840) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7defb6d3d100, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d58ff0) 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(ffffffff82d48c68) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d48c68) at __mp_lock+0x122 sys/kern/kern_lock.c:147 doppoll(ffff8000211b3a98,d18943833f0,4,0,ffff800021201be4,ffff800021201cb0) at doppoll+0x159 sys/kern/sys_generic.c:950 sys_ppoll(ffff8000211b3a98,ffff800021201c60,ffff800021201cb0) at sys_ppoll+0x137 sys/kern/sys_generic.c:916 syscall(ffff800021201d30) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021201d30) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77dafd199b40, count: -8