panic: pool_do_get: shmpl free list modified: page 0xfffffd803bd4a000; item addr 0xfffffd803bd4a388; offset 0x10=0xdead4000 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 60503 27959 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 pool_do_get(ffffffff822bc668,2,ffff800014a08cac) at pool_do_get+0x464 sys/kern/subr_pool.c:744 pool_get(ffffffff822bc668,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 shmget_allocate_segment(ffff8000ffff84b8,ffff800014a08e48,1ba,ffff800014a08eb0) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff84b8,ffff800014a08e48,ffff800014a08eb0) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a08f20) at syscall+0x511 Xsyscall(6,0,fffffffffffffff3,0,4,5f3d0531010) at Xsyscall+0x128 end of kernel end trace frame: 0x5f60c699ef0, 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 pool_do_get: shmpl free list modified: page 0xfffffd803bd4a000; item addr 0xfffffd803bd4a388; offset 0x10=0xdead4000 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 pool_do_get(ffffffff822bc668,2,ffff800014a08cac) at pool_do_get+0x464 sys/kern/subr_pool.c:744 pool_get(ffffffff822bc668,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 shmget_allocate_segment(ffff8000ffff84b8,ffff800014a08e48,1ba,ffff800014a08eb0) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff84b8,ffff800014a08e48,ffff800014a08eb0) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a08f20) at syscall+0x511 Xsyscall(6,0,fffffffffffffff3,0,4,5f3d0531010) at Xsyscall+0x128 end of kernel end trace frame: 0x5f60c699ef0, count: -8 ddb> show registers rdi 0xffffffff81010377 db_enter+0x17 rsi 0x35ae __ALIGN_SIZE+0x25ae rbp 0xffff800014a08b10 rbx 0xffff800014a08bc0 rdx 0x35af __ALIGN_SIZE+0x25af rcx 0xffff800002b96000 rax 0xffff800002b96000 r8 0xffff800014a08ad0 r9 0x1 r10 0xffff8000011949c0 r11 0x3db83c082c296ae4 r12 0x3000000008 r13 0xffff800014a08b20 r14 0x100 r15 0x1 rip 0xffffffff81010378 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a08b00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=60503 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8bc0,0xffff8000ffff3090 process=0xffff8000ffff6358 user=0xffff800014a03000, vmspace=0xfffffd803f013210 estcpu=26, cpticks=1, pctcpu=0.1 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 27959 457278 2304 0 2 0 syz-executor.1 *27959 60503 2304 0 7 0x4000000 syz-executor.1 27959 97653 2304 0 3 0x4000080 fsleep syz-executor.1 27959 489501 2304 0 3 0x4000080 fsleep syz-executor.1 27959 67430 2304 0 3 0x4000080 fsleep syz-executor.1 27959 495545 2304 0 3 0x4000080 fsleep syz-executor.1 27959 81320 2304 0 3 0x4000080 fsleep syz-executor.1 50765 341829 0 0 3 0x14200 bored sosplice 2304 456795 60016 0 2 0x482 syz-executor.1 8296 478321 60016 0 2 0x2 syz-executor.0 60016 368524 96243 0 3 0x82 thrsleep syz-fuzzer 60016 483506 96243 0 3 0x4000082 thrsleep syz-fuzzer 60016 203367 96243 0 3 0x4000082 thrsleep syz-fuzzer 60016 289440 96243 0 3 0x4000082 kqread syz-fuzzer 60016 460516 96243 0 3 0x4000082 thrsleep syz-fuzzer 60016 517114 96243 0 3 0x4000082 thrsleep syz-fuzzer 60016 315633 96243 0 3 0x4000082 thrsleep syz-fuzzer 60016 37209 96243 0 3 0x4000082 thrsleep syz-fuzzer 96243 65248 17955 0 3 0x10008a pause ksh 17955 511195 35208 0 3 0x92 select sshd 19565 494623 1 0 3 0x100083 ttyin getty 35208 29087 1 0 3 0x80 select sshd 9377 241328 94295 73 2 0x100010 syslogd 94295 413202 1 0 3 0x100082 netio syslogd 62690 359036 1 77 3 0x100090 poll dhclient 19521 193621 1 0 3 0x80 poll dhclient 15693 83088 0 0 3 0x14200 pgzero zerothread 53265 355564 0 0 3 0x14200 aiodoned aiodoned 47005 379263 0 0 3 0x14200 syncer update 3228 453285 0 0 3 0x14200 cleaner cleaner 37059 257679 0 0 3 0x14200 reaper reaper 90026 411950 0 0 3 0x14200 pgdaemon pagedaemon 89484 391436 0 0 3 0x14200 bored crynlk 16326 70487 0 0 3 0x14200 bored crypto 12217 520059 0 0 3 0x40014200 acpi0 acpi0 27614 481774 0 0 3 0x14200 bored softnet 16714 97554 0 0 3 0x14200 bored systqmp 97285 48084 0 0 3 0x14200 bored systq 21016 119276 0 0 3 0x40014200 bored softclock 86217 37826 0 0 3 0x40014200 idle0 7946 375083 0 0 3 0x14200 bored smr 1 190656 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9510 6342K 6981K 78643K 14750 0 0 pcb 23 9K 11K 78643K 781 0 0 rtable 108 3K 4K 78643K 458 0 0 ifaddr 58 13K 14K 78643K 205 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 59 0 0 iov 0 0K 24K 78643K 158 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 77K 78643K 2601 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 18 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 196 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 1421 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 43 30K 54K 78643K 437 0 0 subproc 64 65538K 69634K 78643K 72 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 195 0 0 in_multi 33 2K 2K 78643K 95 0 0 ether_multi 1 0K 0K 78643K 10 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 283 0 0 pfkey data 0 0K 0K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 86 20K 25K 78643K 4106 0 0 UVM aobj 50 2K 2K 78643K 58 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 87 0 0 NDP 12 0K 0K 78643K 55 0 0 temp 171 2711K 2837K 78643K 7531 0 0 kqueue 0 0K 0K 78643K 14 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 672 0 663 1 0 1 1 0 8 0 plimitpl 152 85 0 78 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 247 0 243 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 30 0 30 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semapl 112 192 0 182 1 0 1 1 0 8 0 shmpl 112 56 0 8 2 0 2 2 0 8 0 shmpl: pool(0xffffffff822bc668:shmpl): page inconsistency: page 0xfffffd803bd4a000; item ordinal 0; addr 0xd887ab255ea72a3a dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3718 0 2293 47 0 47 47 0 8 0 ffsino 240 3718 0 2293 85 1 84 85 0 8 0 nchpl 144 5926 0 4291 61 0 61 61 0 8 0 uvmvnodes 72 4716 0 0 86 0 86 86 0 8 0 vnodes 200 4716 0 0 249 0 249 249 0 8 0 namei 1024 17568 0 17567 3 2 1 1 0 8 0 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 22467 0 22467 16 15 1 6 0 8 1 sigapl 432 1591 0 1578 2 0 2 2 0 8 0 futexpl 56 23819 0 23814 1 0 1 1 0 8 0 knotepl 112 330 0 311 1 0 1 1 0 8 0 kqueuepl 104 353 0 351 1 0 1 1 0 8 0 pipepl 112 926 0 907 5 4 1 2 0 8 0 fdescpl 424 1592 0 1578 2 0 2 2 0 8 0 filepl 120 9541 0 9441 6 2 4 5 0 8 0 lockfpl 104 466 0 465 4 3 1 1 0 8 0 lockfspl 48 175 0 174 4 3 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 29 0 19 1 0 1 1 0 8 0 ucredpl 96 1710 0 1703 1 0 1 1 0 8 0 zombiepl 144 1578 0 1578 3 2 1 1 0 8 1 processpl 840 1607 0 1578 4 0 4 4 0 8 0 procpl 600 3427 0 3385 4 0 4 4 0 8 0 sosppl 128 15 0 15 4 4 0 1 0 8 0 sockpl 384 1333 0 1314 7 4 3 4 0 8 0 mcl64k 65536 36 0 36 8 7 1 1 0 8 1 mcl16k 16384 4 0 4 3 3 0 1 0 8 0 mcl12k 12288 23 0 23 6 6 0 1 0 8 0 mcl9k 9216 22 0 22 9 9 0 1 0 8 0 mcl8k 8192 23 0 23 11 10 1 1 0 8 1 mcl4k 4096 75 0 75 5 5 0 1 0 8 0 mcl2k2 2112 9 0 9 4 4 0 1 0 8 0 mcl2k 2048 59689 0 59653 16 10 6 10 0 8 0 mtagpl 80 6 0 5 3 2 1 1 0 8 0 mbufpl 256 104496 0 104442 10 4 6 9 0 8 0 bufpl 256 9490 0 4933 286 0 286 286 0 8 0 anonpl 16 181139 0 169049 112 48 64 65 0 62 14 amapchunkpl 152 6387 0 6277 14 9 5 7 0 158 0 amappl16 192 10785 0 10116 116 71 45 45 0 8 11 amappl15 184 692 0 691 1 0 1 1 0 8 0 amappl14 176 54 0 50 1 0 1 1 0 8 0 amappl13 168 2 0 2 2 2 0 1 0 8 0 amappl12 160 5 0 3 1 0 1 1 0 8 0 amappl11 152 29 0 18 1 0 1 1 0 8 0 amappl10 144 61 0 58 2 1 1 1 0 8 0 amappl9 136 242 0 237 1 0 1 1 0 8 0 amappl8 128 125 0 110 1 0 1 1 0 8 0 amappl7 120 34 0 29 1 0 1 1 0 8 0 amappl6 112 53 0 46 1 0 1 1 0 8 0 amappl5 104 762 0 752 1 0 1 1 0 8 0 amappl4 96 1776 0 1751 2 1 1 2 0 8 0 amappl3 88 170 0 165 1 0 1 1 0 8 0 amappl2 80 13863 0 13809 3 1 2 2 0 8 0 amappl1 72 37043 0 36610 26 17 9 19 0 8 0 amappl 80 3662 0 3623 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 57 0 8 1 0 1 1 0 8 0 uaddrrnd 24 1592 0 1578 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1592 0 1578 1 0 1 1 0 8 0 vmmpekpl 168 13802 0 13782 3 1 2 2 0 8 0 vmmpepl 168 172539 0 170920 150 70 80 85 0 357 7 vmsppl 264 1591 0 1578 2 1 1 2 0 8 0 pdppl 4096 3190 0 3156 6 1 5 6 0 8 0 pvpl 32 495809 0 480284 219 60 159 159 0 265 33 pmappl 200 1591 0 1578 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 452 0 45 12 0 12 12 0 8 0