panic: pool_do_get: shmpl free list modified: page 0xfffffd803ebeb000; item addr 0xfffffd803ebeb1c0; offset 0x10=0xdeaf4000 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *226349 32841 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(ffffffff8224b110,1,ffff800014a38bb4) at pool_do_get+0x48b sys/kern/subr_pool.c:750 pool_get(ffffffff8224b110,1) at pool_get+0xc1 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff8000ffff2e28,ffff800014a38d98,108,ffff800014a38d80) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff2e28,ffff800014a38d98,ffff800014a38d80) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a38e30) at syscall+0x541 Xsyscall(6,0,fffffffffffffff4,0,4,f23555fa0d8) at Xsyscall+0x128 end of kernel end trace frame: 0xf2639e15880, 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 0xfffffd803ebeb000; item addr 0xfffffd803ebeb1c0; offset 0x10=0xdeaf4000 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(ffffffff8224b110,1,ffff800014a38bb4) at pool_do_get+0x48b sys/kern/subr_pool.c:750 pool_get(ffffffff8224b110,1) at pool_get+0xc1 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff8000ffff2e28,ffff800014a38d98,108,ffff800014a38d80) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff2e28,ffff800014a38d98,ffff800014a38d80) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a38e30) at syscall+0x541 Xsyscall(6,0,fffffffffffffff4,0,4,f23555fa0d8) at Xsyscall+0x128 end of kernel end trace frame: 0xf2639e15880, count: -8 ddb> show registers rdi 0xffffffff814ba807 db_enter+0x17 rsi 0x37d7 __ALIGN_SIZE+0x27d7 rbp 0xffff800014a38a10 rbx 0xffff800014a38ac0 rdx 0x37d8 __ALIGN_SIZE+0x27d8 rcx 0xffff800002d3d000 rax 0xffff800002d3d000 r8 0xffff800014a389d0 r9 0x1 r10 0xffff80000173cd00 r11 0x6f967f1d50ead446 r12 0x3000000008 r13 0xffff800014a38a20 r14 0x100 r15 0x1 rip 0xffffffff814ba808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a38a00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=226349 stat=onproc flags process=0 proc=4000000 pri=54, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff92c8,0xffff8000ffff24d8 process=0xffff8000ffff6d30 user=0xffff800014a33000, vmspace=0xfffffd803f015318 estcpu=4, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 89010 124897 7400 0 2 0 syz-executor.0 89010 150742 7400 0 3 0x4000080 ttyout syz-executor.0 89010 332639 7400 0 3 0x4000080 ttyout syz-executor.0 32841 513742 93971 0 2 0 syz-executor.1 32841 153483 93971 0 2 0x4000000 syz-executor.1 *32841 226349 93971 0 7 0x4000000 syz-executor.1 32841 177212 93971 0 3 0x4000080 fsleep syz-executor.1 41209 296410 0 0 3 0x14200 bored sosplice 93971 131004 25367 0 2 0x482 syz-executor.1 7400 293807 25367 0 3 0x82 nanosleep syz-executor.0 25367 342209 12081 0 3 0x82 thrsleep syz-fuzzer 25367 220675 12081 0 3 0x4000082 thrsleep syz-fuzzer 25367 480401 12081 0 3 0x4000082 thrsleep syz-fuzzer 25367 111373 12081 0 3 0x4000082 thrsleep syz-fuzzer 25367 503538 12081 0 3 0x4000082 thrsleep syz-fuzzer 25367 99705 12081 0 3 0x4000082 thrsleep syz-fuzzer 25367 463885 12081 0 3 0x4000082 thrsleep syz-fuzzer 25367 262334 12081 0 3 0x4000082 kqread syz-fuzzer 12081 336644 53762 0 3 0x10008a pause ksh 53762 224304 55349 0 3 0x92 select sshd 4189 295978 1 0 3 0x100083 ttyin getty 55349 151604 1 0 3 0x80 select sshd 94938 124352 72177 73 3 0x100090 kqread syslogd 72177 371189 1 0 3 0x100082 netio syslogd 56896 65790 1 77 3 0x100090 poll dhclient 79771 82993 1 0 3 0x80 poll dhclient 19047 141568 0 0 2 0x14200 zerothread 63351 213284 0 0 3 0x14200 aiodoned aiodoned 97265 289406 0 0 3 0x14200 syncer update 5534 521388 0 0 3 0x14200 cleaner cleaner 97432 215586 0 0 3 0x14200 reaper reaper 2101 436772 0 0 3 0x14200 pgdaemon pagedaemon 18068 232723 0 0 3 0x14200 bored crynlk 86422 201956 0 0 3 0x14200 bored crypto 44291 42397 0 0 3 0x40014200 acpi0 acpi0 31033 138673 0 0 3 0x14200 bored softnet 60806 185697 0 0 3 0x14200 bored systqmp 31064 48838 0 0 3 0x14200 bored systq 38839 11984 0 0 3 0x40014200 bored softclock 60198 311915 0 0 3 0x40014200 idle0 45585 232490 0 0 3 0x14200 bored smr 1 469893 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 9467 6328K 6336K 78643K 10592 0 0 pcb 23 9K 10K 78643K 103 0 0 rtable 97 2K 3K 78643K 173 0 0 ifaddr 44 11K 11K 78643K 45 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 17 0 0 iov 0 0K 16K 78643K 22 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 75K 78643K 1282 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 5 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 18 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 6 17K 21K 78643K 123 0 0 proc 41 30K 46K 78643K 266 0 0 subproc 64 65538K 67586K 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 22 0 0 in_multi 33 2K 2K 78643K 45 0 0 ether_multi 1 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 176 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 82 20K 21K 78643K 1039 0 0 UVM aobj 13 2K 2K 78643K 16 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 2 0 0 NDP 8 0K 0K 78643K 12 0 0 temp 110 2350K 2414K 78643K 3083 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 104 0 97 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 37 0 37 1 1 0 1 0 8 0 tcpcb 544 46 0 42 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 16 0 6 1 0 1 1 0 8 0 shmpl 112 14 0 3 1 0 1 1 0 8 0 shmpl: pool(0xffffffff8224b110:shmpl): page inconsistency: page 0xfffffd803ebeb000; item ordinal 0; addr 0xdb03b9cd6be0341b dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1637 0 229 46 0 46 46 0 8 0 ffsino 240 1637 0 229 84 0 84 84 0 8 0 nchpl 144 2023 0 401 61 0 61 61 0 8 0 uvmvnodes 72 1696 0 0 31 0 31 31 0 8 0 vnodes 200 1696 0 0 90 0 90 90 0 8 0 namei 1024 5118 0 5117 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 5313 0 5313 10 8 2 6 0 8 2 sigapl 432 291 0 277 2 0 2 2 0 8 0 futexpl 56 2028 0 2027 1 0 1 1 0 8 0 knotepl 112 82 0 55 2 1 1 2 0 8 0 kqueuepl 104 26 0 24 1 0 1 1 0 8 0 pipepl 112 186 0 167 2 1 1 1 0 8 0 fdescpl 424 292 0 277 2 0 2 2 0 8 0 filepl 120 1674 0 1574 4 0 4 4 0 8 0 lockfpl 104 41 0 40 2 1 1 1 0 8 0 lockfspl 32 41 0 40 2 1 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 296 0 289 1 0 1 1 0 8 0 zombiepl 144 277 0 277 2 1 1 1 0 8 1 processpl 840 307 0 277 4 0 4 4 0 8 0 procpl 600 463 0 421 4 0 4 4 0 8 0 sosppl 128 1 0 1 1 1 0 1 0 8 0 sockpl 384 180 0 163 3 0 3 3 0 8 1 mcl64k 65536 7 0 7 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 2 0 2 1 1 0 1 0 8 0 mcl4k 4096 12 0 12 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 45253 0 45222 12 7 5 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 74078 0 74015 7 2 5 6 0 8 0 bufpl 256 5778 0 1488 269 0 269 269 0 8 0 anonpl 16 38421 0 30256 50 2 48 48 0 62 15 amapchunkpl 152 1138 0 1050 5 1 4 5 0 158 0 amappl16 192 1202 0 767 33 4 29 33 0 8 7 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 78 0 69 1 0 1 1 0 8 0 amappl13 168 23 0 20 1 0 1 1 0 8 0 amappl12 160 115 0 111 2 1 1 1 0 8 0 amappl11 152 181 0 171 1 0 1 1 0 8 0 amappl10 144 54 0 53 2 1 1 1 0 8 0 amappl9 136 345 0 341 1 0 1 1 0 8 0 amappl8 128 171 0 155 1 0 1 1 0 8 0 amappl7 120 22 0 20 1 0 1 1 0 8 0 amappl6 112 102 0 93 1 0 1 1 0 8 0 amappl5 104 137 0 126 1 0 1 1 0 8 0 amappl4 96 263 0 239 2 1 1 2 0 8 0 amappl3 88 133 0 128 1 0 1 1 0 8 0 amappl2 80 1631 0 1572 2 0 2 2 0 8 0 amappl1 72 14242 0 13790 25 15 10 19 0 8 0 amappl 72 675 0 639 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 15 0 3 1 0 1 1 0 8 0 uaddrrnd 24 292 0 277 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 292 0 277 1 0 1 1 0 8 0 vmmpekpl 168 6097 0 6079 1 0 1 1 0 8 0 vmmpepl 168 37188 0 35710 89 16 73 73 0 357 8 vmsppl 264 291 0 277 2 1 1 2 0 8 0 pdppl 4096 590 0 554 5 0 5 5 0 8 0 pvpl 32 130907 0 119301 133 9 124 124 0 265 30 pmappl 192 291 0 277 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 402 0 14 12 0 12 12 0 8 0