panic: pool_do_get: shmpl free list modified: page 0xfffffd806c534000; item addr 0xfffffd806c534c48; offset 0x0=0x0 != 0x1233f570b76770f Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *198014 95504 0 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fe75d7) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83593718,1,ffff80002a590e8c) at pool_do_get+0x57e pool_get(ffffffff83593718,1) at pool_get+0xf0 shmget_allocate_segment(ffff80002a4f22b8,ffff80002a5910e0,186,ffff80002a591030) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80002a4f22b8,ffff80002a5910e0,ffff80002a591030) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff80002a5910e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3d609079800, 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 0xfffffd806c534000; item addr 0xfffffd806c534c48; offset 0x0=0x0 != 0x1233f570b76770f ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fe75d7) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83593718,1,ffff80002a590e8c) at pool_do_get+0x57e pool_get(ffffffff83593718,1) at pool_get+0xf0 shmget_allocate_segment(ffff80002a4f22b8,ffff80002a5910e0,186,ffff80002a591030) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80002a4f22b8,ffff80002a5910e0,ffff80002a591030) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff80002a5910e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3d609079800, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a590d00 rbx 0xfffffd806c534c48 rdx 0 rcx 0 rax 0xffff80002a4f22b8 r8 0 r9 0x8080808080808080 r10 0xb0e116693b84c541 r11 0x7210bee9ef58f0 r12 0 r13 0xfffffd806c534f90 r14 0 r15 0x1 rip 0xffffffff812f8295 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a590cf0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=198014 pid=95504 tcnt=3 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4f2540,0xffff80002a4d11e8 process=0xffff800030c9af40 user=0xffff80002a58c000, vmspace=0xfffffd806c845828 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95985 501695 69915 0 2 0 syz-executor 95504 251807 22590 0 2 0x10 syz-executor *95504 198014 22590 0 7 0x4000010 syz-executor 95504 411873 22590 0 3 0x4000090 fsleep syz-executor 40703 508830 16107 0 2 0 syz-executor 38932 36552 37520 0 2 0 syz-executor 38932 86218 37520 0 3 0x4000080 fsleep syz-executor 38932 288668 37520 0 3 0x4000080 fsleep syz-executor 5248 106688 12406 0 3 0 vmmaplk syz-executor 5248 169372 12406 0 3 0x4000080 fsleep syz-executor 5248 271655 12406 0 2 0x4000000 syz-executor 24873 329215 18690 0 2 0x480 syz-executor 24873 465625 18690 0 3 0x4000080 kqpoll syz-executor 24873 130359 18690 0 3 0x4000080 fsleep syz-executor 30405 172069 14959 0 2 0 syz-executor 30405 167442 14959 0 3 0x4000080 fsleep syz-executor 30405 123670 14959 0 3 0x4000080 fsleep syz-executor 16107 336980 47904 0 2 0x482 syz-executor 37520 437910 47904 0 2 0x482 syz-executor 69915 401662 47904 0 3 0x82 nanoslp syz-executor 14959 41912 47904 0 2 0x482 syz-executor 12406 443899 47904 0 2 0x482 syz-executor 18690 374593 47904 0 2 0x482 syz-executor 22590 439788 47904 0 2 0x482 syz-executor 87254 443960 47904 0 2 0x2 syz-executor 79413 39387 0 0 3 0x14200 acct acct 81718 350739 0 0 3 0x14280 nfsidl nfsio 1520 272405 0 0 3 0x14280 nfsidl nfsio 89576 151550 0 0 3 0x14280 nfsidl nfsio 46267 246723 0 0 3 0x14280 nfsidl nfsio 25187 436288 0 0 3 0x14280 nfsidl nfsio 1275 294957 0 0 3 0x14280 nfsidl nfsio 83993 193615 0 0 3 0x14280 nfsidl nfsio 59177 38833 0 0 3 0x14280 nfsidl nfsio 92143 54451 0 0 3 0x14280 nfsidl nfsio 48823 98209 0 0 3 0x14280 nfsidl nfsio 20078 377691 0 0 3 0x14280 nfsidl nfsio 87251 191105 0 0 3 0x14280 nfsidl nfsio 30670 38671 0 0 3 0x14280 nfsidl nfsio 49371 196902 0 0 3 0x14280 nfsidl nfsio 69563 341881 0 0 3 0x14280 nfsidl nfsio 80634 233175 0 0 3 0x14280 nfsidl nfsio 91104 213018 0 0 3 0x14280 nfsidl nfsio 40007 93513 0 0 3 0x14280 nfsidl nfsio 34852 207872 0 0 3 0x14280 nfsidl nfsio 86070 507953 0 0 3 0x14280 nfsidl nfsio 20835 486244 1 0 3 0x100083 ttyin getty 51575 302429 0 0 3 0x14200 bored sosplice 47904 462789 1858 0 3 0x82 kqread syz-executor 1858 426916 28908 0 3 0x10008a sigsusp ksh 28908 75418 34666 0 3 0x98 kqread sshd-session 34666 279336 30054 0 3 0x92 kqread sshd-session 30054 368139 1 0 3 0x88 kqread sshd 34560 441354 80657 73 2 0x1100010 syslogd 80657 389540 1 0 3 0x100082 sbwait syslogd 42307 91184 1 0 3 0x100080 kqread resolvd 17465 401125 20588 77 3 0x100092 kqread dhcpleased 67493 139024 20588 77 3 0x100092 kqread dhcpleased 20588 233729 1 0 3 0x80 kqread dhcpleased 43782 314273 0 0 3 0x14200 bored smr 43168 83341 0 0 2 0x14200 zerothread 45160 465034 0 0 3 0x14200 aiodoned aiodoned 54845 417102 0 0 3 0x14200 syncer update 14960 99236 0 0 3 0x14200 cleaner cleaner 78111 346592 0 0 3 0x14200 reaper reaper 64319 357467 0 0 3 0x14200 pgdaemon pagedaemon 56886 397589 0 0 3 0x14200 bored viomb 12822 16615 0 0 3 0x40014200 acpi0 acpi0 31735 212554 0 0 3 0x14200 bored softnet3 95482 288138 0 0 3 0x14200 bored softnet2 77828 210046 0 0 3 0x14200 bored softnet1 46919 152130 0 0 2 0x14200 softnet0 67409 364550 0 0 3 0x14200 bored systqmp 1674 100347 0 0 3 0x14200 bored systq 43085 438677 0 0 3 0x40014200 tmoslp softclock 63715 264471 0 0 3 0x40014200 idle0 1 368289 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 devbuf 10228 14201K 14653K 166960K 14008 0 pcb 17 20K 22K 166960K 396 0 rtable 229 10K 10K 166960K 2383 0 pf 43 15K 271K 166960K 245 0 ifaddr 46 8K 9K 166960K 321 0 ifgroup 71 2K 3K 166960K 358 0 sysctl 3 0K 2K 166960K 5 0 counters 35 18K 18K 166960K 112 0 ioctlops 0 0K 4K 166960K 417 0 iov 0 0K 24K 166960K 218 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1502 94K 95K 166960K 3574 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 23 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 64 0 dirhash 15 2K 3K 166960K 54 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 17 61K 93K 166960K 2464 0 sigio 0 0K 0K 166960K 45 0 proc 60 59K 83K 166960K 2316 0 subproc 104 6K 7K 166960K 885 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 245 0 in_multi 94 6K 7K 166960K 815 0 ether_multi 1 0K 0K 166960K 16 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 1594 0 pfkey data 0 0K 4K 166960K 68 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 214 72K 91K 166960K 20388 0 UVM aobj 71 7K 7K 166960K 81 0 pinsyscall 38 76K 94K 166960K 5041 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 55 0 NDP 16 0K 2K 166960K 234 0 temp 76 6816K 6944K 166960K 85767 0 kqueue 14 22K 32K 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 360 0 357 2 1 1 2 0 8 0 rtentry 112 823 0 725 4 1 3 4 0 8 0 unpcb 144 2027 0 2010 7 6 1 7 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 696 0 691 14 13 1 14 0 8 0 arp 88 149 0 130 1 0 1 1 0 8 0 ipq 40 12 0 11 1 0 1 1 0 8 0 ipqe 40 107 0 105 1 0 1 1 0 8 0 inpcb 336 2639 0 2621 20 18 2 18 0 8 0 nd6 104 215 0 193 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 1 0 1 0 8 0 kcovpl 48 68 0 60 1 0 1 1 0 8 0 ppxss 1072 11 0 11 1 1 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 4 0 4 1 1 0 1 0 8 0 pfstkey 128 2 0 2 1 1 0 1 0 8 0 pfstate 344 1 0 1 1 1 0 1 0 8 0 pfrule 1344 5 0 5 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 3305 0 2868 33 4 29 29 0 8 0 art_table 32 3307 0 2868 4 0 4 4 0 8 0 art_node 16 822 0 734 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semapl 112 62 0 52 1 0 1 1 0 8 0 shmpl 112 78 0 11 2 0 2 2 0 8 0 shmpl: pool(0xffffffff83593718:shmpl): free list modified: page 0xfffffd806c534000; item ordinal 0; addr 0xfffffd806c534c48 (p 0xfffffd806c534000); offset 0x0=0x0 shmpl: pool(0xffffffff83593718:shmpl): page inconsistency: page 0xfffffd806c534000; item ordinal 1; addr 0x9aacb5f62e0c9b25 dirhash 1024 47 0 28 3 0 3 3 0 8 0 dino2pl 256 4280 0 2677 102 0 102 102 0 8 0 ffsino 240 4280 0 2677 96 0 96 96 0 8 0 nchpl 144 6671 0 4909 66 0 66 66 0 8 0 uvmvnodes 80 6161 0 0 126 0 126 126 0 8 0 vnodes 216 6161 0 0 343 0 343 343 0 8 0 namei 1024 31508 0 31506 3 2 1 2 0 8 0 kstatmem 264 186 0 154 3 0 3 3 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 41353 0 41353 8 7 1 8 1 8 1 plimitpl 152 657 0 641 1 0 1 1 0 8 0 sigapl 424 2645 0 2578 9 1 8 9 0 8 0 futexpl 64 23232 0 23225 1 0 1 1 0 8 0 knotepl 120 70628 0 70581 25 15 10 16 0 8 8 kqueuepl 184 424 0 414 3 2 1 3 0 8 0 pipepl 288 560 0 533 7 5 2 7 0 8 0 fdescpl 432 2606 0 2577 5 1 4 5 0 8 0 filepl 120 17582 0 17339 15 6 9 15 0 8 0 lockfpl 104 1068 0 1065 2 1 1 2 0 8 0 lockfspl 48 404 0 401 1 0 1 1 0 8 0 sessionpl 144 82 0 74 1 0 1 1 0 8 0 pgrppl 48 178 0 162 1 0 1 1 0 8 0 ucredpl 104 2387 0 2375 1 0 1 1 0 8 0 zombiepl 144 2587 0 2587 2 1 1 1 0 8 1 processpl 1096 2645 0 2578 6 0 6 6 0 8 0 procpl 648 4799 0 4722 8 1 7 8 0 8 0 sosppl 168 12 0 10 2 1 1 1 0 8 0 sockpl 504 5083 0 5045 83 77 6 33 0 8 0 mcl64k 65536 36 0 36 1 1 0 1 0 8 0 mcl16k 16384 11 0 11 1 1 0 1 0 8 0 mcl12k 12288 3 0 3 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 22 0 22 1 1 0 1 0 8 0 mcl4k 4096 72 0 72 1 1 0 1 0 8 0 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 10358 0 10256 31 17 14 31 0 8 0 mtagpl 96 123 0 110 2 1 1 2 0 8 0 mbufpl 256 32896 0 32652 248 231 17 143 0 8 0 bufpl 280 11260 0 3601 548 0 548 548 0 8 0 anonpl 24 390443 0 387201 79 44 35 79 0 187 0 amapchunkpl 152 66507 0 66057 41 23 18 41 0 158 0 amappl16 200 7563 0 7540 39 35 4 15 0 8 1 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 226 0 216 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 4170 0 4142 2 0 2 2 0 8 0 amappl11 160 62 0 52 1 0 1 1 0 8 0 amappl10 152 15 0 15 1 1 0 1 0 8 0 amappl9 144 152 0 152 1 1 0 1 0 8 0 amappl8 136 19 0 17 1 0 1 1 0 8 0 amappl7 128 220 0 210 1 0 1 1 0 8 0 amappl6 120 759 0 757 1 0 1 1 0 8 0 amappl5 112 370 0 361 1 0 1 1 0 8 0 amappl4 104 463 0 447 1 0 1 1 0 8 0 amappl3 96 13096 0 12994 4 0 4 4 0 8 0 amappl2 88 1489 0 1426 2 0 2 2 0 8 0 amappl1 80 17824 0 17303 13 0 13 13 0 8 0 amappl 88 19427 0 19267 5 0 5 5 0 92 0 dma32768 32768 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 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 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 80 0 10 2 0 2 2 0 8 0 uaddrrnd 24 2606 0 2577 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2606 0 2577 1 0 1 1 0 8 0 vmmpekpl 168 20005 0 19943 4 0 4 4 0 8 0 vmmpepl 168 161743 0 160015 90 11 79 90 0 357 2 vmsppl 344 2605 0 2577 4 1 3 4 0 8 0 rwobjpl 24 50595 0 43521 44 0 44 44 0 8 0 pdppl 4096 5218 0 5154 188 122 66 80 0 8 2 pvpl 32 1273375 0 1263354 357 262 95 357 0 265 2 pmappl 216 2605 0 2577 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 840 0 498 15 0 15 15 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(ffffffff82fe75d7) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83593718,1,ffff80002a590e8c) at pool_do_get+0x57e pool_get(ffffffff83593718,1) at pool_get+0xf0 shmget_allocate_segment(ffff80002a4f22b8,ffff80002a5910e0,186,ffff80002a591030) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80002a4f22b8,ffff80002a5910e0,ffff80002a591030) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff80002a5910e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3d609079800, 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(ffffffff82fe75d7) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83593718,1,ffff80002a590e8c) at pool_do_get+0x57e pool_get(ffffffff83593718,1) at pool_get+0xf0 shmget_allocate_segment(ffff80002a4f22b8,ffff80002a5910e0,186,ffff80002a591030) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80002a4f22b8,ffff80002a5910e0,ffff80002a591030) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:480 syscall(ffff80002a5910e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3d609079800, count: -8