panic: pool_do_get: fdescpl free list modified: page 0xfffffd8008b77000; item addr 0xfffffd8008b779b8; offset 0x48=0xdeaf4153 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 474894 57062 32767 0x10 0 1 syz-executor.7 *318420 31010 32767 0x10 0 0 syz-executor.0 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828d3d30) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d648a0,9,ffff80002bc95f58) at pool_do_get+0x484 sys/kern/subr_pool.c:739 pool_get(ffffffff82d648a0,9) at pool_get+0xed sys/kern/subr_pool.c:582 fdcopy(ffff80002a1911d0) at fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] fdcopy(ffff80002a1911d0) at fdcopy+0x48 sys/kern/kern_descrip.c:1106 process_new(ffff80002a213020,ffff80002a1911d0,1) at process_new+0x390 sys/kern/kern_fork.c:273 fork1(ffff80002a1c7ab8,1,ffffffff81611410,0,ffff80002bc96180,0) at fork1+0x318 sys/kern/kern_fork.c:399 syscall(ffff80002bc96230) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002bc96230) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73ac6b87da20, 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 0xfffffd8008b77000; item addr 0xfffffd8008b779b8; offset 0x48=0xdeaf4153 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828d3d30) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d648a0,9,ffff80002bc95f58) at pool_do_get+0x484 sys/kern/subr_pool.c:739 pool_get(ffffffff82d648a0,9) at pool_get+0xed sys/kern/subr_pool.c:582 fdcopy(ffff80002a1911d0) at fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] fdcopy(ffff80002a1911d0) at fdcopy+0x48 sys/kern/kern_descrip.c:1106 process_new(ffff80002a213020,ffff80002a1911d0,1) at process_new+0x390 sys/kern/kern_fork.c:273 fork1(ffff80002a1c7ab8,1,ffffffff81611410,0,ffff80002bc96180,0) at fork1+0x318 sys/kern/kern_fork.c:399 syscall(ffff80002bc96230) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002bc96230) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73ac6b87da20, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002bc95da0 rbx 0xffffffff82cd4ca7 cpu_info_full_primary+0x2ca7 rdx 0 rcx 0xffff80002a1c7ab8 rax 0xffffffff82cd3ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe4cee29419b39f55 r11 0x8f2e316b8fe88c3d r12 0xffffffff82cd4aa8 cpu_info_full_primary+0x2aa8 r13 0 r14 0 r15 0x1 rip 0xffffffff8115915c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002bc95d90 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) tid=318420 pid=31010 tcnt=1 stat=onproc flags process=10 proc=0 runpri=16, usrpri=80, slppri=16, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a1c8aa8,0xffff80002a214ac0 process=0xffff80002a1911d0 user=0xffff80002bc91000, vmspace=0xfffffd806f2b61c8 estcpu=30, cpticks=1, pctcpu=0.6, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61166 244432 96990 32767 2 0x10 syz-executor.4 72169 493623 31497 32767 2 0x10 syz-executor.1 71360 489242 12965 32767 2 0x10 syz-executor.5 57062 474894 48559 32767 7 0x10 syz-executor.7 57062 179314 48559 32767 3 0x4000090 netcon syz-executor.7 82564 153586 26033 32767 3 0x90 nanoslp syz-executor.2 82564 285732 26033 32767 3 0x4000090 netio syz-executor.2 82564 51801 26033 32767 3 0x4000090 fsleep syz-executor.2 97541 288125 73125 32767 3 0x90 nanoslp syz-executor.6 97541 442362 73125 32767 3 0x4000010 fdlock syz-executor.6 97541 140842 73125 32767 3 0x4000090 fsleep syz-executor.6 97541 511903 73125 32767 3 0x4000090 fsleep syz-executor.6 48559 192324 59047 32767 2 0x490 syz-executor.7 59047 312799 76115 0 3 0x82 wait syz-executor.7 31497 457408 97974 32767 2 0x10 syz-executor.1 97974 159855 76115 0 3 0x82 wait syz-executor.1 96990 94578 39073 32767 3 0x90 nanoslp syz-executor.4 39073 425990 76115 0 3 0x82 wait syz-executor.4 26033 11385 95034 32767 3 0x90 nanoslp syz-executor.2 95034 255825 76115 0 3 0x82 wait syz-executor.2 73125 115003 92271 32767 2 0x490 syz-executor.6 92271 499121 76115 0 3 0x82 wait syz-executor.6 38897 213638 51168 32767 2 0x10 syz-executor.3 51168 99956 76115 0 3 0x82 wait syz-executor.3 92616 369362 0 0 3 0x14200 bored sosplice 12965 408757 37521 32767 3 0x90 nanoslp syz-executor.5 37521 477809 76115 0 3 0x82 wait syz-executor.5 *31010 318420 77838 32767 7 0x10 syz-executor.0 77838 79051 76115 0 3 0x82 wait syz-executor.0 76115 466213 44549 0 2 0x2000082 syz-fuzzer 76115 370261 44549 0 3 0x6000082 thrsleep syz-fuzzer 76115 169584 44549 0 3 0x6000082 thrsleep syz-fuzzer 76115 489263 44549 0 3 0x6000082 thrsleep syz-fuzzer 76115 2934 44549 0 3 0x6000082 wait syz-fuzzer 76115 102365 44549 0 3 0x6000082 wait syz-fuzzer 76115 184395 44549 0 3 0x6000082 wait syz-fuzzer 76115 444363 44549 0 3 0x6000082 wait syz-fuzzer 76115 432890 44549 0 3 0x6000082 thrsleep syz-fuzzer 76115 130875 44549 0 3 0x6000082 thrsleep syz-fuzzer 76115 4826 44549 0 3 0x6000082 thrsleep syz-fuzzer 76115 442990 44549 0 3 0x6000082 wait syz-fuzzer 76115 76781 44549 0 3 0x6000082 wait syz-fuzzer 76115 464518 44549 0 3 0x6000082 wait syz-fuzzer 76115 162842 44549 0 3 0x6000082 thrsleep syz-fuzzer 76115 442209 44549 0 3 0x6000082 wait syz-fuzzer 44549 332397 92974 0 3 0x10008a sigsusp ksh 92974 240671 64266 0 2 0x9a sshd 87746 485080 1 0 3 0x100083 ttyin getty 64266 337053 1 0 3 0x88 kqread sshd 7726 231560 76811 73 3 0x1100090 kqread syslogd 76811 464695 1 0 3 0x100082 netio syslogd 14623 164162 1 0 3 0x100080 kqread resolvd 7174 450578 44614 77 3 0x100092 kqread dhcpleased 62124 164079 44614 77 3 0x100092 kqread dhcpleased 44614 70312 1 0 3 0x80 kqread dhcpleased 63460 78752 0 0 3 0x14200 bored smr 75988 272440 0 0 2 0x14200 zerothread 18297 193885 0 0 3 0x14200 aiodoned aiodoned 97957 226912 0 0 3 0x14200 syncer update 75009 282845 0 0 3 0x14200 cleaner cleaner 9160 40234 0 0 3 0x14200 reaper reaper 67610 52127 0 0 3 0x14200 pgdaemon pagedaemon 84347 502028 0 0 3 0x14200 bored viomb 34491 210453 0 0 3 0x40014200 acpi0 acpi0 47536 316797 0 0 3 0x40014200 idle1 14368 335462 0 0 3 0x14200 bored softnet3 30370 450060 0 0 3 0x14200 bored softnet2 82802 290072 0 0 3 0x14200 bored softnet1 94179 283137 0 0 2 0x14200 softnet0 91452 275771 0 0 3 0x14200 bored systqmp 74724 244366 0 0 3 0x14200 bored systq 18554 297213 0 0 2 0x14200 softclockmp 68443 20638 0 0 2 0x40014200 softclock 27000 378918 0 0 3 0x40014200 idle0 1 207166 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 (0xffffffff82d648b0) #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+0x390 sys/kern/kern_fork.c:273 #6 fork1+0x318 sys/kern/kern_fork.c:399 #7 syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] #7 syscall+0x533 sys/arch/amd64/amd64/trap.c:577 #8 Xsyscall+0x128 Process 97541 (syz-executor.6) thread 0xffff80002a23e2b0 (442362) exclusive rwlock sysctllk r = 0 (0xffffffff82c40b80) #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+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] #3 syscall+0x533 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 Process 31010 (syz-executor.0) thread 0xffff80002a1c7ab8 (318420) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82e6e878) #0 witness_lock+0x447 #1 syscall+0x51a mi_syscall sys/sys/syscall_mi.h:183 [inline] #1 syscall+0x51a sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 exclusive mutex fdescpl r = 0 (0xffffffff82d648b0) #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+0x390 sys/kern/kern_fork.c:273 #6 fork1+0x318 sys/kern/kern_fork.c:399 #7 syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] #7 syscall+0x533 sys/arch/amd64/amd64/trap.c:577 #8 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10205 6411K 6419K 166960K 11347 0 pcb 15 16K 18K 166960K 21 0 rtable 244 6K 7K 166960K 1851 0 pf 29 8K 8K 166960K 71 0 ifaddr 44 15K 16K 166960K 134 0 ifgroup 50 2K 2K 166960K 134 0 sysctl 4 1K 2K 166960K 12 0 counters 64 36K 36K 166960K 106 0 ioctlops 0 0K 2K 166960K 191 0 iov 0 0K 50K 166960K 1727 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1279 80K 80K 166960K 3525 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 204 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 3355 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 24 89K 121K 166960K 13600 0 sigio 0 0K 0K 166960K 482 0 proc 56 78K 115K 166960K 1874 0 subproc 104 6K 6K 166960K 377 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1672 0 in_multi 99 7K 7K 166960K 482 0 ether_multi 1 0K 0K 166960K 28 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 211 943K 943K 166960K 211 0 exec 0 0K 1K 166960K 3222 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 394 89K 108K 166960K 135985 0 UVM aobj 131 4K 4K 166960K 133 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 390 0 NDP 11 0K 2K 166960K 90 0 temp 75 6709K 6788K 166960K 36107 0 kqueue 12 18K 33K 166960K 1234 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 945 0 942 12 11 1 3 0 8 0 rtentry 112 368 0 253 4 0 4 4 0 8 0 unpcb 144 10636 0 10623 119 118 1 10 0 8 0 syncache 320 167 0 167 29 29 0 1 0 8 0 tcpqe 32 354 0 354 21 21 0 1 0 8 0 tcpcb 808 6588 0 6525 132 125 7 13 0 8 0 arp 120 63 0 44 1 0 1 1 0 8 0 ipq 40 28 0 27 9 8 1 1 0 8 0 ipqe 40 143 0 142 9 8 1 1 0 8 0 inpcb 376 13807 0 13736 210 202 8 27 0 8 0 nd6 136 110 0 82 2 0 2 2 0 8 0 kcovpl 48 29 0 21 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1473 0 994 34 3 31 31 0 8 0 art_table 32 1474 0 994 4 0 4 4 0 8 0 art_node 16 367 0 262 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 36 1 0 1 1 0 8 0 semapl 112 3353 0 3343 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 18783 0 17333 92 1 91 92 0 8 0 ffsino 272 18783 0 17333 98 0 98 98 0 8 0 nchpl 144 37032 0 35394 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 124510 0 124510 3 2 1 2 0 8 1 percpumem 16 67 0 21 1 0 1 1 0 8 0 kstatmem 264 64 0 42 2 0 2 2 0 8 0 scxspl 216 122676 0 122676 54 53 1 8 1 8 1 plimitpl 152 2287 0 2264 24 22 2 2 0 8 1 sigapl 424 13853 0 13799 7 0 7 7 0 8 0 futexpl 64 113518 0 113515 2 1 1 1 0 8 0 knotepl 120 630 0 0 11 2 9 11 0 8 0 kqueuepl 216 3310 0 3302 61 60 1 5 0 8 0 pipepl 320 2695 0 2667 71 68 3 11 0 8 0 fdescpl 496 13834 0 13799 7 2 5 6 0 8 0 pool(0xffffffff82d648a0:fdescpl): page inconsistency: page 0xfffffd8008b77000; 1 on list, 6 missing, 8 items per page filepl 152 84064 0 83791 166 154 12 20 0 8 1 lockfpl 104 2281 0 2279 2 1 1 2 0 8 0 lockfspl 48 585 0 583 1 0 1 1 0 8 0 sessionpl 144 44 0 28 1 0 1 1 0 8 0 pgrppl 48 483 0 467 1 0 1 1 0 8 0 ucredpl 104 12945 0 12927 1 0 1 1 0 8 0 zombiepl 144 13799 0 13799 1 0 1 1 0 8 1 processpl 1136 13854 0 13799 5 0 5 5 0 8 0 procpl 680 38458 0 38382 19 11 8 9 0 8 0 sosppl 168 227 0 227 14 14 0 1 0 8 0 sockpl 584 26834 0 26750 217 209 8 21 0 8 0 mcl64k 65536 36 0 0 4 1 3 3 0 8 0 mcl16k 16384 26 0 0 4 1 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 35 0 0 3 0 3 3 0 8 0 mcl4k 4096 58 0 0 3 0 3 3 0 8 1 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 394 0 0 32 14 18 32 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 1509 0 0 63 1 62 62 0 8 0 bufpl 280 29552 0 23232 452 0 452 452 0 8 0 anonpl 24 1573636 0 1561948 214 116 98 125 0 186 0 amapchunkpl 152 436099 0 435257 138 95 43 51 0 158 3 amappl16 200 38789 0 38460 209 188 21 32 0 8 0 amappl15 192 20 0 20 4 4 0 1 0 8 0 amappl14 184 240 0 225 2 1 1 2 0 8 0 amappl13 176 72 0 70 1 0 1 1 0 8 0 amappl12 168 14775 0 14737 2 0 2 2 0 8 0 amappl11 160 56 0 46 1 0 1 1 0 8 0 amappl10 152 75 0 64 1 0 1 1 0 8 0 amappl9 144 289 0 288 1 0 1 1 0 8 0 amappl8 136 717 0 567 6 0 6 6 0 8 0 amappl7 128 270 0 243 2 0 2 2 0 8 0 amappl6 120 722 0 707 1 0 1 1 0 8 0 amappl5 112 401 0 393 1 0 1 1 0 8 0 amappl4 104 988 0 957 2 1 1 2 0 8 0 amappl3 96 84143 0 84054 28 24 4 4 0 8 1 amappl2 88 15009 0 14931 3 1 2 3 0 8 0 amappl1 80 57795 0 57271 22 10 12 22 0 8 0 amappl 88 134899 0 134658 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 132 0 2 3 0 3 3 0 8 0 uaddrrnd 24 13835 0 13800 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13835 0 13800 1 0 1 1 0 8 0 vmmpekpl 168 109654 0 109584 4 0 4 4 0 8 0 vmmpepl 168 821768 0 819310 300 179 121 139 0 357 0 vmsppl 448 13834 0 13800 5 0 5 5 0 8 0 rwobjpl 56 216610 0 209130 114 4 110 110 0 8 0 pdppl 4096 27677 0 27600 486 405 81 93 0 8 4 pvpl 32 44874 0 0 362 0 362 362 0 265 0 pmappl 248 13834 0 13800 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1202 0 775 13 0 13 13 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(ffffffff828d3d30) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d648a0,9,ffff80002bc95f58) at pool_do_get+0x484 sys/kern/subr_pool.c:739 pool_get(ffffffff82d648a0,9) at pool_get+0xed sys/kern/subr_pool.c:582 fdcopy(ffff80002a1911d0) at fdcopy+0x48 fdinit sys/kern/kern_descrip.c:1067 [inline] fdcopy(ffff80002a1911d0) at fdcopy+0x48 sys/kern/kern_descrip.c:1106 process_new(ffff80002a213020,ffff80002a1911d0,1) at process_new+0x390 sys/kern/kern_fork.c:273 fork1(ffff80002a1c7ab8,1,ffffffff81611410,0,ffff80002bc96180,0) at fork1+0x318 sys/kern/kern_fork.c:399 syscall(ffff80002bc96230) at syscall+0x533 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002bc96230) at syscall+0x533 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73ac6b87da20, count: -9 ddb{0}> machine ddbcpu 1