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(fffffd806efcf448,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806efcf438) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800021338ab0,fffffd806efcf438,fffffd806efcf4c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021338ab0,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021338ab0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021338ab0,0,0,1) at exit1+0x3ff sys/kern/kern_exit.c:206 sys_exit(ffff800021338ab0,ffff8000213196c0,ffff800021319710) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021319790) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021319790) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7152055f2960, count: -9 ddb{1}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff800021319460 rbx 0xe rdx 0 rcx 0xfffffd80037e5f00 rax 0xffff800020d58ff0 r8 0 r9 0x1 r10 0 r11 0xcfcd6756597ed5ad r12 0 r13 0xfffffd806efcf448 r14 0x6bd50114042a0000 r15 0xffff800021338ab0 rip 0xffffffff81e05fcc witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000213193b0 ss 0 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{1}> show proc PROC (syz-executor.1) pid=466706 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000212242b0,0xffff800021339808 process=0xffff80002126d938 user=0xffff800021314000, vmspace=0xfffffd806feb8020 estcpu=36, cpticks=6, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1707 451704 91632 0 2 0 syz-executor.5 1707 94379 91632 0 3 0x4000080 fsleep syz-executor.5 42472 200595 69365 0 3 0x80 nanoslp syz-executor.2 42472 492436 69365 0 3 0x4000080 kqread syz-executor.2 42472 505354 69365 0 3 0x4000080 fsleep syz-executor.2 5156 63860 73237 0 3 0x80 nanoslp syz-executor.3 5156 159592 73237 0 3 0x4000080 kqread syz-executor.3 5156 94371 73237 0 3 0x4000080 fsleep syz-executor.3 56007 78016 93141 0 3 0x80 nanoslp syz-executor.6 56007 139822 93141 0 3 0x4000080 kqread syz-executor.6 56007 404855 93141 0 3 0x4000080 fsleep syz-executor.6 5581 272326 91414 0 3 0x80 nanoslp syz-executor.4 5581 242543 91414 0 3 0x4000080 kqread syz-executor.4 5581 4544 91414 0 3 0x4000080 fsleep syz-executor.4 65091 405418 31033 0 3 0x80 nanoslp syz-executor.7 65091 134863 31033 0 3 0x4000080 kqread syz-executor.7 65091 175683 31033 0 3 0x4000080 fsleep syz-executor.7 13968 240781 26984 0 2 0 syz-executor.0 13968 72266 26984 0 3 0x4000080 kqread syz-executor.0 13968 11579 26984 0 3 0x4000080 fsleep syz-executor.0 93141 175714 10979 0 3 0x82 nanoslp syz-executor.6 20650 16033 10979 0 3 0x82 nanoslp syz-executor.1 31033 361421 10979 0 3 0x82 nanoslp syz-executor.7 26984 253253 10979 0 3 0x82 nanoslp syz-executor.0 91632 495204 10979 0 3 0x82 nanoslp syz-executor.5 91414 240281 10979 0 3 0x82 nanoslp syz-executor.4 73237 398414 10979 0 3 0x82 nanoslp syz-executor.3 69365 249429 10979 0 3 0x82 nanoslp syz-executor.2 10979 464598 71798 0 3 0x2000082 wait syz-execprog 10979 39851 71798 0 3 0x6000082 thrsleep syz-execprog 10979 122978 71798 0 3 0x6000082 wait syz-execprog 10979 94233 71798 0 3 0x6000082 thrsleep syz-execprog 10979 498449 71798 0 3 0x6000082 wait syz-execprog 10979 156181 71798 0 3 0x6000082 wait syz-execprog 10979 289345 71798 0 3 0x6000082 thrsleep syz-execprog 10979 142509 71798 0 3 0x6000082 wait syz-execprog 10979 236985 71798 0 3 0x6000082 wait syz-execprog 10979 463274 71798 0 3 0x6000082 wait syz-execprog 10979 176163 71798 0 3 0x6000082 thrsleep syz-execprog 10979 95016 71798 0 3 0x6000082 wait syz-execprog 10979 98098 71798 0 3 0x6000082 thrsleep syz-execprog 10979 46387 71798 0 3 0x6000082 thrsleep syz-execprog 10979 326003 71798 0 3 0x6000082 kqread syz-execprog 71798 370339 1064 0 3 0x10008a sigsusp ksh 1064 233213 84052 0 3 0x9a kqread sshd 97587 472786 1 0 3 0x100083 ttyin getty 84052 397022 1 0 3 0x88 kqread sshd 25689 297610 32415 74 3 0x1100092 bpf pflogd 32415 148392 1 0 3 0x80 netio pflogd 97503 346243 10502 73 3 0x1100090 kqread syslogd 10502 392153 1 0 3 0x100082 netio syslogd 9566 30729 1 0 3 0x100080 kqread resolvd 16501 219107 43915 77 3 0x100092 kqread dhcpleased 16364 512733 43915 77 3 0x100092 kqread dhcpleased 43915 107994 1 0 3 0x80 kqread dhcpleased 21354 430655 0 0 3 0x14200 bored smr 24742 125129 0 0 3 0x14200 pgzero zerothread 23475 185202 0 0 3 0x14200 aiodoned aiodoned 20041 84469 0 0 3 0x14200 syncer update 52910 445202 0 0 3 0x14200 cleaner cleaner 9393 412812 0 0 2 0x14200 reaper 25815 463052 0 0 3 0x14200 pgdaemon pagedaemon 20840 58927 0 0 3 0x14200 bored viomb 890 348470 0 0 3 0x40014200 acpi0 acpi0 29317 408102 0 0 3 0x40014200 idle1 24546 328773 0 0 3 0x14200 bored softnet3 95856 83514 0 0 3 0x14200 bored softnet2 85291 412860 0 0 3 0x14200 bored softnet1 89841 226889 0 0 3 0x14200 bored softnet0 63479 476762 0 0 3 0x14200 bored systqmp 36010 463316 0 0 3 0x14200 bored systq 46129 2331 0 0 3 0x40014200 bored softclock 28960 29752 0 0 7 0x40014200 idle0 1 465120 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 10186 6474K 6474K 78643K 11264 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 356 0 pf 32 9K 10K 78643K 43 0 ifaddr 45 15K 15K 78643K 47 0 ifgroup 55 2K 2K 78643K 55 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 4K 78643K 1483 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1176 74K 74K 78643K 1192 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 18 65K 89K 78643K 2554 0 proc 67 91K 128K 78643K 526 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 25 122K 122K 78643K 25 0 exec 0 0K 1K 78643K 393 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 308 78K 78K 78643K 29045 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 12 0K 2K 78643K 28 0 temp 1 5904K 5968K 78643K 9118 0 kqueue 18 30K 34K 78643K 2447 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 37 0 34 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 35 0 20 1 0 1 1 0 8 0 syncache 304 5 0 5 2 2 0 1 0 8 0 tcpqe 32 167 0 167 1 1 0 1 0 8 0 tcpcb 808 4852 0 4835 3 1 2 3 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 4909 0 4889 3 0 3 3 0 8 0 nd6 136 24 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 27 0 25 2 1 1 1 0 8 0 pfstkey 128 27 0 25 2 1 1 1 0 8 0 pfstate 376 27 0 25 3 2 1 2 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3915 0 2467 91 0 91 91 0 8 0 ffsino 272 3915 0 2467 97 0 97 97 0 8 0 nchpl 144 6590 0 4901 63 0 63 63 0 8 0 uvmvnodes 80 3929 0 0 81 0 81 81 0 8 0 vnodes 216 3929 0 0 219 0 219 219 0 8 0 namei 1024 18435 0 18435 3 2 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 21303 0 21303 10 9 1 8 1 8 1 plimitpl 152 35 0 19 1 0 1 1 0 8 0 sigapl 424 2884 0 2836 8 1 7 7 0 8 0 futexpl 64 12038 0 12031 1 0 1 1 0 8 0 knotepl 120 110 0 0 4 0 4 4 0 8 0 kqueuepl 216 2443 0 2429 1 0 1 1 0 8 0 pipepl 320 147 0 119 4 1 3 3 0 8 0 fdescpl 496 2867 0 2836 5 0 5 5 0 8 0 filepl 152 11408 0 11261 6 0 6 6 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 26 0 9 1 0 1 1 0 8 0 pgrppl 48 26 0 9 1 0 1 1 0 8 0 ucredpl 104 71 0 59 1 0 1 1 0 8 0 zombiepl 144 2837 0 2836 2 1 1 1 0 8 0 processpl 1072 2884 0 2836 4 0 4 4 0 8 0 procpl 680 7768 0 7692 8 1 7 7 0 8 0 sockpl 488 4981 0 4943 7 1 6 6 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 258 0 0 32 3 29 32 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 365 0 0 18 0 18 18 0 8 0 bufpl 288 6598 0 269 453 0 453 453 0 8 0 anonpl 24 361391 0 355450 75 38 37 54 0 186 0 amapchunkpl 152 91700 0 90907 36 4 32 33 0 158 0 amappl16 200 7588 0 7489 11 5 6 6 0 8 0 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 173 0 160 2 1 1 2 0 8 0 amappl13 176 50 0 50 1 1 0 1 0 8 0 amappl12 168 3568 0 3536 4 1 3 3 0 8 0 amappl11 160 75 0 61 1 0 1 1 0 8 0 amappl10 152 22 0 13 2 1 1 1 0 8 0 amappl9 144 176 0 176 2 2 0 1 0 8 0 amappl8 136 168 0 134 2 0 2 2 0 8 0 amappl7 128 61 0 49 2 0 2 2 0 8 0 amappl6 120 234 0 215 2 1 1 2 0 8 0 amappl5 112 171 0 160 1 0 1 1 0 8 0 amappl4 104 615 0 573 2 0 2 2 0 8 0 amappl3 96 18553 0 18446 4 1 3 3 0 8 0 amappl2 88 3144 0 3070 4 2 2 3 0 8 0 amappl1 80 18461 0 17902 27 14 13 23 0 8 0 amappl 88 28529 0 28302 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 2867 0 2836 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2867 0 2836 1 0 1 1 0 8 0 vmmpekpl 168 28564 0 28534 2 0 2 2 0 8 0 vmmpepl 168 159807 0 157880 124 39 85 116 0 357 0 vmsppl 464 2866 0 2836 5 0 5 5 0 8 0 rwobjpl 56 55933 0 50861 82 10 72 72 0 8 0 pdppl 4096 5742 0 5672 116 46 70 84 0 8 0 pvpl 32 866429 0 854823 361 267 94 339 0 265 0 pmappl 248 2866 0 2836 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 862 0 55 24 0 24 24 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82b90ff0) 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff82b90ff0) at sched_idle+0x41e sys/kern/kern_sched.c:188 end trace frame: 0x0, count: -5 ddb{0}> machine ddbcpu 1 Stopped at witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{1}> trace witness_checkorder(fffffd806efcf448,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806efcf438) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800021338ab0,fffffd806efcf438,fffffd806efcf4c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021338ab0,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021338ab0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021338ab0,0,0,1) at exit1+0x3ff sys/kern/kern_exit.c:206 sys_exit(ffff800021338ab0,ffff8000213196c0,ffff800021319710) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800021319790) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021319790) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7152055f2960, count: -9