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(fffffd806f0e5e68,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f0e5e58) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800022ce4ff8,fffffd806f0e5e58,fffffd806f0e5ee0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800022ce4ff8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800022ce4ff8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800022ce4ff8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800022ce4ff8,ffff80002e3f9110,ffff80002e3f9160) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e3f91e0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e3f91e0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ed72cf09360, count: -9 ddb{0}> show registers rdi 0 rsi 0x20000 acpi_pdirpa+0xbe63 rbp 0xffff80002e3f8eb0 rbx 0xe rdx 0 rcx 0xffff800022ce4ff8 rax 0xffffffff82c1fff0 cpu_info_full_primary+0x1ff0 r8 0x1 r9 0 r10 0x84e7518c25fad4ae r11 0x77564264f99a7d10 r12 0 r13 0xfffffd806f0e5e68 r14 0x3ff5555555555555 r15 0xffff800022ce4ff8 rip 0xffffffff8146926c witness_checkorder+0x1ec cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002e3f8e00 ss 0x10 witness_checkorder+0x1ec: movl 0x8(%r14),%ebx ddb{0}> show proc PROC (syz-executor.7) pid=60898 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=71, nice=20 forw=0xffffffffffffffff, list=0xffff800022ce5d40,0xffff80002121aad0 process=0xffff8000295869f8 user=0xffff80002e3f4000, vmspace=0xfffffd8069d4acd0 estcpu=21, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21796 300762 24599 32767 2 0x10 syz-executor.5 17439 242844 80554 32767 3 0x90 nanoslp syz-executor.3 17439 379127 80554 32767 3 0x4000090 fsleep syz-executor.3 96984 235204 16945 32767 2 0x10 syz-executor.6 96984 40517 16945 32767 3 0x4000090 fsleep syz-executor.6 16945 81357 19086 32767 3 0x90 nanoslp syz-executor.6 19086 27058 6295 0 3 0x82 wait syz-executor.6 60275 13335 11963 32767 3 0x10 biowait syz-executor.4 11963 209615 6295 0 3 0x82 wait syz-executor.4 24599 83434 90588 32767 3 0x90 nanoslp syz-executor.5 90588 223575 6295 0 3 0x82 wait syz-executor.5 86884 356877 12303 32767 3 0x90 nanoslp syz-executor.7 12303 296257 6295 0 3 0x82 wait syz-executor.7 35180 92453 38772 32767 3 0x90 nanoslp syz-executor.1 38772 344652 6295 0 3 0x82 wait syz-executor.1 80554 71846 77613 32767 3 0x90 nanoslp syz-executor.3 77613 506394 6295 0 3 0x82 wait syz-executor.3 56244 274822 37765 32767 3 0x90 nanoslp syz-executor.2 37765 38024 6295 0 3 0x82 wait syz-executor.2 58668 398169 54439 32767 2 0x10 syz-executor.0 54439 509764 6295 0 3 0x82 wait syz-executor.0 19193 13535 0 0 3 0x14200 bored sosplice 6295 11131 69218 0 3 0x2000082 wait syz-fuzzer 6295 514782 69218 0 3 0x6000082 nanoslp syz-fuzzer 6295 40054 69218 0 3 0x6000082 wait syz-fuzzer 6295 434586 69218 0 3 0x6000082 wait syz-fuzzer 6295 515111 69218 0 3 0x6000082 thrsleep syz-fuzzer 6295 357483 69218 0 3 0x6000082 thrsleep syz-fuzzer 6295 478374 69218 0 3 0x6000082 thrsleep syz-fuzzer 6295 332601 69218 0 3 0x6000082 wait syz-fuzzer 6295 87511 69218 0 3 0x6000082 thrsleep syz-fuzzer 6295 67347 69218 0 3 0x6000082 wait syz-fuzzer 6295 430372 69218 0 3 0x6000082 thrsleep syz-fuzzer 6295 330584 69218 0 3 0x6000082 wait syz-fuzzer 6295 483453 69218 0 3 0x6000082 kqread syz-fuzzer 6295 67977 69218 0 3 0x6000082 thrsleep syz-fuzzer 6295 523826 69218 0 3 0x6000082 wait syz-fuzzer 6295 377160 69218 0 3 0x6000082 wait syz-fuzzer 69218 286152 18019 0 3 0x10008a sigsusp ksh 18019 429099 32687 0 3 0x9a kqread sshd 89233 288736 1 0 3 0x100083 ttyin getty 32687 33531 1 0 3 0x88 kqread sshd 15744 254031 25620 73 3 0x1100090 kqread syslogd 25620 15826 1 0 3 0x100082 netio syslogd 86879 76980 1 0 3 0x100080 kqread resolvd 16625 357 78386 77 3 0x100092 kqread dhcpleased 95035 395535 78386 77 3 0x100092 kqread dhcpleased 78386 293745 1 0 3 0x80 kqread dhcpleased 60119 234611 0 0 3 0x14200 bored smr 71642 123493 0 0 2 0x14200 zerothread 18033 431708 0 0 3 0x14200 aiodoned aiodoned 19083 80125 0 0 3 0x14200 syncer update 83103 443445 0 0 3 0x14200 cleaner cleaner 74601 391777 0 0 7 0x14200 reaper 3280 288860 0 0 3 0x14200 pgdaemon pagedaemon 5036 511986 0 0 3 0x14200 bored viomb 65224 3093 0 0 3 0x40014200 acpi0 acpi0 1139 266457 0 0 3 0x40014200 idle1 85087 163654 0 0 3 0x14200 bored softnet3 41004 244044 0 0 3 0x14200 bored softnet2 11438 279126 0 0 3 0x14200 bored softnet1 13858 206818 0 0 3 0x14200 bored softnet0 54130 172171 0 0 3 0x14200 bored systqmp 72831 118909 0 0 3 0x14200 bored systq 19231 209814 0 0 3 0x40014200 bored softclock 88018 318003 0 0 3 0x40014200 idle0 1 393704 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 60275 (syz-executor.4) thread 0xffff800021224ff0 (13335) exclusive rrwlock inode r = 0 (0xfffffd806706d920) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 ufs_ihashins+0x46 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1343 #6 ffs_inode_alloc+0x1c2 sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf8 sys/ufs/ufs/ufs_vnops.c:1149 #8 VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388 #9 domkdirat+0x125 sys/kern/vfs_syscalls.c:3073 #10 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #10 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806706d1b0) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418 #6 namei+0x55a sys/kern/vfs_lookup.c:250 #7 domkdirat+0x79 sys/kern/vfs_syscalls.c:3058 #8 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #8 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10197 6410K 6420K 78643K 11392 0 pcb 13 12K 14K 78643K 17 0 rtable 240 6K 7K 78643K 2134 0 pf 29 8K 8K 78643K 107 0 ifaddr 44 15K 16K 78643K 206 0 ifgroup 50 2K 2K 78643K 206 0 sysctl 3 1K 1K 78643K 3 0 counters 60 35K 35K 78643K 138 0 ioctlops 0 0K 2K 78643K 222 0 iov 0 0K 24K 78643K 1746 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 4391 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 264 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 184 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 22 81K 121K 78643K 18826 0 sigio 0 0K 0K 78643K 1187 0 proc 56 78K 115K 78643K 2809 0 subproc 104 6K 6K 78643K 611 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 857 0 in_multi 99 7K 7K 78643K 677 0 ether_multi 1 0K 0K 78643K 15 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 121 546K 546K 78643K 121 0 exec 0 0K 1K 78643K 3026 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 460 95K 112K 78643K 193214 0 UVM aobj 131 4K 4K 78643K 143 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 411 0 NDP 11 0K 1K 78643K 144 0 temp 74 5920K 6048K 78643K 48645 0 kqueue 12 18K 48K 78643K 9319 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 1047 0 1044 18 17 1 3 0 8 0 rtentry 112 574 0 461 4 0 4 4 0 8 0 unpcb 144 11709 0 11696 152 151 1 10 0 8 0 syncache 304 197 0 197 41 40 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 197 0 197 30 30 0 1 0 8 0 tcpcb 808 6233 0 6216 166 163 3 16 0 8 0 arp 120 99 0 80 1 0 1 1 0 8 0 ipq 40 29 0 29 13 13 0 1 0 8 0 ipqe 40 155 0 155 13 13 0 1 0 8 0 inpcb 368 11467 0 11438 229 225 4 18 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 136 172 0 146 2 1 1 2 0 8 0 kcovpl 48 47 0 39 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2308 0 1845 37 8 29 31 0 8 0 art_table 32 2309 0 1845 4 0 4 4 0 8 0 art_node 16 573 0 470 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 17 1 0 1 1 0 8 0 semapl 112 182 0 172 1 0 1 1 0 8 0 shmpl 112 140 0 12 5 1 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 24700 0 23239 92 0 92 92 0 8 0 ffsino 272 24700 0 23239 98 0 98 98 0 8 0 nchpl 144 48411 0 46770 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 179929 0 179928 6 5 1 2 0 8 0 percpumem 16 82 0 39 1 0 1 1 0 8 0 kstatmem 264 100 0 78 2 0 2 2 0 8 0 scxspl 216 155535 0 155534 40 39 1 8 1 8 0 plimitpl 152 2948 0 2924 33 32 1 2 0 8 0 sigapl 424 19040 0 18987 8 1 7 7 0 8 0 futexpl 64 180355 0 180353 7 6 1 1 0 8 0 knotepl 120 1342 0 0 18 0 18 18 0 8 0 kqueuepl 216 24476 0 24468 176 175 1 10 0 8 0 pipepl 320 3724 0 3696 87 84 3 11 0 8 0 fdescpl 496 19022 0 18989 7 2 5 6 0 8 0 filepl 152 147017 0 146781 236 223 13 22 0 8 0 lockfpl 104 4196 0 4194 2 1 1 2 0 8 0 lockfspl 48 1416 0 1414 1 0 1 1 0 8 0 sessionpl 144 62 0 46 1 0 1 1 0 8 0 pgrppl 48 132 0 116 1 0 1 1 0 8 0 ucredpl 104 15234 0 15216 1 0 1 1 0 8 0 zombiepl 144 18990 0 18987 1 0 1 1 0 8 0 processpl 1072 19040 0 18987 5 1 4 5 0 8 0 procpl 680 56242 0 56171 25 17 8 9 0 8 0 sosppl 168 298 0 298 23 22 1 1 0 8 1 sockpl 488 24642 0 24606 579 570 9 38 0 8 3 mcl64k 65536 27 0 0 3 0 3 3 0 8 0 mcl16k 16384 50 0 0 6 3 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 42 0 0 4 1 3 3 0 8 0 mcl4k 4096 89 0 0 6 2 4 4 0 8 1 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 429 0 0 30 17 13 30 0 8 0 mtagpl 96 18 0 0 1 0 1 1 0 8 0 mbufpl 256 4555 0 0 281 0 281 281 0 8 0 bufpl 288 31357 0 25031 453 0 453 453 0 8 0 anonpl 24 1992453 0 1981309 270 174 96 100 0 186 0 amapchunkpl 152 617350 0 616481 184 145 39 53 0 158 0 amappl16 200 40566 0 40311 249 234 15 30 0 8 0 amappl15 192 17 0 17 1 1 0 1 0 8 0 amappl14 184 286 0 267 5 4 1 2 0 8 0 amappl13 176 14 0 13 1 0 1 1 0 8 0 amappl12 168 20251 0 20215 2 0 2 2 0 8 0 amappl11 160 52 0 41 1 0 1 1 0 8 0 amappl10 152 104 0 91 1 0 1 1 0 8 0 amappl9 144 290 0 290 19 19 0 1 0 8 0 amappl8 136 1225 0 1022 9 1 8 8 0 8 0 amappl7 128 232 0 217 2 0 2 2 0 8 0 amappl6 120 642 0 620 2 1 1 2 0 8 0 amappl5 112 618 0 610 1 0 1 1 0 8 0 amappl4 104 1161 0 1114 3 1 2 3 0 8 0 amappl3 96 118951 0 118862 36 33 3 4 0 8 0 amappl2 88 20180 0 20095 5 3 2 3 0 8 0 amappl1 80 77037 0 76504 22 10 12 22 0 8 0 amappl 88 191779 0 191522 10 3 7 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 142 0 12 3 0 3 3 0 8 0 uaddrrnd 24 19022 0 18988 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 19022 0 18988 1 0 1 1 0 8 0 vmmpekpl 168 158391 0 158322 4 0 4 4 0 8 0 vmmpepl 168 1124346 0 1121898 335 211 124 132 0 357 0 vmsppl 464 19021 0 18988 7 2 5 6 0 8 0 rwobjpl 56 289321 0 281841 119 9 110 110 0 8 0 pdppl 4096 38052 0 37976 593 513 80 94 0 8 4 pvpl 32 5714084 0 5696501 821 648 173 360 0 265 6 pmappl 248 19021 0 18988 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2036 0 956 32 0 32 32 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace witness_checkorder(fffffd806f0e5e68,9,0) at witness_checkorder+0x1ec sys/kern/subr_witness.c:794 mtx_enter(fffffd806f0e5e58) at mtx_enter+0x3e sys/kern/kern_lock.c:265 knote_remove(ffff800022ce4ff8,fffffd806f0e5e58,fffffd806f0e5ee0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800022ce4ff8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800022ce4ff8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800022ce4ff8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800022ce4ff8,ffff80002e3f9110,ffff80002e3f9160) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e3f91e0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e3f91e0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ed72cf09360, 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(ffffffff82c97058) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c97058) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211b32a0) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -5