panic: pool_do_get: sockpl free list modified: page 0xfffffd8067dd5000; item addr 0xfffffd8067dd57eb; offset 0x0=0x7e3428813796cc7b != 0x813796cc7b233fa0 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *102308 33946 0 0 0x4000000 0 syz-executor.6 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82829855) at panic+0x165 sys/kern/subr_prf.c:198 pool_do_get(ffffffff82c723d0,9,ffff800027fb30c8) at pool_do_get+0x427 sys/kern/subr_pool.c:738 pool_get(ffffffff82c723d0,9) at pool_get+0xb7 sys/kern/subr_pool.c:582 socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 soalloc sys/kern/uipc_socket.c:157 [inline] socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 sys/kern/uipc_socket.c:193 sys_socketpair(ffff8000216d3808,ffff800027fb3230,ffff800027fb3280) at sys_socketpair+0x72 sys/kern/uipc_syscalls.c:474 syscall(ffff800027fb3300) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x403dab5e950, count: 7 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: pool_do_get: sockpl free list modified: page 0xfffffd8067dd5000; item addr 0xfffffd8067dd57eb; offset 0x0=0x7e3428813796cc7b != 0x813796cc7b233fa0 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82829855) at panic+0x165 sys/kern/subr_prf.c:198 pool_do_get(ffffffff82c723d0,9,ffff800027fb30c8) at pool_do_get+0x427 sys/kern/subr_pool.c:738 pool_get(ffffffff82c723d0,9) at pool_get+0xb7 sys/kern/subr_pool.c:582 socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 soalloc sys/kern/uipc_socket.c:157 [inline] socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 sys/kern/uipc_socket.c:193 sys_socketpair(ffff8000216d3808,ffff800027fb3230,ffff800027fb3280) at sys_socketpair+0x72 sys/kern/uipc_syscalls.c:474 syscall(ffff800027fb3300) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x403dab5e950, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800027fb2f40 rbx 0x813796cc7b233fa0 rdx 0 rcx 0 rax 0xffff8000216d3808 r8 0x101010101010101 r9 0x8080808080808080 r10 0x353f6631f87bddd r11 0xaf3b86bb77e5ad73 r12 0 r13 0xfffffd8067dd57eb r14 0 r15 0x1 rip 0xffffffff82706dac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800027fb2f30 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.6) tid=102308 pid=33946 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=85, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff8000216d47f8,0xffff8000216d5ad0 process=0xffff8000ffff2000 user=0xffff800027fae000, vmspace=0xfffffd807e13a470 estcpu=35, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 60263 301537 57343 0 2 0 syz-executor.7 60263 191597 57343 0 2 0x4000000 syz-executor.7 72905 266232 78381 0 2 0 syz-executor.0 72905 117079 78381 0 2 0x4000000 syz-executor.0 33946 475606 957 0 2 0 syz-executor.6 *33946 102308 957 0 7 0x4000000 syz-executor.6 53726 507379 89009 0 2 0 syz-executor.5 53726 26665 89009 0 3 0x4000000 smrbar syz-executor.5 53726 438183 89009 0 3 0x4000080 fsleep syz-executor.5 30498 181432 64133 0 2 0 syz-executor.1 30498 57504 64133 0 3 0x4000080 fsleep syz-executor.1 82898 249893 1437 0 3 0x82 piperd syz-executor.4 84374 494048 1437 0 3 0x3 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10177 6422K 7057K 78643K 13908 0 pcb 13 15K 17K 78643K 460 0 rtable 241 7K 7K 78643K 577 0 pf 32 9K 9K 78643K 109 0 ifaddr 44 11K 12K 78643K 88 0 ifgroup 55 2K 2K 78643K 172 0 sysctl 2 0K 0K 78643K 6 0 counters 29 17K 17K 78643K 61 0 ioctlops 0 0K 2K 78643K 234 0 iov 0 0K 16K 78643K 815 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1445 90K 91K 78643K 2551 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 53 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 169 0 dirhash 12 2K 2K 78643K 45 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 69K 78643K 2792 0 sigio 0 0K 0K 78643K 19 0 proc 57 59K 75K 78643K 658 0 subproc 104 6K 6K 78643K 130 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 80 0 in_multi 99 7K 7K 78643K 136 0 ether_multi 1 0K 0K 78643K 1 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 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 656 0 pfkey data 0 0K 0K 78643K 42 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 371 221K 221K 78643K 28179 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 1K 78643K 483 0 NDP 14 0K 1K 78643K 64 0 temp 78 5920K 5992K 78643K 16433 0 kqueue 13 20K 24K 78643K 202 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 113 0 109 2 1 1 2 0 8 0 rtentry 112 203 0 91 4 0 4 4 0 8 0 unpcb 144 2475 0 2460 34 28 6 8 0 8 5 syncache 304 22 0 22 6 6 0 1 0 8 0 tcpqe 32 176 0 176 3 3 0 1 0 8 0 tcpcb 808 932 0 922 32 24 8 12 0 8 6 arp 88 23 0 4 1 0 1 1 0 8 0 ipq 40 5 0 5 2 2 0 1 0 8 0 ipqe 40 20 0 20 2 2 0 1 0 8 0 inpcb 336 4172 0 4151 48 35 13 15 0 8 8 nd6 104 32 0 7 1 0 1 1 0 8 0 pkpcb 40 10 0 10 3 2 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1160 12 0 12 3 3 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 553 0 90 30 0 30 30 0 8 1 art_table 32 554 0 90 4 0 4 4 0 8 0 art_node 16 135 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 10 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 164 0 154 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 39 0 22 3 0 3 3 0 8 0 dino2pl 256 5059 0 3593 92 0 92 92 0 8 0 ffsino 240 5059 0 3593 87 0 87 87 0 8 0 nchpl 144 9072 0 8585 63 41 22 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 31829 0 31826 5 4 1 3 0 8 0 vcpupl 2048 29 0 0 4 0 4 4 0 8 0 vmpool 664 36 0 7 4 1 3 3 0 8 0 kstatmem 264 88 0 64 2 0 2 2 0 8 0 scxspl 216 27117 0 27117 13 11 2 8 1 8 2 plimitpl 152 369 0 354 1 0 1 1 0 8 0 sigapl 424 3108 0 3043 8 0 8 8 0 8 0 futexpl 64 27960 0 27958 2 1 1 1 0 8 0 knotepl 120 29053 0 28971 17 14 3 11 0 8 0 kqueuepl 184 549 0 539 10 9 1 4 0 8 0 pipepl 288 746 0 717 21 18 3 11 0 8 0 fdescpl 432 3070 0 3044 4 0 4 4 0 8 0 filepl 120 22122 0 21878 48 34 14 19 0 8 6 lockfpl 104 970 0 967 4 2 2 2 0 8 1 lockfspl 48 237 0 234 1 0 1 1 0 8 0 sessionpl 144 25 0 9 1 0 1 1 0 8 0 pgrppl 48 50 0 34 1 0 1 1 0 8 0 ucredpl 104 2053 0 2035 1 0 1 1 0 8 0 zombiepl 144 3044 0 3043 1 0 1 1 0 8 0 processpl 1008 3108 0 3043 10 1 9 9 0 8 0 procpl 680 7347 0 7263 13 5 8 9 0 8 0 sosppl 168 27 0 27 1 0 1 1 0 8 1 sockpl 456 6783 0 6749 179 164 15 37 0 8 8 sockpl: pool(0xffffffff82c723d0:sockpl): free list modified: page 0xfffffd8067dd5000; item ordinal 0; addr 0xfffffd8067dd57eb (p 0xfffffd8067dd5000); offset 0x0=0x7e3428813796cc7b pool(sockpl): free list modified: page 0xfffffd8067dd5000; item ordinal 0; addr 0xfffffd8067dd57eb (p 0xfffffd8067dd5000); offset 0x0=0xafbeadde sockpl: pool(0xffffffff82c723d0:sockpl): page inconsistency: page 0xfffffd8067dd5000; item ordinal 1; addr 0xd6a4a49acb77d7f9 mcl64k 65536 98 0 98 5 4 1 1 0 8 1 mcl16k 16384 38 0 38 6 5 1 1 0 8 1 mcl12k 12288 112 0 112 6 5 1 1 0 8 1 mcl9k 9216 59 0 59 5 4 1 1 0 8 1 mcl8k 8192 161 0 161 4 3 1 1 0 8 1 mcl4k 4096 376 0 376 6 5 1 2 0 8 1 mcl2k2 2112 15 0 15 6 5 1 1 0 8 1 mcl2k 2048 68437 0 68387 44 36 8 35 0 8 0 mtagpl 96 103 0 103 4 4 0 3 0 8 0 mbufpl 256 129225 0 129087 52 34 18 35 0 8 0 bufpl 288 8340 0 1942 458 0 458 458 0 8 0 anonpl 24 432128 0 420949 112 25 87 109 0 188 0 amapchunkpl 152 90538 0 89738 53 17 36 42 0 158 2 amappl16 200 10368 0 9921 40 14 26 36 0 8 2 amappl15 192 17 0 16 1 0 1 1 0 8 0 amappl14 184 161 0 146 2 1 1 2 0 8 0 amappl13 176 20 0 20 2 2 0 1 0 8 0 amappl12 168 3735 0 3707 2 0 2 2 0 8 0 amappl11 160 54 0 44 1 0 1 1 0 8 0 amappl10 152 34 0 25 1 0 1 1 0 8 0 amappl9 144 178 0 175 1 0 1 1 0 8 0 amappl8 136 237 0 174 3 0 3 3 0 8 0 amappl7 128 72 0 63 1 0 1 1 0 8 0 amappl6 120 237 0 219 1 0 1 1 0 8 0 amappl5 112 233 0 225 1 0 1 1 0 8 0 amappl4 104 559 0 525 2 0 2 2 0 8 0 amappl3 96 18333 0 18258 3 0 3 3 0 8 0 amappl2 88 3425 0 3364 3 1 2 3 0 8 0 amappl1 80 19414 0 18914 21 9 12 21 0 8 0 amappl 88 27545 0 27320 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 3106 0 3051 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3106 0 3051 1 0 1 1 0 8 0 vmmpekpl 168 26777 0 26715 3 0 3 3 0 8 0 vmmpepl 168 198132 0 195933 149 35 114 116 0 357 11 vmsppl 368 3105 0 3051 6 0 6 6 0 8 0 rwobjpl 24 59831 0 52332 47 1 46 46 0 8 0 pdppl 4096 6219 0 6131 222 128 94 94 0 8 6 pvpl 32 1023806 0 1006869 360 199 161 319 0 265 2 pmappl 216 3105 0 3051 5 1 4 4 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1142 0 303 24 0 24 24 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82829855) at panic+0x165 sys/kern/subr_prf.c:198 pool_do_get(ffffffff82c723d0,9,ffff800027fb30c8) at pool_do_get+0x427 sys/kern/subr_pool.c:738 pool_get(ffffffff82c723d0,9) at pool_get+0xb7 sys/kern/subr_pool.c:582 socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 soalloc sys/kern/uipc_socket.c:157 [inline] socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 sys/kern/uipc_socket.c:193 sys_socketpair(ffff8000216d3808,ffff800027fb3230,ffff800027fb3280) at sys_socketpair+0x72 sys/kern/uipc_syscalls.c:474 syscall(ffff800027fb3300) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x403dab5e950, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82829855) at panic+0x165 sys/kern/subr_prf.c:198 pool_do_get(ffffffff82c723d0,9,ffff800027fb30c8) at pool_do_get+0x427 sys/kern/subr_pool.c:738 pool_get(ffffffff82c723d0,9) at pool_get+0xb7 sys/kern/subr_pool.c:582 socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 soalloc sys/kern/uipc_socket.c:157 [inline] socreate(1,ffff800027fb31a0,1,0) at socreate+0xb8 sys/kern/uipc_socket.c:193 sys_socketpair(ffff8000216d3808,ffff800027fb3230,ffff800027fb3280) at sys_socketpair+0x72 sys/kern/uipc_syscalls.c:474 syscall(ffff800027fb3300) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x403dab5e950, count: -8