login: panic: pool_do_get: shmpl free list modified: page 0xfffffd8039031000; item addr 0xfffffd8039031e70; offset 0x10=0xdeafbe00 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 87968 98889 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 pool_do_get(ffffffff82274ff0,1,ffff800014a09db4) at pool_do_get+0x48b sys/kern/subr_pool.c:750 pool_get(ffffffff82274ff0,1) at pool_get+0xc1 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff8000ffff8968,ffff800014a09f98,0,ffff800014a09f80) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff8968,ffff800014a09f98,ffff800014a09f80) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a0a030) at syscall+0x541 Xsyscall(6,0,fffffffffffffff3,0,4,966ab2c4010) at Xsyscall+0x128 end of kernel end trace frame: 0x9699b4c1840, 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 0xfffffd8039031000; item addr 0xfffffd8039031e70; offset 0x10=0xdeafbe00 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 pool_do_get(ffffffff82274ff0,1,ffff800014a09db4) at pool_do_get+0x48b sys/kern/subr_pool.c:750 pool_get(ffffffff82274ff0,1) at pool_get+0xc1 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff8000ffff8968,ffff800014a09f98,0,ffff800014a09f80) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff8968,ffff800014a09f98,ffff800014a09f80) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a0a030) at syscall+0x541 Xsyscall(6,0,fffffffffffffff3,0,4,966ab2c4010) at Xsyscall+0x128 end of kernel end trace frame: 0x9699b4c1840, count: -8 ddb> show registers rdi 0xffffffff8139b907 db_enter+0x17 rsi 0x3894 __ALIGN_SIZE+0x2894 rbp 0xffff800014a09c10 rbx 0xffff800014a09cc0 rdx 0x3895 __ALIGN_SIZE+0x2895 rcx 0xffff80000093b000 rax 0xffff80000093b000 r8 0xffff800014a09bd0 r9 0x1 r10 0xffff8000009358c0 r11 0xbbbe2d1e782de99 r12 0x3000000008 r13 0xffff800014a09c20 r14 0x100 r15 0x1 rip 0xffffffff8139b908 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a09c00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=87968 stat=onproc flags process=0 proc=4000000 pri=61, usrpri=61, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8008,0xffff8000ffff4278 process=0xffff8000ffff66a0 user=0xffff800014a05000, vmspace=0xfffffd803f015d68 estcpu=11, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 83025 94314 25673 0 2 0 syz-executor.0 83025 493612 25673 0 3 0x4000080 ttyin syz-executor.0 83025 74050 25673 0 3 0x4000080 fsleep syz-executor.0 83025 236531 25673 0 3 0x4000080 fsleep syz-executor.0 98889 436949 83747 0 2 0 syz-executor.1 *98889 87968 83747 0 7 0x4000000 syz-executor.1 98889 111967 83747 0 3 0x4000080 fsleep syz-executor.1 98889 257094 83747 0 3 0x4000080 fsleep syz-executor.1 98889 77885 83747 0 3 0x4000080 fsleep syz-executor.1 25673 239053 38943 0 3 0x82 nanosleep syz-executor.0 83747 380864 38943 0 2 0x482 syz-executor.1 38943 354537 73700 0 3 0x82 thrsleep syz-fuzzer 38943 270975 73700 0 3 0x4000082 thrsleep syz-fuzzer 38943 352569 73700 0 3 0x4000082 thrsleep syz-fuzzer 38943 184252 73700 0 3 0x4000082 thrsleep syz-fuzzer 38943 331138 73700 0 3 0x4000082 kqread syz-fuzzer 38943 186507 73700 0 3 0x4000082 thrsleep syz-fuzzer 38943 522061 73700 0 3 0x4000082 thrsleep syz-fuzzer 73700 201599 67515 0 3 0x10008a pause ksh 67515 272302 52623 0 3 0x92 select sshd 72516 158329 1 0 3 0x100083 ttyin getty 52623 102491 1 0 3 0x80 select sshd 30748 264239 56478 73 3 0x100090 kqread syslogd 56478 189956 1 0 3 0x100082 netio syslogd 60848 376820 1 77 3 0x100090 poll dhclient 47443 320385 1 0 3 0x80 poll dhclient 88107 493311 0 0 2 0x14200 zerothread 54925 151486 0 0 3 0x14200 aiodoned aiodoned 1327 439484 0 0 3 0x14200 syncer update 52806 333235 0 0 3 0x14200 cleaner cleaner 31407 378354 0 0 3 0x14200 reaper reaper 76083 475060 0 0 3 0x14200 pgdaemon pagedaemon 64434 255729 0 0 3 0x14200 bored crynlk 80409 446602 0 0 3 0x14200 bored crypto 96063 198644 0 0 3 0x40014200 acpi0 acpi0 7351 373283 0 0 3 0x14200 bored softnet 23117 360502 0 0 3 0x14200 bored systqmp 19598 338781 0 0 3 0x14200 bored systq 95031 239643 0 0 3 0x40014200 bored softclock 24447 73111 0 0 3 0x40014200 idle0 21504 417231 0 0 3 0x14200 bored smr 1 122360 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 9440 6311K 6312K 78643K 10536 0 0 pcb 23 9K 10K 78643K 67 0 0 rtable 97 2K 2K 78643K 167 0 0 ifaddr 34 9K 9K 78643K 34 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 15 0 0 iov 0 0K 12K 78643K 2 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1218 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 2 0K 0K 78643K 4 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 6 17K 25K 78643K 31 0 0 proc 41 30K 54K 78643K 248 0 0 subproc 64 65538K 69634K 78643K 68 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 4 0 0 in_multi 33 2K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 163 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 85 20K 20K 78643K 800 0 0 UVM aobj 2 2K 2K 78643K 3 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 5 0K 0K 78643K 9 0 0 temp 82 2344K 2408K 78643K 2816 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 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 34 0 27 1 0 1 1 0 8 0 plimitpl 152 15 0 8 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 34 0 34 1 0 1 1 0 8 1 tcpcb 544 14 0 10 1 0 1 1 0 8 0 nd6 48 4 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 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 semapl 112 2 0 2 1 0 1 1 0 8 1 shmpl 112 1 0 1 1 0 1 1 0 8 1 shmpl: pool(0xffffffff82274ff0:shmpl): page inconsistency: page 0xfffffd8039031000; item ordinal 0; addr 0x6ea0e85421c9c4e3 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1455 0 47 46 0 46 46 0 8 0 ffsino 240 1455 0 47 84 0 84 84 0 8 1 nchpl 144 1698 0 76 61 0 61 61 0 8 0 uvmvnodes 72 1500 0 0 28 0 28 28 0 8 0 vnodes 200 1500 0 0 79 0 79 79 0 8 0 namei 1024 4023 0 4023 2 1 1 1 0 8 1 scxspl 192 4147 0 4147 7 1 6 6 0 8 6 sigapl 432 199 0 185 2 0 2 2 0 8 0 futexpl 56 317 0 312 1 0 1 1 0 8 0 knotepl 112 63 0 36 1 0 1 1 0 8 0 kqueuepl 104 6 0 4 1 0 1 1 0 8 0 pipepl 112 158 0 139 3 1 2 2 0 8 1 fdescpl 424 200 0 185 2 0 2 2 0 8 0 filepl 120 1034 0 933 4 0 4 4 0 8 0 lockfpl 104 9 0 8 2 1 1 1 0 8 0 lockfspl 32 5 0 4 2 1 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 99 0 92 1 0 1 1 0 8 0 zombiepl 144 185 0 185 2 1 1 1 0 8 1 processpl 840 214 0 185 4 0 4 4 0 8 0 procpl 600 241 0 199 4 0 4 4 0 8 0 sockpl 384 88 0 71 3 0 3 3 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 10 0 10 1 0 1 1 0 8 1 mcl2k 2048 44131 0 44099 12 2 10 10 0 8 5 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 71753 0 71653 10 3 7 7 0 8 0 bufpl 256 5350 0 1060 269 0 269 269 0 8 0 anonpl 16 27141 0 19256 34 2 32 32 0 62 0 amapchunkpl 152 769 0 668 6 0 6 6 0 158 2 amappl16 192 532 0 125 21 0 21 21 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 27 0 21 1 0 1 1 0 8 0 amappl13 168 24 0 20 1 0 1 1 0 8 0 amappl12 160 19 0 16 2 1 1 1 0 8 0 amappl11 152 189 0 176 1 0 1 1 0 8 0 amappl10 144 56 0 55 2 1 1 1 0 8 0 amappl9 136 310 0 306 1 0 1 1 0 8 0 amappl8 128 117 0 105 1 0 1 1 0 8 0 amappl7 120 23 0 21 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 213 0 203 1 0 1 1 0 8 0 amappl4 96 261 0 240 2 0 2 2 0 8 1 amappl3 88 128 0 120 1 0 1 1 0 8 0 amappl2 80 747 0 688 2 0 2 2 0 8 0 amappl1 72 12624 0 12181 26 9 17 19 0 8 8 amappl 72 445 0 405 1 0 1 1 0 75 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 2 0 1 1 0 1 1 0 8 0 uaddrrnd 24 200 0 185 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 200 0 185 1 0 1 1 0 8 0 vmmpekpl 168 5589 0 5573 1 0 1 1 0 8 0 vmmpepl 168 28200 0 26762 83 13 70 70 0 357 7 vmsppl 264 199 0 185 2 0 2 2 0 8 1 pdppl 4096 406 0 370 6 0 6 6 0 8 1 pvpl 32 105359 0 93777 101 4 97 97 0 265 3 pmappl 192 199 0 185 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 404 0 8 12 0 12 12 0 8 0