panic: pool_do_get: sockpl free list modified: page 0xffff800000e7c000; item addr 0xffff800000e7dcb1; offset 0x0=0xa6810263f34df9b8 != 0x810263f34df9b86c Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *232577 28585 0 0x8000000 0x4000000 0 syz-executor.0 275110 10285 0 0x14000 0x200 1 zerothread db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82886bc6) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d9f100,9,ffff80003315cd78) at pool_do_get+0x443 pool_get(ffffffff82d9f100,9) at pool_get+0xf0 sys/kern/subr_pool.c:582 soalloc(ffffffff829abbe8,1) at soalloc+0x58 sys/kern/uipc_socket.c:141 socreate(18,ffff80003315ce98,2,0) at socreate+0xaf sys/kern/uipc_socket.c:198 sys_socket(ffff80002f0c2cf8,ffff80003315cff0,ffff80003315cf40) at sys_socket+0xdc sys/kern/uipc_syscalls.c:101 syscall(ffff80003315cff0) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80003315cff0) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xca4861b400, 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: sockpl free list modified: page 0xffff800000e7c000; item addr 0xffff800000e7dcb1; offset 0x0=0xa6810263f34df9b8 != 0x810263f34df9b86c ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82886bc6) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d9f100,9,ffff80003315cd78) at pool_do_get+0x443 pool_get(ffffffff82d9f100,9) at pool_get+0xf0 sys/kern/subr_pool.c:582 soalloc(ffffffff829abbe8,1) at soalloc+0x58 sys/kern/uipc_socket.c:141 socreate(18,ffff80003315ce98,2,0) at socreate+0xaf sys/kern/uipc_socket.c:198 sys_socket(ffff80002f0c2cf8,ffff80003315cff0,ffff80003315cf40) at sys_socket+0xdc sys/kern/uipc_syscalls.c:101 syscall(ffff80003315cff0) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80003315cff0) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xca4861b400, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003315cbc0 rbx 0xffffffff82ce1cdf cpu_info_full_primary+0x2cdf rdx 0xffff800000e06680 rcx 0xffff80002f0c2cf8 rax 0xffffffff82ce0ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xdaed1ef1815b87b0 r11 0xbc642e3ae4c9daaf r12 0xffffffff82ce1ae0 cpu_info_full_primary+0x2ae0 r13 0 r14 0 r15 0x1 rip 0xffffffff81da6d9c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80003315cbb0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) tid=232577 pid=28585 tcnt=2 stat=onproc flags process=8000000 proc=4000000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002f0c3218,0xffffffff82e11968 process=0xffff80002a2948f8 user=0xffff800033158000, vmspace=0xfffffd806c649c18 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 28585 1655 73167 0 2 0x8000000 syz-executor.0 *28585 232577 73167 0 7 0xc000000 syz-executor.0 83103 76813 9718 0 3 0x8000001 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{0}> show all locks CPU 0: exclusive mutex sockpl r = 0 (0xffffffff82d9f110) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1187 #1 mtx_enter_try+0x103 #2 mtx_enter+0x4e sys/kern/kern_lock.c:266 #3 pool_get+0xc4 sys/kern/subr_pool.c:579 #4 soalloc+0x58 sys/kern/uipc_socket.c:141 #5 socreate+0xaf sys/kern/uipc_socket.c:198 #6 sys_socket+0xdc sys/kern/uipc_syscalls.c:101 #7 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] #7 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 #8 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10187 6428K 6880K 166960K 13101 0 pcb 19 14K 15K 166960K 384 0 rtable 253 8K 9K 166960K 883 0 pf 32 9K 10K 166960K 138 0 ifaddr 46 16K 16K 166960K 130 0 ifgroup 57 2K 2K 166960K 228 0 sysctl 4 1K 1K 166960K 6 0 counters 66 36K 36K 166960K 142 0 ioctlops 0 0K 4K 166960K 1568 0 iov 0 0K 16K 166960K 156 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1410 89K 89K 166960K 2536 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 36 0 VM map 2 1K 1K 166960K 2 0 sem 22 1K 1K 166960K 136 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 12 41K 85K 166960K 2021 0 sigio 0 0K 0K 166960K 47 0 proc 60 79K 103K 166960K 951 0 subproc 104 6K 7K 166960K 275 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 258 0 in_multi 99 7K 7K 166960K 309 0 ether_multi 1 0K 0K 166960K 10 0 mrt 2 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 670 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 244 99K 109K 166960K 20268 0 UVM aobj 60 4K 4K 166960K 66 0 pinsyscall 32 64K 100K 166960K 3506 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 173 0 NDP 12 0K 2K 166960K 92 0 temp 79 6820K 6948K 166960K 51849 0 kqueue 13 20K 28K 166960K 377 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 322 0 319 4 1 3 3 0 8 2 rtentry 112 286 0 170 5 1 4 4 0 8 0 unpcb 144 1792 0 1779 19 15 4 6 0 8 3 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 109 0 109 3 3 0 1 0 8 0 tcpcb 808 810 0 805 28 21 7 8 0 8 6 arp 120 49 0 31 1 0 1 1 0 8 0 inpcb 384 2964 0 2953 46 38 8 12 0 8 6 nd6 136 75 0 48 2 0 2 2 0 8 0 pkpcb 40 8 0 8 4 3 1 1 0 8 1 kcovpl 48 21 0 13 1 0 1 1 0 8 0 pffrag 232 42 0 37 2 1 1 1 0 482 0 pffrnode 88 39 0 34 2 1 1 1 0 8 0 pffrent 40 1211 0 1206 2 1 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 121 0 90 1 0 1 1 0 8 0 pfstkey 128 121 0 90 2 0 2 2 0 8 0 pfstate 376 121 0 90 6 2 4 4 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 1073 0 607 35 5 30 30 0 8 0 art_table 32 1074 0 607 4 0 4 4 0 8 0 art_node 16 279 0 178 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 1 0 1 1 0 8 0 semupl 112 4 0 4 1 0 1 1 0 8 1 semapl 112 132 0 112 1 0 1 1 0 8 0 shmpl 112 63 0 7 2 0 2 2 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 4488 0 2974 96 0 96 96 0 8 0 ffsino 272 4488 0 2974 102 0 102 102 0 8 0 nchpl 144 7478 0 5738 67 0 67 67 0 8 0 uvmvnodes 80 5339 0 0 109 0 109 109 0 8 0 vnodes 216 5339 0 0 297 0 297 297 0 8 0 namei 1024 26351 0 26351 4 3 1 2 0 8 1 percpumem 16 85 0 38 1 0 1 1 0 8 0 vcpupl 3904 7 0 0 1 0 1 1 0 8 0 vmpool 696 28 0 21 1 0 1 1 0 8 0 kstatmem 264 100 0 76 2 0 2 2 0 8 0 scsiplug 72 9 0 9 2 2 0 1 0 8 0 scxspl 216 38598 0 38598 12 11 1 8 1 8 1 plimitpl 152 457 0 440 1 0 1 1 0 8 0 sigapl 424 2301 0 2256 6 0 6 6 0 8 0 futexpl 64 25704 0 25704 1 0 1 1 0 8 1 knotepl 120 984 0 0 26 0 26 26 0 8 0 kqueuepl 216 815 0 806 7 5 2 3 0 8 1 pipepl 320 558 0 530 9 6 3 6 0 8 0 fdescpl 496 2280 0 2257 6 2 4 5 0 8 0 filepl 152 15890 0 15647 30 14 16 17 0 8 3 lockfpl 104 364 0 362 1 0 1 1 0 8 0 lockfspl 48 172 0 170 1 0 1 1 0 8 0 sessionpl 144 38 0 22 1 0 1 1 0 8 0 pgrppl 48 66 0 50 1 0 1 1 0 8 0 ucredpl 104 2152 0 2140 1 0 1 1 0 8 0 zombiepl 144 2258 0 2256 2 1 1 1 0 8 0 processpl 1136 2301 0 2256 4 0 4 4 0 8 0 procpl 656 4901 0 4839 7 0 7 7 0 8 0 srpgc 96 6 0 6 2 1 1 1 0 8 1 sosppl 168 17 0 17 6 5 1 1 0 8 1 sockpl 664 5158 0 5131 63 53 10 17 0 8 7 sockpl: pool(0xffffffff82d9f100:sockpl): free list modified: page 0xffff800000e7c000; item ordinal 0; addr 0xffff800000e7dcb1 (p 0xffff800000e7c000); offset 0x0=0xa6810263f34df9b8 pool(sockpl): free list modified: page 0xffff800000e7c000; item ordinal 0; addr 0xffff800000e7dcb1 (p 0xffff800000e7c000); offset 0x0=0xaddeafbe sockpl: pool(0xffffffff82d9f100:sockpl): page inconsistency: page 0xffff800000e7c000; item ordinal 1; addr 0x706ad819d6edf141 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 420 0 0 53 0 53 53 0 8 0 mtagpl 96 77 0 0 2 0 2 2 0 8 0 mbufpl 256 1732 0 0 98 0 98 98 0 8 0 bufpl 280 10131 0 2833 522 0 522 522 0 8 0 anonpl 24 390016 0 384336 141 93 48 93 0 186 0 amapchunkpl 152 65978 0 65432 67 37 30 41 0 158 2 amappl16 200 8439 0 8313 44 32 12 22 0 8 3 amappl15 192 18 0 18 1 1 0 1 0 8 0 amappl14 184 224 0 213 2 1 1 2 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 3131 0 3106 2 0 2 2 0 8 0 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 72 0 63 1 0 1 1 0 8 0 amappl9 144 212 0 212 1 1 0 1 0 8 0 amappl8 136 167 0 131 2 0 2 2 0 8 0 amappl7 128 55 0 40 1 0 1 1 0 8 0 amappl6 120 540 0 525 2 1 1 2 0 8 0 amappl5 112 216 0 204 1 0 1 1 0 8 0 amappl4 104 639 0 604 2 0 2 2 0 8 0 amappl3 96 12770 0 12717 3 0 3 3 0 8 0 amappl2 88 2690 0 2627 4 2 2 4 0 8 0 amappl1 80 16232 0 15751 22 10 12 22 0 8 0 amappl 88 19532 0 19378 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 65 0 6 2 0 2 2 0 8 0 uaddrrnd 24 2308 0 2278 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2308 0 2278 1 0 1 1 0 8 0 vmmpekpl 168 20819 0 20756 4 0 4 4 0 8 1 vmmpepl 168 155882 0 154254 137 43 94 114 0 357 3 vmsppl 440 2307 0 2278 5 0 5 5 0 8 1 rwobjpl 56 47668 0 41241 95 3 92 92 0 8 0 pdppl 4096 4623 0 4563 187 115 72 75 0 8 12 pvpl 32 48527 0 0 393 1 392 392 0 265 0 pmappl 248 2307 0 2278 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 616 0 147 14 0 14 14 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(ffffffff82886bc6) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82d9f100,9,ffff80003315cd78) at pool_do_get+0x443 pool_get(ffffffff82d9f100,9) at pool_get+0xf0 sys/kern/subr_pool.c:582 soalloc(ffffffff829abbe8,1) at soalloc+0x58 sys/kern/uipc_socket.c:141 socreate(18,ffff80003315ce98,2,0) at socreate+0xaf sys/kern/uipc_socket.c:198 sys_socket(ffff80002f0c2cf8,ffff80003315cff0,ffff80003315cf40) at sys_socket+0xdc sys/kern/uipc_syscalls.c:101 syscall(ffff80003315cff0) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80003315cff0) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xca4861b400, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800029cebff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x38 sys/dev/kcov.c:164 msleep(ffffffff82e7314c,ffffffff82e732d0,7f,ffffffff82898c5f,0) at msleep+0x3e sys/kern/kern_synch.c:213 uvm_pagezero_thread(ffff80002a148298) at uvm_pagezero_thread+0xc0 sys/uvm/uvm_pmemrange.c:2171 end trace frame: 0x0, count: 9 ddb{1}> trace x86_ipi_db(ffff800029cebff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x38 sys/dev/kcov.c:164 msleep(ffffffff82e7314c,ffffffff82e732d0,7f,ffffffff82898c5f,0) at msleep+0x3e sys/kern/kern_synch.c:213 uvm_pagezero_thread(ffff80002a148298) at uvm_pagezero_thread+0xc0 sys/uvm/uvm_pmemrange.c:2171 end trace frame: 0x0, count: -6