panic: pool_do_get: shmpl free list modified: page 0xfffffd80744bd000; item addr 0xfffffd80744bd460; offset 0x0=0xee00 != 0xcb078ca2731956c6 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *490871 27493 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fe5a34) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff834d6b58,1,ffff8000326655bc) at pool_do_get+0x57e pool_get(ffffffff834d6b58,1) at pool_get+0xf0 shmget_allocate_segment(ffff800037665978,ffff800032665810,8,ffff800032665760) at shmget_allocate_segment+0x1a7 sys_shmget(ffff800037665978,ffff800032665810,ffff800032665760) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff800032665810) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8183bf908b0, 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 0xfffffd80744bd000; item addr 0xfffffd80744bd460; offset 0x0=0xee00 != 0xcb078ca2731956c6 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fe5a34) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff834d6b58,1,ffff8000326655bc) at pool_do_get+0x57e pool_get(ffffffff834d6b58,1) at pool_get+0xf0 shmget_allocate_segment(ffff800037665978,ffff800032665810,8,ffff800032665760) at shmget_allocate_segment+0x1a7 sys_shmget(ffff800037665978,ffff800032665810,ffff800032665760) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff800032665810) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8183bf908b0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800032665430 rbx 0xfffffd80744bd460 rdx 0xffff800001553900 rcx 0 rax 0xffff800037665978 r8 0 r9 0x8080808080808080 r10 0xc1f21c01bb8e1679 r11 0x23541f0564edd350 r12 0 r13 0xfffffd80744bdf90 r14 0 r15 0x1 rip 0xffffffff821e47a5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800032665420 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=490871 pid=27493 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=79, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4afbf0,0xffff80002a4a39a0 process=0xffff8000ffffb370 user=0xffff800032660000, vmspace=0xfffffd806bfb0d80 estcpu=29, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13113 482416 31492 0 2 0 syz-executor 13113 104341 31492 0 3 0x4000080 fsleep syz-executor 65714 420939 26648 0 2 0 syz-executor 65714 151108 26648 0 3 0x4000080 fsleep syz-executor 51938 497712 84463 0 2 0 syz-executor 51938 373286 84463 0 3 0x4000080 fsleep syz-executor 86843 193581 47553 0 2 0x10 syz-executor 86843 132864 47553 0 3 0x4000090 fsleep syz-executor 27493 117648 80469 0 2 0 syz-executor *27493 490871 80469 0 7 0x4000000 syz-executor 27493 252995 80469 0 3 0x4000080 fsleep syz-executor 27493 433141 80469 0 3 0x4000080 fsleep syz-executor 97431 104201 42191 0 3 0x82 netio sshd-session 66751 357431 5878 0 2 0x2 syz-executor 26648 26659 5878 0 2 0x482 syz-executor 31492 234896 5878 0 2 0x482 syz-executor 84463 242224 5878 0 2 0x482 syz-executor 9756 79337 5878 0 2 0x2 syz-executor 80469 391313 5878 0 2 0x482 syz-executor 47553 62494 5878 0 2 0x482 syz-executor 11314 351410 5878 0 2 0x2 syz-executor 93349 32945 1 0 3 0x100083 ttyin getty 50805 318194 0 0 3 0x14200 bored sosplice 58614 29939 0 0 3 0x14280 nfsidl nfsio 64299 250940 0 0 3 0x14280 nfsidl nfsio 10719 382688 0 0 3 0x14280 nfsidl nfsio 60231 406018 0 0 3 0x14280 nfsidl nfsio 96458 124611 0 0 3 0x14280 nfsidl nfsio 13420 169504 0 0 3 0x14280 nfsidl nfsio 53634 407920 0 0 3 0x14280 nfsidl nfsio 16546 319686 0 0 3 0x14280 nfsidl nfsio 52893 140672 0 0 3 0x14280 nfsidl nfsio 40572 136655 0 0 3 0x14280 nfsidl nfsio 38963 317244 0 0 3 0x14280 nfsidl nfsio 66654 243773 0 0 3 0x14280 nfsidl nfsio 66128 241563 0 0 3 0x14280 nfsidl nfsio 2702 438852 0 0 3 0x14280 nfsidl nfsio 76406 125742 0 0 3 0x14280 nfsidl nfsio 40073 51573 0 0 3 0x14280 nfsidl nfsio 75284 100400 0 0 3 0x14280 nfsidl nfsio 52963 259610 0 0 3 0x14280 nfsidl nfsio 6760 364398 0 0 3 0x14280 nfsidl nfsio 3148 132718 0 0 3 0x14280 nfsidl nfsio 5878 388230 72142 0 3 0x82 kqread syz-executor 72142 494075 83804 0 3 0x10008a sigsusp ksh 83804 236366 15424 0 3 0x98 kqread sshd-session 15424 163746 42191 0 3 0x92 kqread sshd-session 42191 13303 1 0 3 0x88 kqread sshd 4862 338959 38546 73 3 0x1100090 kqread syslogd 38546 106554 1 0 3 0x100082 sbwait syslogd 88046 86438 1 0 3 0x100080 kqread resolvd 84063 59502 37071 77 3 0x100092 kqread dhcpleased 80259 94694 37071 77 3 0x100092 kqread dhcpleased 37071 209088 1 0 3 0x80 kqread dhcpleased 53507 377234 0 0 3 0x14200 bored smr 56654 436735 0 0 2 0x14200 zerothread 99945 396038 0 0 3 0x14200 aiodoned aiodoned 1084 285087 0 0 3 0x14200 syncer update 38370 29729 0 0 3 0x14200 cleaner cleaner 97173 174807 0 0 3 0x14200 reaper reaper 31977 153274 0 0 3 0x14200 pgdaemon pagedaemon 47774 147735 0 0 3 0x14200 bored viomb 18326 37561 0 0 3 0x40014200 acpi0 acpi0 10411 201365 0 0 3 0x14200 bored softnet3 75 49303 0 0 3 0x14200 bored softnet2 4382 376625 0 0 3 0x14200 bored softnet1 57001 331031 0 0 2 0x14200 softnet0 42596 477368 0 0 3 0x14200 bored systqmp 16728 189563 0 0 3 0x14200 bored systq 26839 258394 0 0 3 0x40014200 tmoslp softclock 55337 350386 0 0 3 0x40014200 idle0 1 235550 0 0 3 0x80082 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 devbuf 10188 14126K 14642K 166960K 12797 0 pcb 18 12K 12K 166960K 248 0 rtable 226 9K 10K 166960K 1762 0 pf 31 13K 269K 166960K 168 0 ifaddr 41 8K 8K 166960K 239 0 ifgroup 50 2K 2K 166960K 271 0 sysctl 4 1K 1K 166960K 4 0 counters 30 17K 17K 166960K 91 0 ioctlops 0 0K 4K 166960K 191 0 iov 0 0K 28K 166960K 84 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1359 85K 86K 166960K 2777 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 17 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 42 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 16 57K 97K 166960K 4117 0 sigio 0 0K 0K 166960K 29 0 proc 61 67K 124K 166960K 1734 0 subproc 104 6K 6K 166960K 626 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 188 0 in_multi 95 7K 7K 166960K 614 0 ether_multi 1 0K 0K 166960K 13 0 mrt 1 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 1008 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 215 72K 90K 166960K 34799 0 UVM aobj 24 4K 4K 166960K 30 0 pinsyscall 39 78K 96K 166960K 6210 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 79 0 NDP 11 0K 2K 166960K 169 0 temp 66 6813K 6950K 166960K 89375 0 kqueue 14 22K 28K 166960K 256 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 220 0 217 1 0 1 1 0 8 0 rtentry 112 614 0 513 4 0 4 4 0 8 0 unpcb 144 826 0 811 2 0 2 2 0 8 1 syncache 336 10 0 10 3 2 1 1 0 8 1 tcpqe 32 3 0 3 1 0 1 1 0 8 1 tcpcb 808 338 0 329 2 0 2 2 0 8 1 arp 88 112 0 93 1 0 1 1 0 8 0 ipq 40 15 0 14 1 0 1 1 0 8 0 ipqe 40 113 0 112 1 0 1 1 0 8 0 inpcb 336 1411 0 1396 4 2 2 2 0 8 0 nd6 104 155 0 133 1 0 1 1 0 8 0 pkpcb 40 14 0 14 3 2 1 1 0 8 1 kcovpl 48 48 0 40 1 0 1 1 0 8 0 ppxss 1072 17 0 17 2 1 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 2409 0 1972 30 0 30 30 0 8 1 art_table 32 2413 0 1972 4 0 4 4 0 8 0 art_node 16 609 0 522 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 7 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 39 0 29 1 0 1 1 0 8 0 shmpl 112 27 0 7 1 0 1 1 0 8 0 shmpl: pool(0xffffffff834d6b58:shmpl): free list modified: page 0xfffffd80744bd000; item ordinal 0; addr 0xfffffd80744bd460 (p 0xfffffd80744bd000); offset 0x0=0xee00 shmpl: pool(0xffffffff834d6b58:shmpl): page inconsistency: page 0xfffffd80744bd000; item ordinal 1; addr 0x3768693e8eed41af dirhash 1024 38 0 21 3 0 3 3 0 8 0 dino2pl 256 6195 0 4626 99 0 99 99 0 8 0 ffsino 240 6195 0 4626 93 0 93 93 0 8 0 nchpl 144 10203 0 8482 65 0 65 65 0 8 0 uvmvnodes 80 7054 0 0 144 0 144 144 0 8 0 vnodes 216 7054 0 0 392 0 392 392 0 8 0 namei 1024 29222 0 29221 8 6 2 3 0 8 1 kstatmem 264 144 0 122 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 50775 0 50775 11 10 1 8 1 8 1 plimitpl 152 269 0 252 1 0 1 1 0 8 0 sigapl 424 4345 0 4279 8 0 8 8 0 8 0 futexpl 64 16957 0 16951 2 1 1 1 0 8 0 knotepl 120 124786 0 124487 25 15 10 17 0 8 0 kqueuepl 184 287 0 277 1 0 1 1 0 8 0 pipepl 288 307 0 278 4 1 3 3 0 8 0 fdescpl 432 4307 0 4278 5 1 4 5 0 8 0 filepl 120 11314 0 11068 9 0 9 9 0 8 1 lockfpl 104 570 0 568 1 0 1 1 0 8 0 lockfspl 48 235 0 233 1 0 1 1 0 8 0 sessionpl 144 69 0 60 1 0 1 1 0 8 0 pgrppl 48 131 0 114 1 0 1 1 0 8 0 ucredpl 104 1579 0 1567 1 0 1 1 0 8 0 zombiepl 144 4626 0 4626 5 4 1 1 0 8 1 processpl 1096 4345 0 4279 5 0 5 5 0 8 0 procpl 648 8314 0 8240 9 1 8 8 0 8 0 sosppl 168 22 0 22 1 0 1 1 0 8 1 sockpl 504 2476 0 2443 8 2 6 6 0 8 1 mcl64k 65536 695 0 695 3 2 1 1 0 8 1 mcl16k 16384 471 0 471 5 4 1 1 0 8 1 mcl12k 12288 370 0 370 4 3 1 1 0 8 1 mcl9k 9216 120 0 120 5 4 1 1 0 8 1 mcl8k 8192 1098 0 1098 4 3 1 1 0 8 1 mcl4k 4096 213 0 213 5 4 1 1 0 8 1 mcl2k2 2112 5 0 5 2 1 1 1 0 8 1 mcl2k 2048 13565 0 13463 37 19 18 29 0 8 4 mtagpl 96 75 0 74 3 2 1 1 0 8 0 mbufpl 256 51768 0 51498 144 119 25 80 0 8 6 bufpl 280 13083 0 5574 537 0 537 537 0 8 0 anonpl 24 494412 0 491102 157 79 78 102 0 187 48 amapchunkpl 152 114620 0 114184 62 22 40 40 0 158 17 amappl16 200 8063 0 8037 50 40 10 15 0 8 8 amappl15 192 80 0 80 1 1 0 1 0 8 0 amappl14 184 200 0 189 1 0 1 1 0 8 0 amappl13 176 6 0 6 2 2 0 1 0 8 0 amappl12 168 5557 0 5529 2 0 2 2 0 8 0 amappl11 160 51 0 40 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 127 0 127 1 1 0 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 181 0 170 1 0 1 1 0 8 0 amappl6 120 569 0 568 1 0 1 1 0 8 0 amappl5 112 307 0 298 1 0 1 1 0 8 0 amappl4 104 440 0 425 1 0 1 1 0 8 0 amappl3 96 24542 0 24441 5 1 4 4 0 8 0 amappl2 88 1271 0 1201 2 0 2 2 0 8 0 amappl1 80 22979 0 22391 14 1 13 13 0 8 0 amappl 88 33996 0 33840 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 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 7 0 7 2 2 0 1 0 8 0 dma128 128 255 0 255 3 2 1 1 0 8 1 dma64 64 7 0 7 2 2 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 29 0 6 1 0 1 1 0 8 0 uaddrrnd 24 4307 0 4278 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4307 0 4278 1 0 1 1 0 8 0 vmmpekpl 168 26408 0 26350 3 0 3 3 0 8 0 vmmpepl 168 248914 0 247158 101 16 85 88 0 357 1 vmsppl 344 4306 0 4278 4 1 3 4 0 8 0 rwobjpl 24 65331 0 57325 49 0 49 49 0 8 0 pdppl 4096 8620 0 8556 172 104 68 82 0 8 4 pvpl 32 1857993 0 1847522 679 321 358 399 0 265 263 pmappl 216 4306 0 4278 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 633 0 272 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fe5a34) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff834d6b58,1,ffff8000326655bc) at pool_do_get+0x57e pool_get(ffffffff834d6b58,1) at pool_get+0xf0 shmget_allocate_segment(ffff800037665978,ffff800032665810,8,ffff800032665760) at shmget_allocate_segment+0x1a7 sys_shmget(ffff800037665978,ffff800032665810,ffff800032665760) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff800032665810) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8183bf908b0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fe5a34) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff834d6b58,1,ffff8000326655bc) at pool_do_get+0x57e pool_get(ffffffff834d6b58,1) at pool_get+0xf0 shmget_allocate_segment(ffff800037665978,ffff800032665810,8,ffff800032665760) at shmget_allocate_segment+0x1a7 sys_shmget(ffff800037665978,ffff800032665810,ffff800032665760) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff800032665810) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8183bf908b0, count: -8