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(fffffd806f17b010,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f17b000) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff80002a39c800,fffffd806f17b000,fffffd806f17b088,6,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff80002a39c800,6) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff80002a39c800) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff80002a39c800,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff80002a39c800,ffff80002e461a70,ffff80002e461ac0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e461b40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e461b40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x725c9542e160, count: -9 ddb{1}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff80002e461810 rbx 0xe rdx 0 rcx 0xffff80002a39c800 rax 0xffff800020d58ff0 r8 0x1 r9 0x1 r10 0x45baf36a8281a4c9 r11 0xf3191b6be362612f r12 0 r13 0xfffffd806f17b010 r14 0x1004808610008086 r15 0xffff80002a39c800 rip 0xffffffff81591c4c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002e461760 ss 0x10 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{1}> show proc PROC (syz-executor.1) pid=449663 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002120d800,0xffff800021262030 process=0xffff8000ffffa5b8 user=0xffff80002e45c000, vmspace=0xfffffd8069a873c0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 31979 217613 36807 32767 2 0x10 syz-executor.6 31979 54910 36807 32767 3 0x4000090 fsleep syz-executor.6 31979 107519 36807 32767 3 0x4000090 fsleep syz-executor.6 36241 418240 47754 32767 2 0x10 syz-executor.7 36241 328759 47754 32767 2 0x4000090 syz-executor.7 36241 130076 47754 32767 3 0x4000090 fsleep syz-executor.7 36241 474593 47754 32767 2 0x4000010 syz-executor.7 35958 298130 25111 32767 3 0x90 piperd syz-executor.4 25111 256988 81415 0 3 0x82 wait syz-executor.4 10313 414309 62164 32767 3 0x90 nanoslp syz-executor.1 62164 398498 81415 0 3 0x82 wait syz-executor.1 47754 511608 47278 32767 3 0x90 nanoslp syz-executor.7 47278 40081 81415 0 3 0x82 wait syz-executor.7 43472 429209 1410 32767 3 0x90 piperd syz-executor.0 1410 473372 81415 0 3 0x82 wait syz-executor.0 24808 328225 90725 32767 7 0x10 syz-executor.3 90725 206049 81415 0 3 0x82 wait syz-executor.3 36807 270827 27781 32767 3 0x90 nanoslp syz-executor.6 27781 270281 81415 0 3 0x82 wait syz-executor.6 39755 4971 83056 32767 3 0x90 piperd syz-executor.5 83056 358690 81415 0 3 0x82 wait syz-executor.5 32405 150476 79681 32767 3 0x90 piperd syz-executor.2 79681 407105 81415 0 3 0x82 wait syz-executor.2 4981 21594 0 0 3 0x14200 bored sosplice 81415 265053 36764 0 3 0x2000082 kqread syz-fuzzer 81415 59036 36764 0 3 0x6000082 nanoslp syz-fuzzer 81415 346772 36764 0 3 0x6000082 thrsleep syz-fuzzer 81415 256285 36764 0 3 0x6000082 wait syz-fuzzer 81415 76158 36764 0 3 0x6000082 thrsleep syz-fuzzer 81415 132722 36764 0 3 0x6000082 wait syz-fuzzer 81415 407657 36764 0 3 0x6000082 wait syz-fuzzer 81415 53370 36764 0 3 0x6000082 thrsleep syz-fuzzer 81415 263717 36764 0 3 0x6000082 thrsleep syz-fuzzer 81415 115106 36764 0 3 0x6000082 thrsleep syz-fuzzer 81415 484776 36764 0 3 0x6000082 thrsleep syz-fuzzer 81415 336167 36764 0 3 0x6000082 wait syz-fuzzer 81415 97552 36764 0 3 0x6000082 wait syz-fuzzer 81415 196627 36764 0 3 0x6000082 wait syz-fuzzer 81415 166223 36764 0 3 0x6000082 wait syz-fuzzer 81415 492649 36764 0 3 0x6000082 wait syz-fuzzer 36764 473404 97709 0 3 0x10008a sigsusp ksh 97709 300086 150 0 3 0x9a kqread sshd 35562 492610 1 0 3 0x100083 ttyin getty 150 323649 1 0 3 0x88 kqread sshd 23192 490703 69162 73 3 0x1100090 kqread syslogd 69162 14883 1 0 3 0x100082 netio syslogd 91325 390003 1 0 3 0x100080 kqread resolvd 29737 334431 88730 77 3 0x100092 kqread dhcpleased 15413 431655 88730 77 3 0x100092 kqread dhcpleased 88730 305163 1 0 3 0x80 kqread dhcpleased 71639 85233 0 0 3 0x14200 bored smr 97164 330563 0 0 2 0x14200 zerothread 31304 195908 0 0 3 0x14200 aiodoned aiodoned 72957 347817 0 0 3 0x14200 syncer update 88902 274753 0 0 3 0x14200 cleaner cleaner 29653 270494 0 0 2 0x14200 reaper 52029 224447 0 0 3 0x14200 pgdaemon pagedaemon 99237 379447 0 0 3 0x14200 bored viomb 3691 344412 0 0 3 0x40014200 acpi0 acpi0 2280 21902 0 0 3 0x40014200 idle1 14549 340354 0 0 3 0x14200 bored softnet3 48983 239876 0 0 3 0x14200 bored softnet2 97734 407838 0 0 3 0x14200 bored softnet1 99042 390855 0 0 3 0x14200 bored softnet0 29752 215914 0 0 3 0x14200 bored systqmp 44484 174047 0 0 3 0x14200 bored systq 41257 487552 0 0 3 0x40014200 bored softclock 74060 334712 0 0 3 0x40014200 idle0 1 230636 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 10220 6413K 6420K 78643K 11396 0 pcb 13 12K 14K 78643K 17 0 rtable 240 6K 7K 78643K 1916 0 pf 29 8K 8K 78643K 93 0 ifaddr 44 15K 16K 78643K 178 0 ifgroup 50 2K 2K 78643K 178 0 sysctl 2 0K 4K 78643K 6 0 counters 60 35K 35K 78643K 124 0 ioctlops 0 0K 2K 78643K 147 0 iov 0 0K 20K 78643K 2079 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 4800 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 316 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 4267 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 21 77K 129K 78643K 19521 0 sigio 0 0K 0K 78643K 658 0 proc 56 78K 115K 78643K 2524 0 subproc 104 6K 6K 78643K 520 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1049 0 in_multi 99 7K 7K 78643K 621 0 ether_multi 1 0K 0K 78643K 17 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 259 1155K 1155K 78643K 259 0 exec 0 0K 1K 78643K 2773 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 481 96K 111K 78643K 193804 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 538 0 NDP 11 0K 2K 78643K 123 0 temp 74 5920K 6048K 78643K 51575 0 kqueue 12 18K 32K 78643K 1878 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 595 0 590 5 4 1 3 0 8 0 rtentry 112 492 0 379 4 0 4 4 0 8 0 unpcb 144 28143 0 28127 195 191 4 12 0 8 3 syncache 304 216 0 216 35 34 1 1 0 8 1 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 695 0 695 26 25 1 1 0 8 1 tcpcb 808 8519 0 8493 223 214 9 20 0 8 6 arp 120 86 0 67 1 0 1 1 0 8 0 ipq 40 68 0 67 13 12 1 1 0 8 0 ipqe 40 367 0 366 13 12 1 1 0 8 0 inpcb 368 14710 0 14677 240 231 9 20 0 8 5 nd6 136 145 0 119 1 0 1 1 0 8 0 kcovpl 48 40 0 32 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2006 0 1542 36 7 29 31 0 8 0 art_table 32 2007 0 1542 4 0 4 4 0 8 0 art_node 16 491 0 388 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semapl 112 4265 0 4255 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 26334 0 24887 91 0 91 91 0 8 0 ffsino 272 26334 0 24887 97 0 97 97 0 8 0 nchpl 144 51382 0 49744 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 165547 0 165547 4 3 1 2 0 8 1 percpumem 16 75 0 32 1 0 1 1 0 8 0 kstatmem 264 86 0 64 2 0 2 2 0 8 0 scxspl 216 151790 0 151790 43 42 1 8 1 8 1 plimitpl 152 3146 0 3123 32 31 1 2 0 8 0 sigapl 424 19751 0 19701 7 0 7 7 0 8 0 futexpl 64 170563 0 170560 4 3 1 1 0 8 0 knotepl 120 1184 0 0 19 4 15 18 0 8 0 kqueuepl 216 5709 0 5701 119 118 1 8 0 8 0 pipepl 320 8668 0 8640 177 169 8 10 0 8 5 fdescpl 496 19733 0 19701 7 2 5 6 0 8 0 filepl 152 135477 0 135229 288 272 16 24 0 8 6 lockfpl 104 3131 0 3129 4 3 1 2 0 8 0 lockfspl 48 753 0 751 1 0 1 1 0 8 0 sessionpl 144 55 0 39 1 0 1 1 0 8 0 pgrppl 48 337 0 321 1 0 1 1 0 8 0 ucredpl 104 18243 0 18225 1 0 1 1 0 8 0 zombiepl 144 19702 0 19701 1 0 1 1 0 8 0 processpl 1072 19751 0 19701 5 1 4 5 0 8 0 procpl 680 54605 0 54534 51 43 8 9 0 8 1 sosppl 168 401 0 401 39 38 1 1 0 8 1 sockpl 488 52172 0 52121 822 808 14 42 0 8 7 mcl64k 65536 33 0 0 4 1 3 3 0 8 0 mcl16k 16384 24 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 22 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 59 0 0 5 1 4 5 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 458 0 0 29 15 14 29 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 1883 0 0 105 0 105 105 0 8 0 bufpl 288 32918 0 26596 452 0 452 452 0 8 0 anonpl 24 1957828 0 1946276 129 31 98 103 0 186 0 amapchunkpl 152 608115 0 607259 143 102 41 52 0 158 2 amappl16 200 44968 0 44676 165 142 23 34 0 8 1 amappl15 192 13 0 13 3 3 0 1 0 8 0 amappl14 184 262 0 245 2 1 1 2 0 8 0 amappl13 176 20 0 20 5 5 0 1 0 8 0 amappl12 168 20871 0 20835 3 1 2 3 0 8 0 amappl11 160 56 0 46 1 0 1 1 0 8 0 amappl10 152 66 0 52 1 0 1 1 0 8 0 amappl9 144 336 0 336 33 33 0 1 0 8 0 amappl8 136 1299 0 1067 10 1 9 9 0 8 0 amappl7 128 174 0 159 2 0 2 2 0 8 0 amappl6 120 621 0 597 1 0 1 1 0 8 0 amappl5 112 744 0 733 1 0 1 1 0 8 0 amappl4 104 1164 0 1120 2 0 2 2 0 8 0 amappl3 96 120402 0 120321 6 3 3 4 0 8 0 amappl2 88 20804 0 20714 4 1 3 3 0 8 0 amappl1 80 78713 0 78188 22 10 12 22 0 8 0 amappl 88 192380 0 192125 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 19734 0 19702 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 19734 0 19702 1 0 1 1 0 8 0 vmmpekpl 168 167330 0 167259 4 0 4 4 0 8 0 vmmpepl 168 1155731 0 1153292 405 275 130 135 0 357 5 vmsppl 464 19733 0 19702 7 2 5 6 0 8 0 rwobjpl 56 291542 0 283998 119 8 111 111 0 8 0 pdppl 4096 39476 0 39404 734 652 82 98 0 8 10 pvpl 32 5652980 0 5635205 506 329 177 336 0 265 0 pmappl 248 19733 0 19702 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2084 0 1169 28 1 27 28 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82bc7ff0) 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(ffff800024739960) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800024739960) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x794e869ac610, count: -6 ddb{0}> machine ddbcpu 1 Stopped at witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{1}> trace witness_checkorder(fffffd806f17b010,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f17b000) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff80002a39c800,fffffd806f17b000,fffffd806f17b088,6,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff80002a39c800,6) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff80002a39c800) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff80002a39c800,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff80002a39c800,ffff80002e461a70,ffff80002e461ac0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e461b40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e461b40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x725c9542e160, count: -9