panic: pool_do_get: fdescpl free list modified: page 0xfffffd80708df000; item addr 0xfffffd80708df3e8; offset 0x48=0xdeaf4153 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *452498 51078 32767 0x10 0 0 syz-executor.0 323062 35487 32767 0x10 0 1 syz-executor.5 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828151bb) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d5bcb8,9,ffff80002a9b5028) at pool_do_get+0x484 sys/kern/subr_pool.c:739 pool_get(ffffffff82d5bcb8,9) at pool_get+0xed sys/kern/subr_pool.c:582 fdcopy(ffff80002122a190) at fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] fdcopy(ffff80002122a190) at fdcopy+0x48 sys/kern/kern_descrip.c:1106 process_new(ffff800022cd0000,ffff80002122a190,1) at process_new+0x2bc sys/kern/kern_fork.c:257 fork1(ffff800022cec008,1,ffffffff81c90780,0,ffff80002a9b5280,0) at fork1+0x318 sys/kern/kern_fork.c:383 syscall(ffff80002a9b5300) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a9b5300) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72737dda6610, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: pool_do_get: fdescpl free list modified: page 0xfffffd80708df000; item addr 0xfffffd80708df3e8; offset 0x48=0xdeaf4153 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828151bb) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d5bcb8,9,ffff80002a9b5028) at pool_do_get+0x484 sys/kern/subr_pool.c:739 pool_get(ffffffff82d5bcb8,9) at pool_get+0xed sys/kern/subr_pool.c:582 fdcopy(ffff80002122a190) at fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] fdcopy(ffff80002122a190) at fdcopy+0x48 sys/kern/kern_descrip.c:1106 process_new(ffff800022cd0000,ffff80002122a190,1) at process_new+0x2bc sys/kern/kern_fork.c:257 fork1(ffff800022cec008,1,ffffffff81c90780,0,ffff80002a9b5280,0) at fork1+0x318 sys/kern/kern_fork.c:383 syscall(ffff80002a9b5300) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a9b5300) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72737dda6610, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a9b4e70 rbx 0xffffffff82b7dba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff800022cec008 rax 0xffffffff82b7cff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xd5eb588edf643dbd r11 0xfa4101b015bab89e r12 0xffffffff82b7d9a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff815f971c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a9b4e60 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) tid=452498 pid=51078 tcnt=1 stat=onproc flags process=10 proc=0 runpri=79, usrpri=79, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff800022cedd40,0xffff800022cd0ab0 process=0xffff80002122a190 user=0xffff80002a9b0000, vmspace=0xfffffd807a082cd8 estcpu=29, cpticks=0, pctcpu=0.7, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 73433 154536 24763 32767 2 0x10 syz-executor.2 73433 117356 24763 32767 2 0x4000010 syz-executor.2 94003 399395 81846 32767 2 0x10 syz-executor.6 94003 233796 81846 32767 2 0x4000010 syz-executor.6 94003 228907 81846 32767 2 0x4000010 syz-executor.6 82749 202530 43687 32767 2 0x10 syz-executor.1 82749 349610 43687 32767 3 0x4000090 lockf syz-executor.1 94202 470188 35487 32767 2 0x10 syz-executor.5 94202 101452 35487 32767 3 0x4000090 fsleep syz-executor.5 94202 324369 35487 32767 3 0x4000090 fsleep syz-executor.5 17784 479173 27558 32767 2 0x490 syz-executor.7 17784 47592 27558 32767 3 0x4000010 fdlock syz-executor.7 17784 20 27558 32767 3 0x4000090 fsleep syz-executor.7 17784 46146 27558 32767 3 0x4000090 fsleep syz-executor.7 27558 129741 22740 32767 2 0x490 syz-executor.7 22740 333138 57512 0 3 0x82 wait syz-executor.7 *51078 452498 69586 32767 7 0x10 syz-executor.0 69586 20279 57512 0 3 0x82 wait syz-executor.0 35487 323062 8623 32767 7 0x10 syz-executor.5 8623 297616 57512 0 3 0x82 wait syz-executor.5 81846 452694 18585 32767 2 0x490 syz-executor.6 18585 208859 57512 0 3 0x82 wait syz-executor.6 43687 407949 3814 32767 2 0x490 syz-executor.1 3814 369460 57512 0 3 0x82 wait syz-executor.1 52994 282030 83327 32767 2 0x10 syz-executor.4 83327 477418 57512 0 3 0x82 wait syz-executor.4 24763 277946 55563 32767 2 0x490 syz-executor.2 55563 330045 57512 0 3 0x82 wait syz-executor.2 99284 423510 0 0 3 0x14200 bored sosplice 95929 130179 58571 32767 2 0x10 syz-executor.3 58571 344482 57512 0 3 0x82 wait syz-executor.3 57512 507317 76087 0 3 0x2000082 thrsleep syz-fuzzer 57512 243055 76087 0 3 0x6000082 thrsleep syz-fuzzer 57512 512159 76087 0 3 0x6000082 wait syz-fuzzer 57512 168918 76087 0 3 0x6000082 wait syz-fuzzer 57512 273733 76087 0 3 0x6000082 wait syz-fuzzer 57512 39801 76087 0 3 0x6000082 wait syz-fuzzer 57512 219201 76087 0 3 0x6000082 thrsleep syz-fuzzer 57512 495056 76087 0 3 0x6000082 kqread syz-fuzzer 57512 369474 76087 0 3 0x6000082 wait syz-fuzzer 57512 440097 76087 0 3 0x6000082 thrsleep syz-fuzzer 57512 338753 76087 0 3 0x6000082 thrsleep syz-fuzzer 57512 386272 76087 0 3 0x6000082 wait syz-fuzzer 57512 103665 76087 0 3 0x6000082 wait syz-fuzzer 57512 1212 76087 0 3 0x6000082 thrsleep syz-fuzzer 57512 236072 76087 0 3 0x6000082 wait syz-fuzzer 57512 480032 76087 0 3 0x6000082 thrsleep syz-fuzzer 76087 351696 29797 0 3 0x10008a sigsusp ksh 29797 6297 84335 0 3 0x9a kqread sshd 81447 504554 1 0 3 0x100083 ttyin getty 84335 355515 1 0 3 0x88 kqread sshd 37122 450180 20840 73 3 0x1100090 kqread syslogd 20840 428563 1 0 3 0x100082 netio syslogd 72891 370515 1 0 3 0x100080 kqread resolvd 93261 172626 79347 77 3 0x100092 kqread dhcpleased 60829 370747 79347 77 3 0x100092 kqread dhcpleased 79347 23100 1 0 3 0x80 kqread dhcpleased 38399 161155 0 0 3 0x14200 bored smr 99841 48482 0 0 2 0x14200 zerothread 42723 7684 0 0 3 0x14200 aiodoned aiodoned 37193 151703 0 0 3 0x14200 syncer update 65059 15238 0 0 3 0x14200 cleaner cleaner 33608 91285 0 0 3 0x14200 reaper reaper 29230 446357 0 0 3 0x14200 pgdaemon pagedaemon 14624 256622 0 0 3 0x14200 bored viomb 23534 154657 0 0 3 0x40014200 acpi0 acpi0 6363 461200 0 0 3 0x40014200 idle1 83588 195761 0 0 3 0x14200 bored softnet3 29667 302395 0 0 3 0x14200 bored softnet2 71468 402034 0 0 3 0x14200 bored softnet1 13170 159939 0 0 3 0x14200 bored softnet0 13291 440675 0 0 3 0x14200 bored systqmp 83403 500139 0 0 3 0x14200 bored systq 54510 316567 0 0 3 0x14200 tmoslp softclockmp 17 332512 0 0 2 0x40014200 softclock 6789 461474 0 0 3 0x40014200 idle0 1 458371 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex fdescpl r = 0 (0xffffffff82d5bcc8) #0 witness_lock+0x447 #1 mtx_enter_try+0x104 #2 mtx_enter+0x4f sys/kern/kern_lock.c:266 #3 pool_get+0xc1 sys/kern/subr_pool.c:579 #4 fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] #4 fdcopy+0x48 sys/kern/kern_descrip.c:1106 #5 process_new+0x2bc sys/kern/kern_fork.c:257 #6 fork1+0x318 sys/kern/kern_fork.c:383 #7 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #7 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #8 Xsyscall+0x128 Process 17784 (syz-executor.7) thread 0xffff800022cd02a8 (47592) exclusive rwlock sysctllk r = 0 (0xffffffff82c37090) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 sys_sysctl+0x1c3 sys/kern/kern_sysctl.c:238 #3 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #3 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #4 Xsyscall+0x128 Process 51078 (syz-executor.0) thread 0xffff800022cec008 (452498) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82cf1348) #0 witness_lock+0x447 #1 syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] #1 syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 #2 Xsyscall+0x128 exclusive mutex fdescpl r = 0 (0xffffffff82d5bcc8) #0 witness_lock+0x447 #1 mtx_enter_try+0x104 #2 mtx_enter+0x4f sys/kern/kern_lock.c:266 #3 pool_get+0xc1 sys/kern/subr_pool.c:579 #4 fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] #4 fdcopy+0x48 sys/kern/kern_descrip.c:1106 #5 process_new+0x2bc sys/kern/kern_fork.c:257 #6 fork1+0x318 sys/kern/kern_fork.c:383 #7 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #7 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #8 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10212 6412K 6420K 78643K 11435 0 pcb 13 12K 14K 78643K 17 0 rtable 240 6K 7K 78643K 2546 0 pf 29 8K 8K 78643K 125 0 ifaddr 44 15K 16K 78643K 242 0 ifgroup 50 2K 2K 78643K 242 0 sysctl 4 1K 1K 78643K 4 0 counters 60 35K 35K 78643K 156 0 ioctlops 0 0K 2K 78643K 255 0 iov 0 0K 24K 78643K 1999 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 5468 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 275 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 3344 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 117K 78643K 23444 0 sigio 0 0K 0K 78643K 533 0 proc 56 78K 115K 78643K 3056 0 subproc 104 6K 6K 78643K 728 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1679 0 in_multi 99 7K 7K 78643K 823 0 ether_multi 1 0K 0K 78643K 34 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 211 943K 943K 78643K 211 0 exec 0 0K 1K 78643K 3745 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 491 92K 112K 78643K 232549 0 UVM aobj 131 4K 6K 78643K 207 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 514 0 NDP 11 0K 2K 78643K 171 0 temp 75 5925K 6052K 78643K 60470 0 kqueue 12 18K 29K 78643K 1918 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 1194 0 1191 12 11 1 4 0 8 0 rtentry 112 668 0 555 4 0 4 4 0 8 0 unpcb 144 11735 0 11722 134 131 3 7 0 8 2 syncache 304 247 0 247 47 46 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 385 0 385 41 41 0 1 0 8 0 tcpcb 808 9027 0 8983 277 269 8 15 0 8 1 arp 120 119 0 101 1 0 1 1 0 8 0 ipq 40 24 0 23 12 11 1 1 0 8 0 ipqe 40 246 0 245 12 11 1 1 0 8 0 inpcb 368 33800 0 33753 383 372 11 20 0 8 3 nd6 136 192 0 165 3 2 1 2 0 8 0 kcovpl 48 56 0 48 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2688 0 2223 34 4 30 31 0 8 0 art_table 32 2689 0 2223 4 0 4 4 0 8 0 art_node 16 667 0 564 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semapl 112 3342 0 3332 1 0 1 1 0 8 0 shmpl 112 204 0 76 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 32811 0 31357 92 0 92 92 0 8 0 ffsino 272 32811 0 31357 98 0 98 98 0 8 0 nchpl 144 64158 0 62517 63 0 63 63 0 8 0 uvmvnodes 80 6116 0 0 125 0 125 125 0 8 0 vnodes 216 6116 0 0 340 0 340 340 0 8 0 namei 1024 206235 0 206235 5 4 1 2 0 8 1 percpumem 16 91 0 48 1 0 1 1 0 8 0 kstatmem 264 118 0 96 2 0 2 2 0 8 0 scxspl 216 198301 0 198301 60 58 2 8 1 8 2 plimitpl 152 3766 0 3743 32 31 1 2 0 8 0 sigapl 424 23648 0 23594 7 0 7 7 0 8 0 futexpl 64 186021 0 186017 6 5 1 1 0 8 0 knotepl 120 1327 0 0 18 3 15 15 0 8 0 kqueuepl 216 4750 0 4742 85 84 1 8 0 8 0 pipepl 320 5386 0 5358 147 139 8 9 0 8 5 fdescpl 496 23629 0 23595 7 1 6 6 0 8 0 pool(0xffffffff82d5bcb8:fdescpl): page inconsistency: page 0xfffffd80708df000; 2 on list, 5 missing, 8 items per page filepl 152 150270 0 149964 264 247 17 21 0 8 5 lockfpl 104 6757 0 6753 4 3 1 2 0 8 0 lockfspl 48 2787 0 2784 1 0 1 1 0 8 0 sessionpl 144 71 0 55 1 0 1 1 0 8 0 pgrppl 48 269 0 253 1 0 1 1 0 8 0 ucredpl 104 20121 0 20103 1 0 1 1 0 8 0 zombiepl 144 23595 0 23594 1 0 1 1 0 8 0 processpl 1072 23649 0 23594 5 1 4 5 0 8 0 procpl 680 65088 0 65009 53 45 8 9 0 8 1 sosppl 168 386 0 383 19 18 1 1 0 8 0 sockpl 488 47811 0 47742 884 866 18 37 0 8 5 mcl64k 65536 57 0 0 5 2 3 3 0 8 0 mcl16k 16384 29 0 0 3 0 3 3 0 8 0 mcl12k 12288 40 0 0 3 1 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 71 0 0 6 3 3 3 0 8 0 mcl4k 4096 92 0 0 7 2 5 5 0 8 0 mcl2k2 2112 19 0 0 2 0 2 2 0 8 0 mcl2k 2048 561 0 0 33 18 15 32 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 2106 0 0 61 0 61 61 0 8 0 bufpl 288 41939 0 35615 455 2 453 453 0 8 0 anonpl 24 2216060 0 2204504 258 166 92 121 0 186 0 amapchunkpl 152 748879 0 748022 174 136 38 51 0 158 0 amappl16 200 42577 0 42269 199 181 18 43 0 8 0 amappl15 192 37 0 36 7 6 1 1 0 8 0 amappl14 184 332 0 313 2 0 2 2 0 8 0 amappl13 176 38 0 38 10 10 0 1 0 8 0 amappl12 168 24984 0 24944 2 0 2 2 0 8 0 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 93 0 77 1 0 1 1 0 8 0 amappl9 144 566 0 565 1 0 1 1 0 8 0 amappl8 136 1436 0 1182 9 0 9 9 0 8 0 amappl7 128 290 0 271 2 0 2 2 0 8 0 amappl6 120 852 0 824 2 1 1 2 0 8 0 amappl5 112 1257 0 1249 1 0 1 1 0 8 0 amappl4 104 1515 0 1463 3 1 2 3 0 8 0 amappl3 96 143582 0 143493 4 1 3 4 0 8 0 amappl2 88 24832 0 24744 7 4 3 3 0 8 1 amappl1 80 92095 0 91565 22 9 13 22 0 8 0 amappl 88 228967 0 228712 7 0 7 7 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 206 0 76 3 0 3 3 0 8 0 uaddrrnd 24 23629 0 23595 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 23629 0 23595 1 0 1 1 0 8 0 vmmpekpl 168 181279 0 181214 4 0 4 4 0 8 0 vmmpepl 168 1384528 0 1381944 384 255 129 137 0 357 0 vmsppl 464 23628 0 23595 7 2 5 6 0 8 0 rwobjpl 56 334237 0 326445 136 22 114 114 0 8 0 pdppl 4096 47266 0 47190 855 773 82 94 0 8 6 pvpl 32 6726444 0 6708417 720 550 170 354 0 265 0 pmappl 248 23628 0 23595 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2374 0 1496 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828151bb) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d5bcb8,9,ffff80002a9b5028) at pool_do_get+0x484 sys/kern/subr_pool.c:739 pool_get(ffffffff82d5bcb8,9) at pool_get+0xed sys/kern/subr_pool.c:582 fdcopy(ffff80002122a190) at fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] fdcopy(ffff80002122a190) at fdcopy+0x48 sys/kern/kern_descrip.c:1106 process_new(ffff800022cd0000,ffff80002122a190,1) at process_new+0x2bc sys/kern/kern_fork.c:257 fork1(ffff800022cec008,1,ffffffff81c90780,0,ffff80002a9b5280,0) at fork1+0x318 sys/kern/kern_fork.c:383 syscall(ffff80002a9b5300) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a9b5300) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72737dda6610, count: -9 ddb{0}> machine ddbcpu 1