panic: pool_do_get: shmpl free list modified: page 0xfffffa0068598000; item addr 0xfffffa00685984d0; offset 0x40=0x6a2bd288 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *409239 74358 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834784ec) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a42d20,2,ffff8000370e7268) at pool_do_get+0x5bc pool_get(ffffffff83a42d20,2) at pool_get+0x11a sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80002a766d08,ffff8000370e74b0,9d,ffff8000370e7400) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80002a766d08,ffff8000370e74b0,ffff8000370e7400) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff8000370e74b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000370e74b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x83e5c021970, 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: shmpl free list modified: page 0xfffffa0068598000; item addr 0xfffffa00685984d0; offset 0x40=0x6a2bd288 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834784ec) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a42d20,2,ffff8000370e7268) at pool_do_get+0x5bc pool_get(ffffffff83a42d20,2) at pool_get+0x11a sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80002a766d08,ffff8000370e74b0,9d,ffff8000370e7400) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80002a766d08,ffff8000370e74b0,ffff8000370e7400) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff8000370e74b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000370e74b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x83e5c021970, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000370e70d0 rbx 0xfffffa00685984d0 rdx 0xffff8000015f55c0 rcx 0 rax 0xffff80002a766d08 r8 0x101010101010101 r9 0x8080808080808080 r10 0x4f5cc126bc8f06f1 r11 0xab6f35ce8aa1c720 r12 0 r13 0xffffffff83a42d20 shm_pool r14 0 r15 0x1 rip 0xffffffff81dca635 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000370e70c0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=409239 pid=74358 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f0b0038,0xffff80002f0b0578 process=0xffff80002a744488 user=0xffff8000370e2000, vmspace=0xfffffa007ec5fa10 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95156 35066 44618 0 2 0 syz-executor 95156 224899 44618 0 3 0x4000080 fsleep syz-executor 4556 97137 23712 0 2 0 syz-executor 4556 240285 23712 0 3 0x4000080 fsleep syz-executor 74358 158398 11300 0 2 0 syz-executor *74358 409239 11300 0 7 0x4000000 syz-executor 44520 439935 75976 0 2 0x102004 sh 19423 372869 86404 0 2 0 syz-executor 19423 149450 86404 0 3 0x4000080 fsleep syz-executor 81066 278848 53636 0 2 0 syz-executor 81066 32660 53636 0 3 0x4000080 fsleep syz-executor 81066 471287 53636 0 3 0x4000080 fsleep syz-executor 81066 20110 53636 0 3 0x4000080 fsleep syz-executor 86575 422883 14021 0 2 0 syz-executor 86575 100335 14021 0 3 0x4000080 fsleep syz-executor 86575 409611 14021 0 3 0x4000080 fsleep syz-executor 84880 79485 18948 0 2 0 syz-executor 84880 371851 18948 0 3 0x4000080 fsleep syz-executor 84880 357404 18948 0 3 0x4000080 fsleep syz-executor 84880 165720 18948 0 3 0x4000080 fsleep syz-executor 75976 350300 52452 0 3 0x10008a sigsusp sh 52452 472704 33685 0 3 0x82 wait syz-executor 86404 408192 33685 0 3 0x82 nanoslp syz-executor 59474 271326 1 0 3 0x80 nanoslp init 14021 522309 33685 0 3 0x82 nanoslp syz-executor 11300 58542 33685 0 3 0x82 nanoslp syz-executor 23712 211941 33685 0 2 0xc82 syz-executor 18948 181051 33685 0 3 0x82 nanoslp syz-executor 53636 490114 33685 0 2 0xc82 syz-executor 44618 419656 33685 0 2 0xc82 syz-executor 33685 253999 1 0 3 0x82 kqread syz-executor 19001 494376 0 0 3 0x14200 bored smr 54290 167026 0 0 2 0x14200 zerothread 94316 10935 0 0 3 0x14200 aiodoned aiodoned 526 200261 0 0 3 0x14200 syncer update 86513 147081 0 0 3 0x14200 cleaner cleaner 44350 363516 0 0 3 0x14200 reaper reaper 81202 381143 0 0 3 0x14200 pgdaemon pagedaemon 26806 196382 0 0 3 0x14200 bored viomb 93296 368926 0 0 3 0x40014200 acpi0 acpi0 50573 206912 0 0 3 0x14200 bored softnet0 49217 344070 0 0 3 0x14200 bored systqmp 36452 350111 0 0 3 0x14200 bored systq 64974 71495 0 0 3 0x40014200 tmoslp softclock 82394 145467 0 0 3 0x40014200 idle0 1 181831 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11038 12114K 12579K 166960K 12981 0 pcb 18 13K 14K 166960K 146 0 rtable 188 7K 10K 166960K 1104 0 pf 37 14K 73K 166960K 194 0 ifaddr 37 6K 7K 166960K 169 0 ifgroup 59 2K 2K 166960K 217 0 sysctl 4 1K 9K 166960K 12 0 counters 35 18K 18K 166960K 87 0 ioctlops 0 0K 4K 166960K 229 0 iov 0 0K 12K 166960K 87 0 mount 1 1K 1K 166960K 1 0 log 1 0K 0K 166960K 5 0 vnodes 1421 89K 90K 166960K 2278 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 36 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 69K 89K 166960K 999 0 sigio 0 0K 0K 166960K 11 0 proc 11 17K 91K 166960K 1194 0 subproc 72 4K 4K 166960K 270 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 113 0 in_multi 76 5K 7K 166960K 364 0 ether_multi 1 0K 0K 166960K 5 0 mrt 1 0K 0K 166960K 27 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 1 0K 1K 166960K 787 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 138 79K 160K 166960K 9683 0 UVM aobj 12 4K 4K 166960K 14 0 pinsyscall 20 40K 92K 166960K 2674 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 91 0 NDP 13 0K 2K 166960K 122 0 temp 54 9112K 9173K 166960K 30571 0 kqueue 1 2K 26K 166960K 116 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 124 0 123 1 0 1 1 0 8 0 rtentry 136 370 0 296 4 0 4 4 0 8 0 unpcb 144 275 0 274 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 218 0 214 7 0 7 7 0 8 6 arp 96 62 0 49 1 0 1 1 0 8 0 ipq 40 5 0 3 1 0 1 1 0 8 0 ipqe 40 6 0 4 1 0 1 1 0 8 0 inpcb 328 707 0 702 10 1 9 10 0 8 8 ip6q 72 3 0 1 1 0 1 1 0 8 0 ip6af 40 6 0 4 1 0 1 1 0 8 0 nd6 112 94 0 76 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 30 0 22 1 0 1 1 0 8 0 ppxss 1072 24 0 24 2 1 1 1 0 8 1 pppxif 1416 2 0 2 1 0 1 1 0 8 1 pfstscr 40 8 0 4 1 0 1 1 0 8 0 pfrktable 1344 5 0 5 1 0 1 1 0 8 1 pfstlim 224 33 0 32 1 0 1 1 0 8 0 pfanchor 1288 4 0 2 1 0 1 1 0 8 0 pftag 88 2 0 1 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 4 1 0 1 1 0 8 0 pfstate 384 4 0 2 1 0 1 1 0 8 0 pfrule 1360 12 0 12 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1555 0 1204 34 1 33 34 0 8 7 art_table 40 1556 0 1204 6 0 6 6 0 8 0 art_node 32 369 0 303 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 3 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 72 32 0 22 1 0 1 1 0 8 0 shmpl 112 11 0 2 1 0 1 1 0 8 0 pool(0xffffffff83a42d20:shmpl): page inconsistency: page 0xfffffa0068598000; 25 on list, 9 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2741 0 1242 94 0 94 94 0 8 0 ffsino 256 2741 0 1242 94 0 94 94 0 8 0 nchpl 144 3697 0 1915 67 0 67 67 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 3429 0 0 191 0 191 191 0 8 0 namei 1024 14320 0 14318 7 2 5 5 0 8 4 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 kstatmem 264 123 0 96 2 0 2 2 0 8 0 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 13462 0 13462 10 2 8 8 1 8 8 plimitpl 152 121 0 111 1 0 1 1 0 8 0 sigapl 424 1275 0 1241 9 1 8 8 0 8 3 knotepl 120 29492 0 29475 35 25 10 22 0 8 8 kqueuepl 184 198 0 196 2 1 1 2 0 8 0 pipepl 304 280 0 253 5 0 5 5 0 8 2 fdescpl 448 1242 0 1221 5 1 4 5 0 8 0 filepl 120 6173 0 6012 11 0 11 11 0 8 3 lockfpl 104 252 0 250 1 0 1 1 0 8 0 lockfspl 48 84 0 82 1 0 1 1 0 8 0 sessionpl 144 70 0 68 1 0 1 1 0 8 0 pgrppl 48 107 0 97 1 0 1 1 0 8 0 ucredpl 104 1074 0 1070 1 0 1 1 0 8 0 zombiepl 144 1603 0 1603 2 1 1 1 0 8 1 processpl 1152 1275 0 1241 5 0 5 5 0 8 0 procpl 664 2272 0 2226 8 1 7 7 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 1190 0 1183 10 1 9 10 0 8 8 mcl64k 65536 73 0 73 2 1 1 1 0 8 1 mcl9k128 9344 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 2 1 1 1 0 8 1 mcl4k 4096 3251 0 3201 17 8 9 15 0 8 1 mcl2k 2048 974 0 972 4 0 4 4 0 8 3 mtagpl 96 10 0 7 1 0 1 1 0 8 0 mbufpl 256 11595 0 11435 17 1 16 16 0 8 2 bufpl 272 5612 0 102 368 0 368 368 0 8 0 anonpl 24 184401 0 182765 55 11 44 44 0 186 17 amapchunkpl 152 30026 0 29649 31 6 25 27 0 158 8 amappl16 200 2627 0 2603 17 6 11 15 0 8 8 amappl15 192 62 0 62 1 1 0 1 0 8 0 amappl14 184 674 0 672 1 0 1 1 0 8 0 amappl13 176 158 0 158 1 0 1 1 0 8 1 amappl12 168 1564 0 1545 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 98 0 98 1 0 1 1 0 8 1 amappl9 144 270 0 270 1 1 0 1 0 8 0 amappl8 136 181 0 181 1 0 1 1 0 8 1 amappl7 128 188 0 185 1 0 1 1 0 8 0 amappl6 120 366 0 364 1 0 1 1 0 8 0 amappl5 112 110 0 109 1 0 1 1 0 8 0 amappl4 104 350 0 348 1 0 1 1 0 8 0 amappl3 96 6070 0 5987 4 0 4 4 0 8 1 amappl2 88 701 0 693 2 0 2 2 0 8 0 amappl1 80 15229 0 15130 13 1 12 13 0 8 4 amappl 88 8499 0 8374 6 1 5 5 0 92 1 uvmvnodes 80 114 0 0 3 0 3 3 0 8 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 3 0 3 2 1 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 2 1 1 1 0 8 1 dma128 128 256 0 256 2 1 1 1 0 8 1 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 13 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1242 0 1221 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1242 0 1221 1 0 1 1 0 8 0 vmmpekpl 168 11354 0 11309 3 0 3 3 0 8 0 vmmpepl 168 86150 0 85288 92 1 91 91 0 357 50 vmsppl 368 1241 0 1221 4 1 3 4 0 8 0 rwobjpl 40 25474 0 25053 13 0 13 13 0 8 1 pdppl 4096 2490 0 2442 122 74 48 78 0 8 0 pvpl 32 514800 0 510341 119 11 108 108 0 265 49 pmappl 216 1241 0 1221 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 789 0 93 21 0 21 21 0 8 0 ddb> machine ddbcpu 0 No such command ddb>