panic: pool_do_get: sockpl free list modified: page 0xffff800000e46000; item addr 0xffff800000e47001; offset 0x0=0x9a2eb3b573dc5894 != 0x2eb3b573dc58943c Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *428466 53042 0 0 0x4000000 0 syz-executor.1 157260 55032 0 0 0 1 syz-executor.5 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8287db86) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82e12b28,9,ffff800032561cd8) at pool_do_get+0x443 pool_get(ffffffff82e12b28,9) at pool_get+0xf0 sys/kern/subr_pool.c:582 soalloc(ffffffff82b143b8,1) at soalloc+0x58 sys/kern/uipc_socket.c:140 socreate(18,ffff800032561df8,2,0) at socreate+0xac sys/kern/uipc_socket.c:192 sys_socket(ffff80002a22ad40,ffff800032561f50,ffff800032561eb0) at sys_socket+0xdc sys/kern/uipc_syscalls.c:101 syscall(ffff800032561f50) at syscall+0x5b5 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800032561f50) at syscall+0x5b5 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeca6b92eb20, 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 0xffff800000e46000; item addr 0xffff800000e47001; offset 0x0=0x9a2eb3b573dc5894 != 0x2eb3b573dc58943c ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8287db86) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82e12b28,9,ffff800032561cd8) at pool_do_get+0x443 pool_get(ffffffff82e12b28,9) at pool_get+0xf0 sys/kern/subr_pool.c:582 soalloc(ffffffff82b143b8,1) at soalloc+0x58 sys/kern/uipc_socket.c:140 socreate(18,ffff800032561df8,2,0) at socreate+0xac sys/kern/uipc_socket.c:192 sys_socket(ffff80002a22ad40,ffff800032561f50,ffff800032561eb0) at sys_socket+0xdc sys/kern/uipc_syscalls.c:101 syscall(ffff800032561f50) at syscall+0x5b5 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800032561f50) at syscall+0x5b5 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeca6b92eb20, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800032561b20 rbx 0xffffffff82ca8cb7 cpu_info_full_primary+0x2cb7 rdx 0xffff800000e0ffc0 rcx 0xffff80002a22ad40 rax 0xffffffff82ca7ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb66ae25b8ad2fd5a r11 0xc5bf2c676b1ef4ad r12 0xffffffff82ca8ab8 cpu_info_full_primary+0x2ab8 r13 0 r14 0 r15 0x1 rip 0xffffffff81ef391c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800032561b10 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) tid=428466 pid=53042 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=80, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a188808,0xffffffff82e117d8 process=0xffff8000ffff30e8 user=0xffff80003255d000, vmspace=0xfffffd80696fb020 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53042 104408 22214 0 2 0 syz-executor.1 *53042 428466 22214 0 7 0x4000000 syz-executor.1 55032 157260 52226 0 7 0 syz-executor.5 55032 16276 52226 0 3 0x4000080 netio syz-executor.5 55032 180387 52226 0 3 0x4000080 fsleep syz-executor.5 55032 211723 52226 0 3 0x4000080 netio syz-executor.5 73026 112272 28349 0 3 0x80 nanoslp syz-executor.6 73026 164615 28349 0 3 0x4000001 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{0}> show all locks CPU 0: exclusive mutex sockpl r = 0 (0xffffffff82e12b38) #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:140 #5 socreate+0xac sys/kern/uipc_socket.c:192 #6 sys_socket+0xdc sys/kern/uipc_syscalls.c:101 #7 syscall+0x5b5 mi_syscall sys/sys/syscall_mi.h:183 [inline] #7 syscall+0x5b5 sys/arch/amd64/amd64/trap.c:577 #8 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10182 6474K 6611K 166960K 11615 0 pcb 15 11K 12K 166960K 71 0 rtable 234 6K 6K 166960K 356 0 pf 32 9K 10K 166960K 43 0 ifaddr 45 15K 15K 166960K 47 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 4K 166960K 1496 0 iov 2 4K 8K 166960K 17 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1369 86K 86K 166960K 1407 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 257 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 73K 166960K 246 0 sigio 0 0K 0K 166960K 3 0 proc 68 91K 115K 166960K 527 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 6 0 in_multi 99 7K 7K 166960K 102 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 446 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 328 81K 81K 166960K 4974 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 26 52K 108K 166960K 1275 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 12 0K 1K 166960K 28 0 temp 93 6816K 6882K 166960K 5129 0 kqueue 12 18K 24K 166960K 37 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 37 0 34 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 142 0 121 4 0 4 4 0 8 3 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 328 0 328 2 2 0 1 0 8 0 tcpcb 808 15 0 9 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 392 136 0 127 5 0 5 5 0 8 4 nd6 136 24 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 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 23 0 2 1 0 1 1 0 8 0 pfstkey 128 23 0 2 1 0 1 1 0 8 0 pfstate 376 23 0 2 3 0 3 3 0 8 0 pfrule 1344 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 0 29 0 29 29 0 8 0 art_table 32 453 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 semapl 112 188 0 178 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1722 0 194 96 0 96 96 0 8 0 ffsino 272 1722 0 194 102 0 102 102 0 8 0 nchpl 144 2153 0 380 66 0 66 66 0 8 0 uvmvnodes 80 1854 0 0 38 0 38 38 0 8 0 vnodes 216 1854 0 0 103 0 103 103 0 8 0 namei 1024 7708 0 7708 2 1 1 2 0 8 1 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 8158 0 8158 10 2 8 8 1 8 8 plimitpl 152 35 0 18 1 0 1 1 0 8 0 sigapl 424 574 0 529 7 1 6 6 0 8 0 futexpl 64 1421 0 1419 1 0 1 1 0 8 0 knotepl 120 108 0 0 4 0 4 4 0 8 0 kqueuepl 216 38 0 30 1 0 1 1 0 8 0 pipepl 320 159 0 131 3 0 3 3 0 8 0 fdescpl 496 556 0 529 5 0 5 5 0 8 0 filepl 152 2455 0 2208 12 0 12 12 0 8 2 lockfpl 104 28 0 26 1 0 1 1 0 8 0 lockfspl 48 14 0 12 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 28 0 11 1 0 1 1 0 8 0 ucredpl 104 119 0 104 1 0 1 1 0 8 0 zombiepl 144 530 0 529 1 0 1 1 0 8 0 processpl 1136 574 0 529 4 0 4 4 0 8 0 procpl 680 832 0 764 8 1 7 7 0 8 1 sockpl 584 316 0 283 7 0 7 7 0 8 4 sockpl: pool(0xffffffff82e12b28:sockpl): free list modified: page 0xffff800000e46000; item ordinal 0; addr 0xffff800000e47001 (p 0xfffffd8070d38000); offset 0x0=0x9a2eb3b573dc5894 pool(sockpl): free list modified: page 0xffff800000e46000; item ordinal 0; addr 0xffff800000e47001 (p 0xfffffd8070d38000); offset 0x0=0x52deaf41 sockpl: pool(0xffffffff82e12b28:sockpl): page inconsistency: page 0xffff800000e46000; item ordinal 1; addr 0x2275d6a23988e7ca mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 258 0 0 33 0 33 33 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 271 0 0 17 0 17 17 0 8 0 bufpl 280 4517 0 163 311 0 311 311 0 8 0 anonpl 24 252969 0 239877 103 1 102 102 0 186 18 amapchunkpl 152 16916 0 16051 40 0 40 40 0 158 0 amappl16 200 7711 0 7334 32 0 32 32 0 8 7 amappl15 192 104 0 102 1 0 1 1 0 8 0 amappl14 184 180 0 166 2 1 1 2 0 8 0 amappl13 176 15 0 15 2 2 0 1 0 8 0 amappl12 168 1232 0 1204 3 1 2 2 0 8 0 amappl11 160 61 0 47 1 0 1 1 0 8 0 amappl10 152 50 0 39 1 0 1 1 0 8 0 amappl9 144 199 0 198 3 2 1 1 0 8 0 amappl8 136 170 0 121 2 0 2 2 0 8 0 amappl7 128 76 0 64 1 0 1 1 0 8 0 amappl6 120 339 0 318 2 1 1 2 0 8 0 amappl5 112 181 0 166 1 0 1 1 0 8 0 amappl4 104 584 0 541 3 0 3 3 0 8 0 amappl3 96 3348 0 3266 3 0 3 3 0 8 0 amappl2 88 990 0 915 4 2 2 4 0 8 0 amappl1 80 10367 0 9830 22 8 14 22 0 8 1 amappl 88 4391 0 4172 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 557 0 530 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 557 0 530 1 0 1 1 0 8 0 vmmpekpl 168 9513 0 9469 3 0 3 3 0 8 0 vmmpepl 168 60267 0 58078 140 1 139 140 0 357 36 vmsppl 448 556 0 530 5 1 4 4 0 8 0 rwobjpl 56 25568 0 22263 50 1 49 49 0 8 0 pdppl 4096 1121 0 1060 105 36 69 73 0 8 8 pvpl 32 44948 0 0 365 2 363 363 0 265 0 pmappl 248 556 0 530 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 417 0 42 11 0 11 11 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(ffffffff8287db86) at panic+0x17b sys/kern/subr_prf.c:198 pool_do_get(ffffffff82e12b28,9,ffff800032561cd8) at pool_do_get+0x443 pool_get(ffffffff82e12b28,9) at pool_get+0xf0 sys/kern/subr_pool.c:582 soalloc(ffffffff82b143b8,1) at soalloc+0x58 sys/kern/uipc_socket.c:140 socreate(18,ffff800032561df8,2,0) at socreate+0xac sys/kern/uipc_socket.c:192 sys_socket(ffff80002a22ad40,ffff800032561f50,ffff800032561eb0) at sys_socket+0xdc sys/kern/uipc_syscalls.c:101 syscall(ffff800032561f50) at syscall+0x5b5 mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800032561f50) at syscall+0x5b5 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeca6b92eb20, 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 end of kernel end trace frame: 0x7722aded4800, count: 12 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 end of kernel end trace frame: 0x7722aded4800, count: -3