kernel: protection fault trap, code=0 Stopped at witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace witness_checkorder(fffffd806f5bfe68,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f5bfe58) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000246f7d48,fffffd806f5bfe58,fffffd806f5bfee0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000246f7d48,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000246f7d48) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000246f7d48,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000246f7d48,ffff80002afcd910,ffff80002afcd960) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002afcd9e0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002afcd9e0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x786fff122ac0, count: -9 ddb{1}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff80002afcd6b0 rbx 0xe rdx 0 rcx 0xffff8000246f7d48 rax 0xffff800020d58ff0 r8 0x1 r9 0x1 r10 0x861a7bdcca4dbb08 r11 0xed43424483b4f02a r12 0 r13 0xfffffd806f5bfe68 r14 0x436011ab436111ab r15 0xffff8000246f7d48 rip 0xffffffff8167002c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002afcd600 ss 0x10 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{1}> show proc PROC (syz-executor.5) pid=209312 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000246f77f8,0xffff8000246f62c8 process=0xffff8000ffff5d68 user=0xffff80002afc8000, vmspace=0xfffffd8068abfcd8 estcpu=30, cpticks=4, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43070 601 64467 32767 2 0x10 syz-executor.7 43070 207774 64467 32767 3 0x4000090 fsleep syz-executor.7 10958 272611 86772 32767 2 0x10 syz-executor.2 23518 239355 4762 32767 7 0x10 syz-executor.4 23518 262188 4762 32767 2 0x4000010 syz-executor.4 11229 512195 22071 32767 2 0x10 syz-executor.3 11229 17907 22071 32767 3 0x4000090 kqread syz-executor.3 79825 349422 9292 32767 2 0x10 syz-executor.1 79825 45846 9292 32767 3 0x4000090 kqpoll syz-executor.1 66039 365903 9117 32767 2 0x10 syz-executor.6 64467 251974 85809 32767 3 0x90 nanoslp syz-executor.7 9117 394000 69716 0 3 0x82 wait syz-executor.6 89310 235520 37493 32767 2 0x10 syz-executor.5 4762 209913 54448 32767 3 0x90 nanoslp syz-executor.4 85809 297096 69716 0 3 0x82 wait syz-executor.7 22071 360336 50841 32767 3 0x90 nanoslp syz-executor.3 37493 409054 69716 0 3 0x82 wait syz-executor.5 54448 1158 69716 0 3 0x82 wait syz-executor.4 50841 289763 69716 0 3 0x82 wait syz-executor.3 86772 97774 93823 32767 3 0x90 nanoslp syz-executor.2 9292 285891 66021 32767 3 0x90 nanoslp syz-executor.1 93823 58807 69716 0 3 0x82 wait syz-executor.2 77896 440910 67116 32767 2 0x10 syz-executor.0 66021 156385 69716 0 3 0x82 wait syz-executor.1 67116 74226 69716 0 3 0x82 wait syz-executor.0 69716 418237 13157 0 3 0x2000082 wait syz-fuzzer 69716 319701 13157 0 3 0x6000082 nanoslp syz-fuzzer 69716 349638 13157 0 3 0x6000082 wait syz-fuzzer 69716 110262 13157 0 3 0x6000082 wait syz-fuzzer 69716 4709 13157 0 3 0x6000082 wait syz-fuzzer 69716 430008 13157 0 3 0x6000082 thrsleep syz-fuzzer 69716 49537 13157 0 3 0x6000082 thrsleep syz-fuzzer 69716 462103 13157 0 3 0x6000082 wait syz-fuzzer 69716 107879 13157 0 3 0x6000082 wait syz-fuzzer 69716 24954 13157 0 3 0x6000082 wait syz-fuzzer 69716 17686 13157 0 3 0x6000082 thrsleep syz-fuzzer 69716 265925 13157 0 3 0x6000082 wait syz-fuzzer 69716 124324 13157 0 3 0x6000082 thrsleep syz-fuzzer 69716 304436 13157 0 3 0x6000082 thrsleep syz-fuzzer 69716 92857 13157 0 3 0x6000082 kqread syz-fuzzer 69716 76927 13157 0 3 0x6000082 thrsleep syz-fuzzer 13157 416107 10003 0 3 0x10008a sigsusp ksh 10003 318346 99417 0 3 0x9a kqread sshd 23520 240280 1 0 3 0x100083 ttyin getty 99417 250184 1 0 3 0x88 kqread sshd 67802 370990 29517 73 3 0x1100090 kqread syslogd 29517 131537 1 0 3 0x100082 netio syslogd 3250 391867 1 0 3 0x100080 kqread resolvd 59239 513185 32355 77 3 0x100092 kqread dhcpleased 80034 415584 32355 77 3 0x100092 kqread dhcpleased 32355 82612 1 0 3 0x80 kqread dhcpleased 9228 341358 0 0 3 0x14200 bored smr 77080 404204 0 0 2 0x14200 zerothread 46730 34364 0 0 3 0x14200 aiodoned aiodoned 97839 220277 0 0 3 0x14200 syncer update 34298 435809 0 0 3 0x14200 cleaner cleaner 73796 114447 0 0 2 0x14200 reaper 29943 16845 0 0 3 0x14200 pgdaemon pagedaemon 59781 426141 0 0 3 0x14200 bored viomb 22161 80206 0 0 3 0x40014200 acpi0 acpi0 75851 508637 0 0 3 0x40014200 idle1 10216 58884 0 0 3 0x14200 bored softnet3 90757 403388 0 0 3 0x14200 bored softnet2 26195 191795 0 0 3 0x14200 bored softnet1 97986 403298 0 0 3 0x14200 bored softnet0 41970 40195 0 0 3 0x14200 bored systqmp 5240 280469 0 0 3 0x14200 bored systq 24125 321260 0 0 3 0x40014200 bored softclock 77303 337386 0 0 3 0x40014200 idle0 1 124534 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10217 6413K 6420K 78643K 11297 0 pcb 13 8K 8K 78643K 13 0 rtable 244 6K 6K 78643K 360 0 pf 29 8K 8K 78643K 29 0 ifaddr 44 15K 15K 78643K 46 0 ifgroup 50 2K 2K 78643K 50 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 75 0 iov 0 0K 4K 78643K 1805 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 17037 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 13K 78643K 141 0 VM map 2 1K 1K 78643K 2 0 sem 9 0K 0K 78643K 100 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 24 89K 125K 78643K 26758 0 sigio 0 0K 0K 78643K 19 0 proc 56 78K 103K 78643K 471 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 7K 7K 78643K 99 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 247 1102K 1102K 78643K 247 0 exec 0 0K 1K 78643K 361 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 318 82K 83K 78643K 231980 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 11 0K 2K 78643K 27 0 temp 74 5916K 5981K 78643K 58900 0 kqueue 13 20K 28K 78643K 3823 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 36 0 33 1 0 1 1 0 8 0 rtentry 112 116 0 1 4 0 4 4 0 8 0 unpcb 144 11798 0 11785 36 35 1 6 0 8 0 syncache 304 4 0 4 1 1 0 1 0 8 0 tcpqe 32 38 0 38 1 1 0 1 0 8 0 tcpcb 808 3707 0 3701 44 43 1 8 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 4007 0 3998 46 39 7 7 0 8 6 nd6 136 29 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 461 0 0 29 0 29 29 0 8 0 art_table 32 462 0 0 4 0 4 4 0 8 0 art_node 16 115 0 10 1 0 1 1 0 8 0 semapl 112 98 0 91 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 44522 0 43083 91 0 91 91 0 8 0 ffsino 272 44522 0 43083 97 0 97 97 0 8 0 nchpl 144 75596 0 73918 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 266165 0 266165 3 2 1 3 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 168452 0 168452 10 9 1 8 1 8 1 plimitpl 152 41 0 18 1 0 1 1 0 8 0 sigapl 424 27052 0 27000 7 0 7 7 0 8 0 futexpl 64 157306 0 157305 1 0 1 1 0 8 0 knotepl 120 278 0 0 6 0 6 6 0 8 0 kqueuepl 216 8313 0 8303 17 16 1 8 0 8 0 pipepl 320 134 0 106 3 0 3 3 0 8 0 fdescpl 496 27035 0 27000 7 2 5 6 0 8 0 filepl 152 167253 0 167016 109 92 17 20 0 8 7 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 23 0 7 1 0 1 1 0 8 0 pgrppl 48 525 0 509 1 0 1 1 0 8 0 ucredpl 104 94401 0 94383 1 0 1 1 0 8 0 zombiepl 144 27001 0 27000 1 0 1 1 0 8 0 processpl 1072 27052 0 27000 5 1 4 5 0 8 0 procpl 680 59100 0 59028 20 13 7 8 0 8 0 sockpl 488 16001 0 15976 183 172 11 28 0 8 7 mcl64k 65536 25 0 0 4 1 3 3 0 8 0 mcl16k 16384 25 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 271 0 0 31 3 28 31 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 489 0 0 19 5 14 19 0 8 0 bufpl 288 30727 0 24401 452 0 452 452 0 8 0 anonpl 24 1930037 0 1922701 59 12 47 56 0 186 0 amapchunkpl 152 729059 0 728283 69 33 36 37 0 158 5 amappl16 200 27964 0 27824 8 0 8 8 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 155 0 141 2 1 1 2 0 8 0 amappl13 176 16 0 16 1 1 0 1 0 8 0 amappl12 168 27665 0 27629 2 0 2 2 0 8 0 amappl11 160 54 0 42 1 0 1 1 0 8 0 amappl10 152 38 0 26 1 0 1 1 0 8 0 amappl9 144 264 0 262 1 0 1 1 0 8 0 amappl8 136 400 0 325 3 0 3 3 0 8 0 amappl7 128 118 0 102 2 1 1 2 0 8 0 amappl6 120 299 0 281 2 1 1 2 0 8 0 amappl5 112 561 0 553 1 0 1 1 0 8 0 amappl4 104 674 0 640 2 0 2 2 0 8 0 amappl3 96 148014 0 147923 5 2 3 4 0 8 0 amappl2 88 27806 0 27734 3 1 2 3 0 8 0 amappl1 80 95929 0 95397 22 9 13 22 0 8 0 amappl 88 231474 0 231256 6 0 6 6 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 27035 0 27000 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 27035 0 27000 1 0 1 1 0 8 0 vmmpekpl 168 139821 0 139770 3 0 3 3 0 8 0 vmmpepl 168 1422389 0 1420207 137 36 101 113 0 357 2 vmsppl 464 27034 0 27000 7 2 5 6 0 8 0 rwobjpl 56 296340 0 289139 103 0 103 103 0 8 0 pdppl 4096 54078 0 54000 318 236 82 96 0 8 4 pvpl 32 6635757 0 6622262 370 256 114 358 0 265 0 pmappl 248 27034 0 27000 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1170 0 344 25 0 25 25 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82bafff0) 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 end of kernel end trace frame: 0x7863f476b070, count: -3 ddb{0}> machine ddbcpu 1 Stopped at witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{1}> trace witness_checkorder(fffffd806f5bfe68,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f5bfe58) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff8000246f7d48,fffffd806f5bfe58,fffffd806f5bfee0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000246f7d48,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000246f7d48) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000246f7d48,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000246f7d48,ffff80002afcd910,ffff80002afcd960) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002afcd9e0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002afcd9e0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x786fff122ac0, count: -9