panic: pool_do_get: sockpl free list modified: page 0x0; item addr 0x7ffe00007fa2; offset 0x0=0x0 != 0x7ffe6a8a92f9
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
48964 10246 32767 0x10 0 0 syz-executor
*503336 10246 32767 0x10 0x4000000 1 syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834f64fa) at panic+0x1e5 sys/kern/subr_prf.c:198
pool_do_get(ffffffff83b26df8,9,ffff80003c439bf8) at pool_do_get+0x597 sys/kern/subr_pool.c:747
pool_get(ffffffff83b26df8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1
soalloc(ffffffff837443d0,1) at soalloc+0x69 sys/kern/uipc_socket.c:149
socreate(2,ffff80003c439d10,1,0) at socreate+0xee sys/kern/uipc_socket.c:206
sys_socket(ffff80003c3f0a90,ffff80003c439e60,ffff80003c439db0) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c439e60) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c439e60) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x35c1bb25e80, 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{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
*cpu1: pool_do_get: sockpl free list modified: page 0x0; item addr 0x7ffe00007fa2; offset 0x0=0x0 != 0x7ffe6a8a92f9
ddb{1}> show kasan
No such command
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834f64fa) at panic+0x1e5 sys/kern/subr_prf.c:198
pool_do_get(ffffffff83b26df8,9,ffff80003c439bf8) at pool_do_get+0x597 sys/kern/subr_pool.c:747
pool_get(ffffffff83b26df8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1
soalloc(ffffffff837443d0,1) at soalloc+0x69 sys/kern/uipc_socket.c:149
socreate(2,ffff80003c439d10,1,0) at socreate+0xee sys/kern/uipc_socket.c:206
sys_socket(ffff80003c3f0a90,ffff80003c439e60,ffff80003c439db0) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c439e60) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c439e60) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x35c1bb25e80, count: -9
ddb{1}> show registers
rdi 0
rsi 0x1
rbp 0xffff80003c439a20
rbx 0xffff80002999ee07
rdx 0xffff8000015b9e40
rcx 0xffff80003c3f0a90
rax 0xffff80002999dff0
r8 0x101010101010101
r9 0x8080808080808080
r10 0x9a3fd789e51b767
r11 0xf7edba5d70e949a
r12 0xffff80002999ec08
r13 0
r14 0
r15 0x1
rip 0xffffffff8321d685 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80003c439a10
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor) tid=503336 pid=10246 tcnt=2 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80003c3f0fc0,0xffffffff83b44960
process=0xffff80003b3b5830 user=0xffff80003c434000, vmspace=0xfffffc006cebc9b8
estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0
ddb{1}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
10246 48964 81121 32767 7 0x10 0 syz-executor
*10246 503336 81121 32767 7 0x10 0x4000000 syz-executor
48577 105949 96382 32767 2 0x10 0xc80 syz-executor
48577 136093 96382 32767 3 0x10 0x4000080 fifor syz-executor
48577 88634 96382 32767 3 0x10 0x4000080 fsleep syz-executor
66776 418064 53369 32767 2 0x10 0xc80 syz-executor
66776 250292 53369 32767 3 0x10 0x4000080 lockf syz-executor
66776 106182 53369 32767 3 0x10 0x4000080 fsleep syz-executor
66776 240466 53369 32767 3 0x10 0x4000080 fsleep syz-executor
7276 484667 39804 32767 3 0x10 0x80 nanoslp syz-executor
7276 310355 39804 32767 3 0x10 0x4000080 piperd syz-executor
7276 121207 39804 32767 3 0x10 0x4000080 piperd syz-executor
7276 46919 39804 32767 3 0x10 0x4000080 fsleep syz-executor
43199 75451 60542 32767 3 0x10 0x80 nanoslp syz-executor
43199 114951 60542 32767 3 0x10 0x4000080 kqread syz-executor
43199 16867 60542 32767 3 0x10 0x4000080 fsleep syz-executor
73689 307457 16476 32767 3 0x10 0x80 nanoslp syz-executor
73689 93628 16476 32767 3 0x10 0x4000080 fsleep syz-executor
73689 384587 16476 32767 3 0x10 0x4000080 fsleep syz-executor
73689 105478 16476 32767 3 0x10 0x4000080 kqread syz-executor
74233 52932 89760 32767 3 0x10 0x80 nanoslp syz-executor
90890 142252 16655 32767 3 0x10 0x80 wait syz-executor
39804 433310 90071 32767 3 0x10 0x80 nanoslp syz-executor
16476 410099 40154 32767 3 0x10 0x80 nanoslp syz-executor
60542 21380 19264 32767 3 0x10 0x80 nanoslp syz-executor
96382 66782 20750 32767 3 0x10 0x80 nanoslp syz-executor
81121 101226 38105 32767 3 0x10 0x80 nanoslp syz-executor
53369 320336 7063 32767 3 0x10 0x80 nanoslp syz-executor
89760 348934 45246 0 3 0x2 0x80 wait syz-executor
16655 67645 45246 0 3 0x2 0x80 wait syz-executor
20750 371859 45246 0 3 0x2 0x80 wait syz-executor
90071 13316 45246 0 3 0x2 0x80 wait syz-executor
40154 141510 45246 0 3 0x2 0x80 wait syz-executor
38105 183915 45246 0 3 0x2 0x80 wait syz-executor
7063 170106 45246 0 3 0x2 0x80 wait syz-executor
19264 503469 45246 0 3 0x2 0x80 wait syz-executor
45246 196664 78828 0 3 0x2 0x80 kqread syz-executor
78828 204888 61371 0 3 0x100002 0x88 sigsusp ksh
61371 476935 13389 0 3 0x10 0x88 kqread sshd-session
13389 521070 1962 0 3 0x12 0x80 kqread sshd-session
93012 392647 1 0 3 0x100003 0x80 ttyin getty
1962 391085 1 0 3 0 0x88 kqread sshd
87619 306234 51919 73 2 0x1100010 0x80 syslogd
51919 196906 1 0 3 0x100002 0x80 sbwait syslogd
98725 399999 1 0 3 0x100000 0x80 kqread resolvd
69104 422279 349 77 3 0x100012 0x80 kqread dhcpleased
9597 408000 349 77 3 0x100012 0x80 kqread dhcpleased
349 456290 1 0 3 0 0x80 kqread dhcpleased
98431 473343 0 0 3 0x14000 0x200 bored smr
99553 168014 0 0 3 0x14000 0x200 pgzero zerothread
54422 308373 0 0 3 0x14000 0x200 aiodoned aiodoned
91857 251804 0 0 3 0x14000 0x200 syncer update
1310 351006 0 0 3 0x14000 0x200 cleaner cleaner
1921 470459 0 0 3 0x14000 0x200 reaper reaper
55248 108429 0 0 3 0x14000 0x200 pgdaemon pagedaemon
70052 50489 0 0 3 0x14000 0x200 bored viomb
57285 99669 0 0 3 0x14000 0x40000200 acpi0 acpi0
44484 245573 0 0 3 0x14000 0x40000200 idle1
29308 428249 0 0 3 0x14000 0x200 bored softnet1
82683 294980 0 0 3 0x14000 0x200 bored softnet0
59772 129423 0 0 3 0x14000 0x200 bored systqmp
27821 364985 0 0 3 0x14000 0x200 bored systq
50480 33670 0 0 3 0x14000 0x200 tmoslp softclockmp
69925 257068 0 0 3 0x14000 0x40000200 tmoslp softclock
73699 507703 0 0 3 0x14000 0x40000200 idle0
1 471998 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb{1}> show all locks
CPU 1:
exclusive mutex sockpl r = 0 (0xffffffff83b26e10)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487
#2 pool_get+0x124 sys/kern/subr_pool.c:585
#3 soalloc+0x69 sys/kern/uipc_socket.c:149
#4 socreate+0xee sys/kern/uipc_socket.c:206
#5 sys_socket+0x124 sys/kern/uipc_syscalls.c:102
#6 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#6 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
#7 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11056 12019K 12034K 166960K 12147 0
pcb 17 12K 12K 166960K 17 0
rtable 245 6K 7K 166960K 414 0
pf 31 16K 16K 166960K 31 0
ifaddr 42 7K 7K 166960K 44 0
ifgroup 50 2K 2K 166960K 50 0
sysctl 3 1K 9K 166960K 8 0
counters 70 37K 37K 166960K 70 0
ioctlops 0 0K 4K 166960K 49 0
iov 0 0K 12K 166960K 42 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1289 81K 81K 166960K 1583 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 3 5K 9K 166960K 24 0
VM map 2 1K 1K 166960K 2 0
sem 27 1K 2K 166960K 154 0
dirhash 12 2K 2K 166960K 21 0
ACPI 1734 201K 291K 166960K 11964 0
file desc 26 97K 121K 166960K 734 0
sigio 0 0K 0K 166960K 12 0
proc 58 99K 147K 166960K 630 0
subproc 72 4K 4K 166960K 72 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 1 0K 0K 166960K 185 0
in_multi 101 6K 6K 166960K 112 0
ether_multi 1 0K 0K 166960K 3 0
mrt 0 0K 0K 166960K 17 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 97 440K 440K 166960K 97 0
exec 0 0K 1K 166960K 418 0
fusefs mount 1 32K 32K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 281 160K 181K 166960K 8557 0
UVM aobj 131 6K 6K 166960K 139 0
pinsyscall 47 94K 110K 166960K 1874 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 43 0
NDP 11 0K 2K 166960K 27 0
temp 51 9121K 9157K 166960K 5183 0
kqueue 18 30K 38K 166960K 185 0
SYN cache 2 16K 16K 166960K 2 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 28 0 0 1 0 1 1 0 8 0
rtpcb 120 106 0 103 1 0 1 1 0 8 0
rtentry 176 117 0 3 6 0 6 6 0 8 0
unpcb 144 593 0 513 4 0 4 4 0 8 0
syncache 336 16 0 16 1 0 1 1 0 8 1
tcpcb 736 404 0 394 7 3 4 7 0 8 2
arp 136 19 0 0 1 0 1 1 0 8 0
ipq 40 7 0 1 1 0 1 1 0 8 0
ipqe 40 11 0 5 1 0 1 1 0 8 0
inpcb 328 932 0 911 8 3 5 8 0 8 3
ip6q 80 1 0 0 1 0 1 1 0 8 0
ip6af 40 1 0 0 1 0 1 1 0 8 0
nd6 152 29 0 2 2 0 2 2 0 8 0
kcovpl 48 8 0 0 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 512 0 30 32 0 32 32 0 8 0
art_table 40 513 0 30 6 0 6 6 0 8 0
art_node 32 117 0 13 1 0 1 1 0 8 0
sysvmsgpl 40 17 0 7 1 0 1 1 0 8 0
semapl 72 151 0 126 1 0 1 1 0 8 0
shmpl 112 136 0 8 4 0 4 4 0 8 0
dirhash 1024 23 0 6 3 0 3 3 0 8 0
dino2pl 256 2630 0 1159 93 0 93 93 0 8 0
ffsino 296 2630 0 1159 114 0 114 114 0 8 0
nchpl 144 3714 0 2020 63 0 63 63 0 8 0
vnodes 216 2711 0 0 151 0 151 151 0 8 0
namei 1024 11990 0 11990 2 1 1 2 0 8 1
percpumem 16 51 0 0 1 0 1 1 0 8 0
kstatmem 264 25 0 0 2 0 2 2 0 8 0
scxspl 216 12172 0 12172 10 6 4 8 1 8 4
plimitpl 152 350 0 324 2 0 2 2 0 8 0
sigapl 424 1041 0 987 7 0 7 7 0 8 0
knotepl 120 534 0 0 17 0 17 17 0 8 0
kqueuepl 224 382 0 367 5 0 5 5 0 8 4
pipepl 344 198 0 170 4 1 3 4 0 8 0
fdescpl 528 1025 0 987 3 0 3 3 0 8 0
filepl 160 5898 0 5605 15 0 15 15 0 8 2
lockfpl 104 197 0 192 1 0 1 1 0 8 0
lockfspl 48 72 0 68 1 0 1 1 0 8 0
sessionpl 144 93 0 77 1 0 1 1 0 8 0
pgrppl 48 111 0 87 1 0 1 1 0 8 0
ucredpl 104 1541 0 1522 1 0 1 1 0 8 0
zombiepl 144 989 0 987 1 0 1 1 0 8 0
processpl 1232 1041 0 987 5 0 5 5 0 8 0
procpl 664 2117 0 2049 7 0 7 7 0 8 1
sosppl 176 12 0 12 1 0 1 1 0 8 1
sockpl 752 1640 0 1535 12 1 11 12 0 8 0
sockpl: pool(0xffffffff83b26df8:sockpl): page inconsistency: page 0x0; at page head addr 0xffff800001643f90 (p 0xffff800001642000)
mcl64k 65536 4 0 0 1 0 1 1 0 8 0
mcl16k 16384 2 0 0 1 0 1 1 0 8 0
mcl9k128 9344 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 4 0 0 1 0 1 1 0 8 0
mcl4k 4096 111 0 0 14 0 14 14 0 8 0
mcl2k 2048 26 0 0 4 0 4 4 0 8 0
mextrefs 64 19 0 0 1 0 1 1 0 8 0
mtagpl 96 1 0 0 1 0 1 1 0 8 0
mbufpl 256 2234 0 0 140 0 140 140 0 8 0
bufpl 272 3673 0 109 238 0 238 238 0 8 0
anonpl 32 9337 0 0 76 0 76 76 0 247 0
amapchunkpl 152 28793 0 28134 38 2 36 38 0 158 10
amappl16 200 2751 0 2722 17 6 11 15 0 8 8
amappl15 192 10 0 8 1 0 1 1 0 8 0
amappl14 184 415 0 414 1 0 1 1 0 8 0
amappl13 176 141 0 131 1 0 1 1 0 8 0
amappl12 168 1270 0 1233 2 0 2 2 0 8 0
amappl11 160 14 0 12 1 0 1 1 0 8 0
amappl10 152 71 0 61 1 0 1 1 0 8 0
amappl9 144 274 0 274 1 1 0 1 0 8 0
amappl8 136 96 0 95 1 0 1 1 0 8 0
amappl7 128 165 0 154 1 0 1 1 0 8 0
amappl6 120 155 0 153 1 0 1 1 0 8 0
amappl5 112 117 0 109 1 0 1 1 0 8 0
amappl4 104 287 0 270 1 0 1 1 0 8 0
amappl3 96 4881 0 4755 5 1 4 4 0 8 0
amappl2 88 1188 0 1110 3 0 3 3 0 8 1
amappl1 80 14215 0 13648 16 0 16 16 0 8 3
amappl 88 7721 0 7505 5 0 5 5 0 92 0
uvmvnodes 80 126 0 0 3 0 3 3 0 8 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 138 0 8 3 0 3 3 0 8 0
uaddrrnd 24 1025 0 987 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1025 0 987 1 0 1 1 0 8 0
vmmpekpl 168 10472 0 10435 3 0 3 3 0 8 0
vmmpepl 168 74170 0 72017 106 0 106 106 0 357 9
vmsppl 488 1024 0 987 7 1 6 6 0 8 0
rwobjpl 80 23060 0 21908 26 0 26 26 0 8 2
pdppl 4096 2057 0 1974 113 26 87 95 0 8 4
pvpl 32 16121 0 0 131 0 131 131 0 265 0
pmappl 256 1024 0 987 4 1 3 3 0 8 0
extentpl 40 46 0 28 1 0 1 1 0 8 0
phpool 112 658 0 33 18 0 18 18 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
x86_ipi_db(ffffffff839c2ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
end of kernel
end trace frame: 0x7468ee2ed390, count: 12
ddb{0}> trace
x86_ipi_db(ffffffff839c2ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
end of kernel
end trace frame: 0x7468ee2ed390, count: -3
ddb{0}> machine ddbcpu 1
Stopped at db_enter+0x25: addq $0x8,%rsp
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834f64fa) at panic+0x1e5 sys/kern/subr_prf.c:198
pool_do_get(ffffffff83b26df8,9,ffff80003c439bf8) at pool_do_get+0x597 sys/kern/subr_pool.c:747
pool_get(ffffffff83b26df8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1
soalloc(ffffffff837443d0,1) at soalloc+0x69 sys/kern/uipc_socket.c:149
socreate(2,ffff80003c439d10,1,0) at socreate+0xee sys/kern/uipc_socket.c:206
sys_socket(ffff80003c3f0a90,ffff80003c439e60,ffff80003c439db0) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c439e60) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c439e60) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x35c1bb25e80, count: 6
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834f64fa) at panic+0x1e5 sys/kern/subr_prf.c:198
pool_do_get(ffffffff83b26df8,9,ffff80003c439bf8) at pool_do_get+0x597 sys/kern/subr_pool.c:747
pool_get(ffffffff83b26df8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1
soalloc(ffffffff837443d0,1) at soalloc+0x69 sys/kern/uipc_socket.c:149
socreate(2,ffff80003c439d10,1,0) at socreate+0xee sys/kern/uipc_socket.c:206
sys_socket(ffff80003c3f0a90,ffff80003c439e60,ffff80003c439db0) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c439e60) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c439e60) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x35c1bb25e80, count: -9