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(fffffd806f19d0e8,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f19d0d8) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800021225d38,fffffd806f19d0d8,fffffd806f19d160,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021225d38,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021225d38) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021225d38,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021225d38,ffff80002e48dd60,ffff80002e48ddb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e48de30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e48de30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75dd44f7d680, count: -9 ddb{0}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff80002e48db00 rbx 0xe rdx 0 rcx 0xffff800021225d38 rax 0xffffffff82bc7ff0 cpu_info_full_primary+0x1ff0 r8 0x1 r9 0 r10 0x8bb1c81d9438a5e4 r11 0x2ee28954fc71da29 r12 0 r13 0xfffffd806f19d0e8 r14 0x1004808610008086 r15 0xffff800021225d38 rip 0xffffffff81591c4c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002e48da50 ss 0 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{0}> show proc PROC (syz-executor.6) pid=96615 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800021225540,0xffff800021224d58 process=0xffff8000ffff8c98 user=0xffff80002e488000, vmspace=0xfffffd8066129768 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45625 193488 42856 32767 2 0x10 syz-executor.7 45625 189721 42856 32767 3 0x4000090 fsleep syz-executor.7 39556 265182 67833 32767 2 0x10 syz-executor.3 39556 200020 67833 32767 3 0x4000090 fsleep syz-executor.3 39556 139153 67833 32767 3 0x4000090 pipewr syz-executor.3 79661 382258 76579 32767 2 0x10 syz-executor.0 79661 141658 76579 32767 3 0x4000090 kqpoll syz-executor.0 86496 10886 77742 32767 2 0x10 syz-executor.5 86496 194598 77742 32767 3 0x4000090 fsleep syz-executor.5 86496 157469 77742 32767 3 0x4000090 fsleep syz-executor.5 2919 211772 65028 32767 3 0x90 nanoslp syz-executor.1 2919 81692 65028 32767 3 0x4000090 netio syz-executor.1 2919 491402 65028 32767 3 0x4000090 fsleep syz-executor.1 79812 76103 72705 32767 3 0x90 nanoslp syz-executor.4 79812 38405 72705 32767 3 0x4000090 netio syz-executor.4 79812 516333 72705 32767 3 0x4000090 netio syz-executor.4 79812 391497 72705 32767 3 0x4000090 netio syz-executor.4 79812 400759 72705 32767 3 0x4000090 fsleep syz-executor.4 67833 232518 34108 32767 3 0x90 nanoslp syz-executor.3 34108 351757 83605 0 3 0x82 wait syz-executor.3 24597 488727 47827 32767 3 0x90 nanoslp syz-executor.6 47827 220728 83605 0 3 0x82 wait syz-executor.6 77742 416370 15921 32767 3 0x90 nanoslp syz-executor.5 15921 285881 83605 0 3 0x82 wait syz-executor.5 72705 59458 15663 32767 3 0x90 nanoslp syz-executor.4 15663 174527 83605 0 3 0x82 wait syz-executor.4 65028 333855 6249 32767 3 0x90 nanoslp syz-executor.1 6249 166828 83605 0 3 0x82 wait syz-executor.1 76579 72791 73033 32767 3 0x90 nanoslp syz-executor.0 73033 130078 83605 0 3 0x82 wait syz-executor.0 13669 197648 20084 32767 7 0x10 syz-executor.2 20084 412692 83605 0 3 0x82 wait syz-executor.2 42856 146021 94433 32767 3 0x90 nanoslp syz-executor.7 94433 30830 83605 0 3 0x82 wait syz-executor.7 26441 174278 0 0 3 0x14200 bored sosplice 83605 83064 98576 0 3 0x2000082 wait syz-fuzzer 83605 406258 98576 0 3 0x6000082 nanoslp syz-fuzzer 83605 243155 98576 0 3 0x6000082 wait syz-fuzzer 83605 495617 98576 0 3 0x6000082 wait syz-fuzzer 83605 147517 98576 0 3 0x6000082 thrsleep syz-fuzzer 83605 30948 98576 0 3 0x6000082 wait syz-fuzzer 83605 111404 98576 0 3 0x6000082 thrsleep syz-fuzzer 83605 62116 98576 0 3 0x6000082 wait syz-fuzzer 83605 1393 98576 0 3 0x6000082 thrsleep syz-fuzzer 83605 122920 98576 0 3 0x6000082 thrsleep syz-fuzzer 83605 78154 98576 0 3 0x6000082 thrsleep syz-fuzzer 83605 143009 98576 0 3 0x6000082 wait syz-fuzzer 83605 393015 98576 0 3 0x6000082 thrsleep syz-fuzzer 83605 404739 98576 0 3 0x6000082 wait syz-fuzzer 83605 307150 98576 0 3 0x6000082 wait syz-fuzzer 83605 231529 98576 0 3 0x6000082 kqread syz-fuzzer 98576 514928 95173 0 3 0x10008a sigsusp ksh 95173 366348 67233 0 3 0x9a kqread sshd 30215 6049 1 0 3 0x100083 ttyin getty 67233 268368 1 0 3 0x88 kqread sshd 56573 118854 28843 73 3 0x1100090 kqread syslogd 28843 238117 1 0 3 0x100082 netio syslogd 77250 51341 1 0 3 0x100080 kqread resolvd 50941 194097 10470 77 3 0x100092 kqread dhcpleased 21774 413780 10470 77 3 0x100092 kqread dhcpleased 10470 233311 1 0 3 0x80 kqread dhcpleased 31451 480229 0 0 3 0x14200 bored smr 49440 88717 0 0 2 0x14200 zerothread 94527 77903 0 0 3 0x14200 aiodoned aiodoned 51754 259366 0 0 3 0x14200 syncer update 13990 264499 0 0 3 0x14200 cleaner cleaner 69275 508447 0 0 2 0x14200 reaper 6040 60671 0 0 3 0x14200 pgdaemon pagedaemon 6538 298923 0 0 3 0x14200 bored viomb 80092 138280 0 0 3 0x40014200 acpi0 acpi0 43983 72007 0 0 3 0x40014200 idle1 5433 361621 0 0 3 0x14200 bored softnet3 24776 287026 0 0 3 0x14200 bored softnet2 14431 431159 0 0 3 0x14200 bored softnet1 71008 381459 0 0 2 0x14200 softnet0 72864 214854 0 0 3 0x14200 bored systqmp 31911 256884 0 0 3 0x14200 bored systq 88364 309962 0 0 3 0x40014200 bored softclock 12399 210107 0 0 3 0x40014200 idle0 1 243013 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 10222 6413K 6420K 78643K 11440 0 pcb 13 12K 14K 78643K 17 0 rtable 238 6K 7K 78643K 2041 0 pf 29 8K 8K 78643K 121 0 ifaddr 44 15K 16K 78643K 234 0 ifgroup 50 2K 2K 78643K 234 0 sysctl 2 0K 2K 78643K 5 0 counters 60 35K 35K 78643K 152 0 ioctlops 0 0K 2K 78643K 117 0 iov 0 0K 24K 78643K 1360 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 3831 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 248 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 25 93K 109K 78643K 14976 0 sigio 0 0K 0K 78643K 542 0 proc 56 78K 115K 78643K 2678 0 subproc 104 6K 6K 78643K 702 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 801 0 in_multi 99 7K 7K 78643K 707 0 ether_multi 1 0K 0K 78643K 10 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 271 1208K 1208K 78643K 271 0 exec 0 0K 1K 78643K 2491 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 513 92K 110K 78643K 155759 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 401 0 NDP 11 0K 2K 78643K 165 0 temp 75 5920K 6048K 78643K 41716 0 kqueue 13 20K 32K 78643K 1075 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 696 0 693 9 8 1 5 0 8 0 rtentry 112 631 0 519 4 0 4 4 0 8 0 unpcb 144 51671 0 51642 276 274 2 19 0 8 0 syncache 304 185 0 185 36 35 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 520 0 520 25 25 0 1 0 8 0 tcpcb 808 4817 0 4788 177 173 4 17 0 8 0 arp 120 112 0 94 1 0 1 1 0 8 0 ipq 40 53 0 53 13 13 0 1 0 8 0 ipqe 40 349 0 349 13 13 0 1 0 8 0 inpcb 368 12330 0 12293 250 246 4 16 0 8 0 nd6 136 174 0 148 1 0 1 1 0 8 0 kcovpl 48 54 0 46 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2534 0 2072 31 2 29 30 0 8 0 art_table 32 2535 0 2072 4 0 4 4 0 8 0 art_node 16 630 0 528 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 4 1 0 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 19827 0 18365 92 0 92 92 0 8 0 ffsino 272 19827 0 18365 98 0 98 98 0 8 0 nchpl 144 39123 0 37475 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 122646 0 122646 6 5 1 2 0 8 1 percpumem 16 89 0 46 1 0 1 1 0 8 0 kstatmem 264 114 0 92 2 0 2 2 0 8 0 scxspl 216 123455 0 123455 36 34 2 8 1 8 2 plimitpl 152 2199 0 2176 21 20 1 2 0 8 0 sigapl 424 15165 0 15111 7 0 7 7 0 8 0 futexpl 64 122706 0 122700 10 9 1 1 0 8 0 knotepl 120 868 0 0 11 0 11 11 0 8 0 kqueuepl 216 2935 0 2925 49 48 1 5 0 8 0 pipepl 320 7440 0 7409 174 171 3 13 0 8 0 fdescpl 496 15147 0 15111 7 2 5 6 0 8 0 filepl 152 128867 0 128606 313 300 13 28 0 8 0 lockfpl 104 2461 0 2459 2 1 1 2 0 8 0 lockfspl 48 739 0 737 1 0 1 1 0 8 0 sessionpl 144 69 0 53 1 0 1 1 0 8 0 pgrppl 48 630 0 614 1 0 1 1 0 8 0 ucredpl 104 12216 0 12198 1 0 1 1 0 8 0 zombiepl 144 15112 0 15111 1 0 1 1 0 8 0 processpl 1072 15165 0 15111 4 0 4 4 0 8 0 procpl 680 46197 0 46115 34 26 8 9 0 8 0 sosppl 168 268 0 265 20 19 1 1 0 8 0 sockpl 488 65296 0 65227 1746 1736 10 67 0 8 0 mcl64k 65536 74 0 0 3 0 3 3 0 8 0 mcl16k 16384 93 0 0 6 4 2 3 0 8 0 mcl12k 12288 42 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 60 0 0 5 2 3 3 0 8 0 mcl4k 4096 133 0 0 6 2 4 5 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 580 0 0 32 13 19 32 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 1976 0 0 64 0 64 64 0 8 0 bufpl 288 26485 0 20160 453 1 452 453 0 8 0 anonpl 24 1737145 0 1725303 153 54 99 103 0 186 0 amapchunkpl 152 491215 0 490243 175 135 40 50 0 158 0 amappl16 200 37672 0 37399 234 215 19 32 0 8 0 amappl15 192 9 0 9 2 2 0 1 0 8 0 amappl14 184 295 0 277 3 2 1 2 0 8 0 amappl13 176 23 0 23 6 6 0 1 0 8 0 amappl12 168 16496 0 16450 3 0 3 3 0 8 0 amappl11 160 78 0 67 1 0 1 1 0 8 0 amappl10 152 92 0 77 1 0 1 1 0 8 0 amappl9 144 2327 0 2326 1 0 1 1 0 8 0 amappl8 136 1951 0 1682 12 1 11 11 0 8 0 amappl7 128 316 0 298 2 0 2 2 0 8 0 amappl6 120 911 0 880 2 0 2 2 0 8 0 amappl5 112 1663 0 1654 1 0 1 1 0 8 0 amappl4 104 1278 0 1227 2 0 2 2 0 8 0 amappl3 96 95287 0 95177 33 29 4 4 0 8 0 amappl2 88 16217 0 16121 7 4 3 3 0 8 0 amappl1 80 62828 0 62297 22 9 13 22 0 8 0 amappl 88 154114 0 153831 9 1 8 8 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 15147 0 15111 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 15147 0 15111 1 0 1 1 0 8 0 vmmpekpl 168 150587 0 150524 4 0 4 4 0 8 0 vmmpepl 168 934901 0 932226 374 239 135 151 0 357 0 vmsppl 464 15146 0 15111 6 1 5 5 0 8 0 rwobjpl 56 246790 0 239158 127 15 112 112 0 8 0 pdppl 4096 30302 0 30222 740 658 82 88 0 8 2 pvpl 32 4744127 0 4725350 517 335 182 336 0 265 0 pmappl 248 15146 0 15111 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2004 0 1134 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace witness_checkorder(fffffd806f19d0e8,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f19d0d8) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800021225d38,fffffd806f19d0d8,fffffd806f19d160,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021225d38,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021225d38) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021225d38,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021225d38,ffff80002e48dd60,ffff80002e48ddb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e48de30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e48de30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75dd44f7d680, 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+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d6d010) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff800024afd480) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800024afd480) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x740ee6c1c080, count: -6