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(fffffd806f329520,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f329510) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff80002120cac0,fffffd806f329510,fffffd806f329598,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff80002120cac0,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff80002120cac0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff80002120cac0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff80002120cac0,ffff8000212994b0,ffff800021299500) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021299580) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021299580) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7438dfee5360, count: -9 ddb{0}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff800021299250 rbx 0xe rdx 0 rcx 0xfffffd80037e4860 rax 0xffffffff82bfcff0 cpu_info_full_primary+0x1ff0 r8 0x1 r9 0 r10 0x7b01ef5c255d7bd6 r11 0x49470ec011e608fc r12 0 r13 0xfffffd806f329520 r14 0xfffeffff00010000 r15 0xffff80002120cac0 rip 0xffffffff81eeff1c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000212991a0 ss 0x10 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{0}> show proc PROC (syz-executor2093262167) pid=411707 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=72, nice=20 forw=0xffffffffffffffff, list=0xffff80002120d010,0xffff80002120d570 process=0xffff8000ffff6198 user=0xffff800021294000, vmspace=0xfffffd806c5a2590 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22490 171240 81226 0 2 0 syz-executor2093262167 22490 313765 81226 0 2 0x4000000 syz-executor2093262167 20233 104785 74716 0 2 0 syz-executor2093262167 20233 456304 74716 0 3 0x4000080 fsleep syz-executor2093262167 3308 279973 89987 0 3 0x80 nanoslp syz-executor2093262167 81226 281819 89987 0 3 0x80 nanoslp syz-executor2093262167 88381 491444 89987 0 3 0x80 nanoslp syz-executor2093262167 62625 365929 89987 0 3 0x80 nanoslp syz-executor2093262167 87020 446921 89987 0 3 0x80 nanoslp syz-executor2093262167 23418 257866 89987 0 3 0x80 nanoslp syz-executor2093262167 31119 381945 89987 0 3 0x80 nanoslp syz-executor2093262167 74716 298868 89987 0 3 0x80 nanoslp syz-executor2093262167 89987 438096 74748 0 3 0x82 nanoslp syz-executor2093262167 74748 465028 60136 0 3 0x10008a sigsusp ksh 60136 47115 70290 0 3 0x9a kqread sshd 12088 328329 1 0 3 0x100083 ttyin getty 70290 388667 1 0 3 0x88 kqread sshd 90726 86630 11835 73 3 0x1100090 kqread syslogd 11835 238 1 0 3 0x100082 netio syslogd 19950 521176 1 0 3 0x100080 kqread resolvd 74024 464010 74087 77 3 0x100092 kqread dhcpleased 53901 261975 74087 77 3 0x100092 kqread dhcpleased 74087 482417 1 0 3 0x80 kqread dhcpleased 32489 336790 0 0 3 0x14200 bored smr 43924 201869 0 0 2 0x14200 zerothread 24024 414284 0 0 3 0x14200 aiodoned aiodoned 89245 336591 0 0 3 0x14200 syncer update 56192 421573 0 0 3 0x14200 cleaner cleaner 26238 21482 0 0 7 0x14200 reaper 95103 116871 0 0 3 0x14200 pgdaemon pagedaemon 80839 337410 0 0 3 0x14200 bored viomb 72064 451271 0 0 3 0x40014200 acpi0 acpi0 75624 413035 0 0 3 0x40014200 idle1 71432 112491 0 0 3 0x14200 bored softnet3 7873 399024 0 0 3 0x14200 bored softnet2 4721 148196 0 0 3 0x14200 bored softnet1 76081 201902 0 0 3 0x14200 bored softnet0 96719 445802 0 0 3 0x14200 bored systqmp 61128 249404 0 0 3 0x14200 bored systq 26109 367501 0 0 3 0x40014200 bored softclock 63498 202273 0 0 3 0x40014200 idle0 1 451852 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 10156 6389K 6420K 78643K 11234 0 pcb 13 8K 8K 78643K 13 0 rtable 58 1K 2K 78643K 110 0 pf 12 6K 6K 78643K 12 0 ifaddr 12 9K 9K 78643K 12 0 ifgroup 17 1K 1K 78643K 17 0 counters 44 33K 33K 78643K 44 0 ioctlops 0 0K 2K 78643K 21 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1174 73K 74K 78643K 1187 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 55 78K 79K 78643K 246 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 243 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 108 5K 7K 78643K 3295 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 3 0K 0K 78643K 3 0 temp 1 5904K 5968K 78643K 2839 0 kqueue 11 16K 24K 78643K 194 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 20 0 17 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 304 5 0 5 1 0 1 1 0 8 1 tcpqe 32 189 0 189 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 201 0 192 2 0 2 2 0 8 1 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 1422 0 37 87 0 87 87 0 8 0 ffsino 272 1422 0 37 93 0 93 93 0 8 0 nchpl 144 1606 0 47 58 0 58 58 0 8 0 uvmvnodes 80 1431 0 0 30 0 30 30 0 8 0 vnodes 216 1431 0 0 80 0 80 80 0 8 0 namei 1024 4256 0 4256 1 0 1 1 0 8 1 percpumem 16 35 0 0 1 0 1 1 0 8 0 kstatmem 264 6 0 0 1 0 1 1 0 8 0 scxspl 216 4838 0 4838 3 2 1 2 1 8 1 plimitpl 152 16 0 10 1 0 1 1 0 8 0 sigapl 424 492 0 446 6 0 6 6 0 8 0 futexpl 64 457 0 456 1 0 1 1 0 8 0 knotepl 120 49 0 0 2 0 2 2 0 8 0 kqueuepl 216 193 0 186 1 0 1 1 0 8 0 pipepl 320 87 0 84 1 0 1 1 0 8 0 fdescpl 496 475 0 451 5 1 4 4 0 8 0 filepl 152 1301 0 1245 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 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 104 66 0 56 1 0 1 1 0 8 0 zombiepl 144 452 0 446 1 0 1 1 0 8 0 processpl 1072 492 0 446 4 0 4 4 0 8 0 procpl 680 677 0 628 5 0 5 5 0 8 0 sockpl 488 254 0 229 4 0 4 4 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 238 0 0 30 0 30 30 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 248 0 0 16 0 16 16 0 8 0 bufpl 288 2475 0 88 171 0 171 171 0 8 0 anonpl 24 198524 0 196571 24 2 22 24 0 186 9 amapchunkpl 152 11624 0 11444 12 0 12 12 0 158 1 amappl16 200 5881 0 5879 5 2 3 5 0 8 2 amappl15 192 12 0 11 1 0 1 1 0 8 0 amappl14 184 107 0 98 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 961 0 946 1 0 1 1 0 8 0 amappl11 160 57 0 47 1 0 1 1 0 8 0 amappl10 152 22 0 22 1 0 1 1 0 8 1 amappl9 144 208 0 208 1 1 0 1 0 8 0 amappl8 136 25 0 23 1 0 1 1 0 8 0 amappl7 128 207 0 194 1 0 1 1 0 8 0 amappl6 120 144 0 131 1 0 1 1 0 8 0 amappl5 112 106 0 98 1 0 1 1 0 8 0 amappl4 104 415 0 387 1 0 1 1 0 8 0 amappl3 96 2759 0 2725 2 0 2 2 0 8 0 amappl2 88 642 0 596 2 0 2 2 0 8 0 amappl1 80 9963 0 9511 11 0 11 11 0 8 1 amappl 88 3028 0 2958 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 475 0 451 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 475 0 451 1 0 1 1 0 8 0 vmmpekpl 168 7655 0 7632 2 0 2 2 0 8 0 vmmpepl 168 40328 0 39201 58 0 58 58 0 357 4 vmsppl 464 474 0 451 5 1 4 4 0 8 0 rwobjpl 56 21351 0 19275 32 1 31 31 0 8 0 pdppl 4096 958 0 902 82 16 66 66 0 8 10 pvpl 32 301177 0 296557 52 2 50 52 0 265 10 pmappl 248 474 0 451 3 1 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 503 0 18 14 0 14 14 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace witness_checkorder(fffffd806f329520,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f329510) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff80002120cac0,fffffd806f329510,fffffd806f329598,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff80002120cac0,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff80002120cac0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff80002120cac0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff80002120cac0,ffff8000212994b0,ffff800021299500) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021299580) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021299580) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7438dfee5360, 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+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d48c68) at __mp_lock+0x129 sys/kern/kern_lock.c:147 reaper(ffff8000211b37f0) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -5