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(fffffd806f21d448,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f21d438) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000212a6010,fffffd806f21d438,fffffd806f21d4c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212a6010,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212a6010) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212a6010,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212a6010,ffff80002e43d1b0,ffff80002e43d200) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e43d280) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e43d280) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7aecdbff7a30, count: -9 ddb{0}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff80002e43cf50 rbx 0xe rdx 0 rcx 0xffff8000212a6010 rax 0xffffffff82c1fff0 cpu_info_full_primary+0x1ff0 r8 0x1 r9 0 r10 0xe225df69a0428f52 r11 0x7f98837b73a75c32 r12 0 r13 0xfffffd806f21d448 r14 0x3ff5555555555555 r15 0xffff8000212a6010 rip 0xffffffff8146926c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002e43cea0 ss 0x10 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{0}> show proc PROC (syz-executor.3) pid=453236 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=63, nice=20 forw=0xffffffffffffffff, list=0xffff8000212257e8,0xffff8000212a6818 process=0xffff8000ffff9d58 user=0xffff80002e438000, vmspace=0xfffffd807eff9910 estcpu=27, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 85641 170173 70653 32767 2 0x10 syz-executor.7 85641 233051 70653 32767 3 0x4000090 fsleep syz-executor.7 46671 77488 33560 32767 2 0x10 syz-executor.1 46671 385900 33560 32767 2 0x4000010 syz-executor.1 69077 440730 61800 32767 2 0x10 syz-executor.6 69077 87751 61800 32767 3 0x4000090 ttyin syz-executor.6 69077 56123 61800 32767 3 0x4000090 kqread syz-executor.6 58051 272082 58527 32767 2 0x10 syz-executor.5 58051 303467 58527 32767 3 0x4000090 piperd syz-executor.5 58051 151683 58527 32767 2 0x4000010 syz-executor.5 58051 72017 58527 32767 2 0x4000010 syz-executor.5 1928 146348 53945 32767 2 0x10 syz-executor.2 53945 481120 97412 0 3 0x82 wait syz-executor.2 28763 275296 25766 32767 2 0x10 syz-executor.0 25766 521162 97412 0 3 0x82 wait syz-executor.0 61800 365651 94732 32767 3 0x90 nanoslp syz-executor.6 94732 432722 97412 0 3 0x82 wait syz-executor.6 71394 337643 11389 32767 2 0x10 syz-executor.4 11389 19571 97412 0 3 0x82 wait syz-executor.4 97276 291363 97773 32767 3 0x90 nanoslp syz-executor.3 97773 251265 97412 0 3 0x82 wait syz-executor.3 58527 168290 74107 32767 2 0x10 syz-executor.5 74107 52767 97412 0 3 0x82 wait syz-executor.5 35379 332180 0 0 3 0x14200 bored sosplice 70653 123233 68690 32767 3 0x90 nanoslp syz-executor.7 68690 19511 97412 0 3 0x82 wait syz-executor.7 33560 73763 54455 32767 2 0x10 syz-executor.1 54455 523507 97412 0 3 0x82 wait syz-executor.1 97412 417597 43288 0 3 0x2000082 wait syz-fuzzer 97412 66976 43288 0 3 0x6000082 thrsleep syz-fuzzer 97412 150003 43288 0 3 0x6000082 wait syz-fuzzer 97412 379402 43288 0 3 0x6000082 thrsleep syz-fuzzer 97412 131737 43288 0 3 0x6000082 thrsleep syz-fuzzer 97412 328944 43288 0 3 0x6000082 thrsleep syz-fuzzer 97412 429578 43288 0 3 0x6000082 wait syz-fuzzer 97412 518288 43288 0 3 0x6000082 kqread syz-fuzzer 97412 290547 43288 0 3 0x6000082 wait syz-fuzzer 97412 367355 43288 0 3 0x6000082 wait syz-fuzzer 97412 115962 43288 0 3 0x6000082 wait syz-fuzzer 97412 356417 43288 0 3 0x6000082 thrsleep syz-fuzzer 97412 13393 43288 0 3 0x6000082 wait syz-fuzzer 97412 504734 43288 0 3 0x6000082 wait syz-fuzzer 97412 396485 43288 0 3 0x6000082 thrsleep syz-fuzzer 97412 414572 43288 0 3 0x6000082 thrsleep syz-fuzzer 43288 518470 27362 0 3 0x10008a sigsusp ksh 27362 287105 22523 0 3 0x9a kqread sshd 62078 382975 1 0 3 0x100083 ttyin getty 22523 511432 1 0 3 0x88 kqread sshd 4954 321480 68618 73 3 0x1100090 kqread syslogd 68618 359995 1 0 3 0x100082 netio syslogd 32898 10521 1 0 3 0x100080 kqread resolvd 44014 523826 1180 77 3 0x100092 kqread dhcpleased 74403 103399 1180 77 3 0x100092 kqread dhcpleased 1180 69199 1 0 3 0x80 kqread dhcpleased 58362 385889 0 0 3 0x14200 bored smr 20100 70900 0 0 2 0x14200 zerothread 38324 394951 0 0 3 0x14200 aiodoned aiodoned 96666 495043 0 0 3 0x14200 syncer update 12249 478052 0 0 3 0x14200 cleaner cleaner 20298 237070 0 0 7 0x14200 reaper 30957 146884 0 0 3 0x14200 pgdaemon pagedaemon 17161 483281 0 0 3 0x14200 bored viomb 97232 387762 0 0 3 0x40014200 acpi0 acpi0 36841 215942 0 0 3 0x40014200 idle1 37233 467285 0 0 3 0x14200 bored softnet3 12216 269187 0 0 3 0x14200 bored softnet2 33830 80037 0 0 3 0x14200 bored softnet1 14593 375944 0 0 3 0x14200 bored softnet0 40856 51262 0 0 3 0x14200 bored systqmp 3540 17804 0 0 3 0x14200 bored systq 96398 296303 0 0 3 0x40014200 bored softclock 37733 192831 0 0 3 0x40014200 idle0 1 272167 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 10218 6413K 6420K 78643K 11334 0 pcb 13 12K 14K 78643K 17 0 rtable 242 6K 7K 78643K 967 0 pf 29 8K 8K 78643K 53 0 ifaddr 44 15K 15K 78643K 96 0 ifgroup 50 2K 2K 78643K 98 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 35K 78643K 84 0 ioctlops 0 0K 2K 78643K 51 0 iov 0 0K 16K 78643K 298 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 4314 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 49 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 28 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 109K 78643K 5719 0 sigio 0 0K 0K 78643K 92 0 proc 56 78K 115K 78643K 1104 0 subproc 104 6K 6K 78643K 260 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 291 0 in_multi 99 7K 7K 78643K 280 0 ether_multi 1 0K 0K 78643K 5 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 247 1102K 1102K 78643K 247 0 exec 0 0K 1K 78643K 1050 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 415 94K 105K 78643K 58572 0 UVM aobj 131 4K 4K 78643K 152 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 103 0 NDP 11 0K 2K 78643K 63 0 temp 74 5920K 6000K 78643K 17897 0 kqueue 12 18K 26K 78643K 436 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 366 0 363 7 6 1 3 0 8 0 rtentry 112 256 0 142 4 0 4 4 0 8 0 unpcb 144 4817 0 4802 79 75 4 11 0 8 3 syncache 304 53 0 53 15 14 1 1 0 8 1 tcpqe 32 194 0 194 11 11 0 1 0 8 0 tcpcb 808 1738 0 1731 83 82 1 11 0 8 0 arp 120 43 0 25 1 0 1 1 0 8 0 ipq 40 8 0 6 4 3 1 1 0 8 0 ipqe 40 22 0 20 4 3 1 1 0 8 0 inpcb 368 3008 0 2998 106 105 1 13 0 8 0 nd6 136 72 0 44 3 1 2 2 0 8 0 kcovpl 48 20 0 12 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1052 0 574 32 2 30 31 0 8 0 art_table 32 1053 0 574 4 0 4 4 0 8 0 art_node 16 255 0 151 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 149 0 21 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 10670 0 9222 91 0 91 91 0 8 0 ffsino 272 10670 0 9222 97 0 97 97 0 8 0 nchpl 144 19914 0 18271 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 67596 0 67596 3 2 1 2 0 8 1 percpumem 16 55 0 12 1 0 1 1 0 8 0 kstatmem 264 46 0 24 2 0 2 2 0 8 0 scxspl 216 46260 0 46260 15 14 1 8 1 8 1 plimitpl 152 815 0 792 8 7 1 2 0 8 0 sigapl 424 5989 0 5937 7 0 7 7 0 8 0 futexpl 64 55914 0 55913 1 0 1 1 0 8 0 knotepl 120 747 0 0 18 1 17 17 0 8 0 kqueuepl 216 1153 0 1144 26 25 1 5 0 8 0 pipepl 320 986 0 957 40 37 3 8 0 8 0 fdescpl 496 5971 0 5937 7 2 5 6 0 8 0 filepl 152 40969 0 40723 118 105 13 24 0 8 3 lockfpl 104 704 0 702 1 0 1 1 0 8 0 lockfspl 48 201 0 199 1 0 1 1 0 8 0 sessionpl 144 35 0 19 1 0 1 1 0 8 0 pgrppl 48 57 0 41 1 0 1 1 0 8 0 ucredpl 104 13641 0 13623 1 0 1 1 0 8 0 zombiepl 144 5938 0 5937 1 0 1 1 0 8 0 processpl 1072 5989 0 5937 4 0 4 4 0 8 0 procpl 680 16235 0 16160 27 19 8 8 0 8 1 sosppl 168 44 0 44 9 9 0 1 0 8 0 sockpl 488 8364 0 8336 319 308 11 46 0 8 7 mcl64k 65536 20 0 0 3 1 2 3 0 8 0 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 41 0 0 4 1 3 4 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 310 0 0 32 10 22 32 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 995 0 0 60 0 60 60 0 8 0 bufpl 288 11982 0 5656 453 0 453 453 0 8 0 anonpl 24 679536 0 669011 170 86 84 102 0 186 0 amapchunkpl 152 196236 0 195328 93 54 39 52 0 158 1 amappl16 200 14975 0 14682 120 103 17 29 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 186 0 170 2 1 1 2 0 8 0 amappl13 176 22 0 22 1 1 0 1 0 8 0 amappl12 168 6800 0 6762 2 0 2 2 0 8 0 amappl11 160 57 0 46 1 0 1 1 0 8 0 amappl10 152 57 0 45 1 0 1 1 0 8 0 amappl9 144 207 0 205 1 0 1 1 0 8 0 amappl8 136 424 0 309 4 0 4 4 0 8 0 amappl7 128 153 0 137 2 1 1 2 0 8 0 amappl6 120 347 0 331 2 1 1 2 0 8 0 amappl5 112 309 0 300 1 0 1 1 0 8 0 amappl4 104 735 0 696 3 1 2 3 0 8 0 amappl3 96 36383 0 36282 5 2 3 4 0 8 0 amappl2 88 6557 0 6480 3 1 2 3 0 8 0 amappl1 80 30369 0 29841 22 10 12 22 0 8 0 amappl 88 57782 0 57518 8 1 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 151 0 21 3 0 3 3 0 8 0 uaddrrnd 24 5971 0 5937 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5971 0 5937 1 0 1 1 0 8 0 vmmpekpl 168 48167 0 48103 4 0 4 4 0 8 0 vmmpepl 168 366417 0 364028 217 97 120 123 0 357 6 vmsppl 464 5970 0 5937 6 1 5 5 0 8 0 rwobjpl 56 101158 0 93728 116 8 108 109 0 8 0 pdppl 4096 11950 0 11874 376 294 82 88 0 8 6 pvpl 32 1816459 0 1799856 428 268 160 359 0 265 0 pmappl 248 5970 0 5937 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1379 0 518 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace witness_checkorder(fffffd806f21d448,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f21d438) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000212a6010,fffffd806f21d438,fffffd806f21d4c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212a6010,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212a6010) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212a6010,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212a6010,ffff80002e43d1b0,ffff80002e43d200) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e43d280) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e43d280) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7aecdbff7a30, 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(ffffffff82c97058) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c97058) at __mp_lock+0x129 sys/kern/kern_lock.c:147 reaper(ffff8000211b2ff8) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -5