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(fffffd806f20f7a8,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f20f798) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800021262818,fffffd806f20f798,fffffd806f20f820,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021262818,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021262818) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021262818,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021262818,ffff8000299c52d0,ffff8000299c5320) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000299c53a0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000299c53a0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d999cf0a660, count: -9 ddb{0}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff8000299c5070 rbx 0xe rdx 0 rcx 0xffff800021262818 rax 0xffffffff82bc7ff0 cpu_info_full_primary+0x1ff0 r8 0x1 r9 0 r10 0x3d4a42ae3c5c81a2 r11 0x549316b311ee4299 r12 0 r13 0xfffffd806f20f7a8 r14 0x1004808610008086 r15 0xffff800021262818 rip 0xffffffff81591c4c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000299c4fc0 ss 0x10 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{0}> show proc PROC (syz-executor.6) pid=32375 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800026f5e800,0xffff80002474f000 process=0xffff800026f625c8 user=0xffff8000299c0000, vmspace=0xfffffd807eff91d0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51206 242754 10787 32767 2 0x10 syz-executor.5 23502 94397 71783 32767 2 0x10 syz-executor.7 39436 420281 63994 32767 2 0x10 syz-executor.2 39436 207889 63994 32767 3 0x4000090 fsleep syz-executor.2 15713 254038 2308 32767 2 0x10 syz-executor.0 2308 7313 37222 0 3 0x82 wait syz-executor.0 83203 462435 51702 32767 2 0x10 syz-executor.3 51702 381806 37222 0 3 0x82 wait syz-executor.3 10787 146226 23195 32767 3 0x90 nanoslp syz-executor.5 23195 391372 37222 0 3 0x82 wait syz-executor.5 65905 391906 0 0 3 0x14200 bored sosplice 71783 396666 30671 32767 3 0x90 nanoslp syz-executor.7 30671 32489 37222 0 3 0x82 wait syz-executor.7 35851 151947 7513 32767 3 0x90 nanoslp syz-executor.6 55573 46145 85951 32767 2 0x10 syz-executor.1 7513 361784 37222 0 3 0x82 wait syz-executor.6 97597 304155 87228 32767 2 0x10 syz-executor.4 85951 390850 37222 0 3 0x82 wait syz-executor.1 63994 282131 84116 32767 2 0x10 syz-executor.2 87228 389782 37222 0 3 0x82 wait syz-executor.4 84116 471971 37222 0 3 0x82 wait syz-executor.2 37222 436477 82673 0 3 0x2000082 wait syz-fuzzer 37222 38321 82673 0 3 0x6000082 nanoslp syz-fuzzer 37222 414263 82673 0 3 0x6000082 wait syz-fuzzer 37222 293038 82673 0 3 0x6000082 thrsleep syz-fuzzer 37222 462703 82673 0 3 0x6000082 wait syz-fuzzer 37222 490866 82673 0 3 0x6000082 thrsleep syz-fuzzer 37222 213145 82673 0 3 0x6000082 thrsleep syz-fuzzer 37222 23364 82673 0 3 0x6000082 wait syz-fuzzer 37222 96897 82673 0 2 0x6000002 syz-fuzzer 37222 157815 82673 0 3 0x6000082 wait syz-fuzzer 37222 522467 82673 0 3 0x6000082 thrsleep syz-fuzzer 37222 222821 82673 0 3 0x6000082 wait syz-fuzzer 37222 514219 82673 0 3 0x6000082 wait syz-fuzzer 37222 306947 82673 0 3 0x6000082 wait syz-fuzzer 37222 136049 82673 0 2 0x6000002 syz-fuzzer 37222 161245 82673 0 3 0x6000082 thrsleep syz-fuzzer 82673 327956 95382 0 3 0x10008a sigsusp ksh 95382 160549 89928 0 7 0x12 sshd 11686 159219 1 0 3 0x100083 ttyin getty 89928 247142 1 0 3 0x88 kqread sshd 93984 491454 5369 73 3 0x1100090 kqread syslogd 5369 26988 1 0 3 0x100082 netio syslogd 49107 240930 1 0 3 0x100080 kqread resolvd 20804 153117 16103 77 3 0x100092 kqread dhcpleased 7689 292098 16103 77 3 0x100092 kqread dhcpleased 16103 341909 1 0 3 0x80 kqread dhcpleased 51754 144832 0 0 3 0x14200 bored smr 22719 210819 0 0 2 0x14200 zerothread 91648 396659 0 0 3 0x14200 aiodoned aiodoned 69062 506846 0 0 2 0x14600 update 500 158607 0 0 3 0x14200 cleaner cleaner 20900 226800 0 0 2 0x14200 reaper 46831 224439 0 0 3 0x14200 pgdaemon pagedaemon 64079 10588 0 0 3 0x14200 bored viomb 75465 102940 0 0 3 0x40014200 acpi0 acpi0 71624 14998 0 0 3 0x40014200 idle1 57971 395590 0 0 3 0x14200 bored softnet3 49979 217390 0 0 3 0x14200 bored softnet2 58610 19591 0 0 3 0x14200 bored softnet1 51342 510863 0 0 3 0x14200 bored softnet0 38016 338795 0 0 3 0x14200 bored systqmp 55836 358167 0 0 3 0x14200 bored systq 15543 280441 0 0 3 0x40014200 bored softclock 56913 53323 0 0 3 0x40014200 idle0 1 207029 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 10192 6409K 6420K 78643K 11285 0 pcb 13 10K 12K 78643K 15 0 rtable 238 6K 7K 78643K 686 0 pf 29 8K 8K 78643K 39 0 ifaddr 44 15K 15K 78643K 68 0 ifgroup 50 2K 2K 78643K 70 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 35K 78643K 70 0 ioctlops 0 0K 2K 78643K 122 0 iov 0 0K 16K 78643K 281 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 3492 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 59 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 775 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 22 81K 117K 78643K 3998 0 sigio 0 0K 0K 78643K 53 0 proc 56 78K 103K 78643K 805 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 92 0 in_multi 99 7K 7K 78643K 183 0 ether_multi 1 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 91 413K 413K 78643K 91 0 exec 0 0K 1K 78643K 769 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 358 89K 104K 78643K 41638 0 UVM aobj 131 6K 6K 78643K 148 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 68 0 NDP 11 0K 2K 78643K 42 0 temp 74 5920K 5984K 78643K 13181 0 kqueue 12 18K 34K 78643K 399 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 320 0 317 7 6 1 5 0 8 0 rtentry 112 173 0 61 4 0 4 4 0 8 0 unpcb 144 3741 0 3728 36 32 4 6 0 8 3 syncache 304 38 0 38 11 10 1 1 0 8 1 tcpqe 32 148 0 148 5 5 0 1 0 8 0 tcpcb 808 1320 0 1304 42 33 9 9 0 8 5 arp 120 30 0 11 1 0 1 1 0 8 0 ipq 40 11 0 9 5 4 1 1 0 8 0 ipqe 40 108 0 106 5 4 1 1 0 8 0 inpcb 368 2512 0 2487 61 52 9 11 0 8 4 nd6 136 44 0 19 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 708 0 249 30 1 29 30 0 8 0 art_table 32 709 0 249 4 0 4 4 0 8 0 art_node 16 172 0 70 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 737 0 727 1 0 1 1 0 8 0 shmpl 112 145 0 17 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7982 0 6538 91 0 91 91 0 8 0 ffsino 272 7982 0 6538 97 0 97 97 0 8 0 nchpl 144 13229 0 11585 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 48008 0 48008 4 3 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 37130 0 37130 11 10 1 8 1 8 1 plimitpl 152 702 0 679 11 9 2 2 0 8 1 sigapl 424 4286 0 4234 7 0 7 7 0 8 0 futexpl 64 32800 0 32799 1 0 1 1 0 8 0 knotepl 120 562 0 0 17 1 16 17 0 8 0 kqueuepl 216 763 0 755 13 8 5 5 0 8 4 pipepl 320 1000 0 972 39 33 6 8 0 8 3 fdescpl 496 4268 0 4235 7 2 5 6 0 8 0 filepl 152 33702 0 33467 81 63 18 19 0 8 7 lockfpl 104 898 0 896 2 1 1 2 0 8 0 lockfspl 48 205 0 203 1 0 1 1 0 8 0 sessionpl 144 28 0 12 1 0 1 1 0 8 0 pgrppl 48 51 0 35 1 0 1 1 0 8 0 ucredpl 104 11115 0 11097 1 0 1 1 0 8 0 zombiepl 144 4236 0 4234 1 0 1 1 0 8 0 processpl 1072 4286 0 4234 4 0 4 4 0 8 0 procpl 680 11469 0 11400 25 17 8 8 0 8 1 sosppl 168 59 0 59 9 9 0 1 0 8 0 sockpl 488 7943 0 7906 150 137 13 21 0 8 7 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 19 0 0 3 0 3 3 0 8 0 mcl12k 12288 15 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 34 0 0 4 1 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 319 0 0 32 8 24 32 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 1517 0 0 75 0 75 75 0 8 0 bufpl 288 9162 0 2836 452 0 452 452 0 8 0 anonpl 24 616327 0 605120 171 81 90 98 0 186 0 amapchunkpl 152 133863 0 133001 88 47 41 49 0 158 2 amappl16 200 16864 0 16607 136 121 15 27 0 8 1 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 172 0 159 2 1 1 2 0 8 0 amappl13 176 20 0 20 2 2 0 1 0 8 0 amappl12 168 4977 0 4946 2 0 2 2 0 8 0 amappl11 160 68 0 56 1 0 1 1 0 8 0 amappl10 152 53 0 41 1 0 1 1 0 8 0 amappl9 144 234 0 233 1 0 1 1 0 8 0 amappl8 136 323 0 234 4 0 4 4 0 8 0 amappl7 128 103 0 88 2 0 2 2 0 8 0 amappl6 120 299 0 278 2 1 1 2 0 8 0 amappl5 112 301 0 292 1 0 1 1 0 8 0 amappl4 104 666 0 625 2 0 2 2 0 8 0 amappl3 96 26163 0 26084 3 0 3 3 0 8 0 amappl2 88 4710 0 4637 3 1 2 3 0 8 0 amappl1 80 23504 0 22982 23 10 13 22 0 8 0 amappl 88 40950 0 40714 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 147 0 17 3 0 3 3 0 8 0 uaddrrnd 24 4269 0 4236 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4269 0 4236 1 0 1 1 0 8 0 vmmpekpl 168 39305 0 39245 3 0 3 3 0 8 0 vmmpepl 168 268790 0 266557 197 88 109 118 0 357 4 vmsppl 464 4268 0 4236 7 2 5 6 0 8 0 rwobjpl 56 82199 0 74865 112 5 107 108 0 8 0 pdppl 4096 8546 0 8472 306 224 82 92 0 8 8 pvpl 32 1491327 0 1474217 437 281 156 349 0 265 0 pmappl 248 4268 0 4236 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1235 0 341 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace witness_checkorder(fffffd806f20f7a8,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f20f798) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800021262818,fffffd806f20f798,fffffd806f20f820,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021262818,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021262818) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021262818,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021262818,ffff8000299c52d0,ffff8000299c5320) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000299c53a0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000299c53a0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d999cf0a660, 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(ffffffff82d6d010) at __mp_lock+0x120 __mp_lock_spin sys/kern/kern_lock.c:117 [inline] __mp_lock(ffffffff82d6d010) at __mp_lock+0x120 sys/kern/kern_lock.c:147 doppoll(ffff8000211b2800,56c81bf5e70,4,0,ffff800021231374,ffff800021231440) at doppoll+0x159 sys/kern/sys_generic.c:950 sys_ppoll(ffff8000211b2800,ffff8000212313f0,ffff800021231440) at sys_ppoll+0x137 sys/kern/sys_generic.c:916 syscall(ffff8000212314c0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212314c0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6ffce3dcaaf0, count: -8