panic: pool_do_get: shmpl free list modified: page 0xfffffd8008900000; item addr 0xfffffd8008900948; offset 0x0=0x0 != 0xe9519bc0d7b18ee Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *521090 98484 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83054d93) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff8363b620,1,ffff80003ca46e78) at pool_do_get+0x576 pool_get(ffffffff8363b620,1) at pool_get+0x103 shmget_allocate_segment(ffff80003ca28a48,ffff80003ca470d0,0,ffff80003ca47020) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80003ca28a48,ffff80003ca470d0,ffff80003ca47020) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003ca470d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe938b794200, 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 0xfffffd8008900000; item addr 0xfffffd8008900948; offset 0x0=0x0 != 0xe9519bc0d7b18ee ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83054d93) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff8363b620,1,ffff80003ca46e78) at pool_do_get+0x576 pool_get(ffffffff8363b620,1) at pool_get+0x103 shmget_allocate_segment(ffff80003ca28a48,ffff80003ca470d0,0,ffff80003ca47020) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80003ca28a48,ffff80003ca470d0,ffff80003ca47020) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003ca470d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe938b794200, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003ca46cf0 rbx 0xe9519bc0d7b18ee rdx 0xffff80000128df40 rcx 0 rax 0xffff80003ca28a48 r8 0 r9 0x8080808080808080 r10 0xffff80003ca46aa0 r11 0xe13cec70eaf19803 r12 0 r13 0xfffffd8008900948 r14 0 r15 0x1 rip 0xffffffff8172c405 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003ca46ce0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=521090 pid=98484 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a86c2a0,0xffff80003ca29c10 process=0xffff8000ffff6298 user=0xffff80003ca42000, vmspace=0xfffffd806c648448 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 52338 369463 7623 0 2 0 syz-executor 52338 358489 7623 0 3 0x4000080 fsleep syz-executor 99032 58838 79591 0 2 0 syz-executor 99032 90295 79591 0 3 0x4000080 fsleep syz-executor 99032 6122 79591 0 3 0x4000080 fsleep syz-executor 99032 358124 79591 0 3 0x4000080 fsleep syz-executor 82142 385091 5103 0 2 0 syz-executor 82142 292925 5103 0 3 0x4000080 fsleep syz-executor 71174 42214 45482 0 2 0 syz-executor 71174 31453 45482 0 3 0x4000080 fsleep syz-executor 71174 437132 45482 0 3 0x4000080 fsleep syz-executor 98484 186849 27515 0 2 0 syz-executor 98484 187209 27515 0 3 0x4000080 ttyout syz-executor *98484 521090 27515 0 7 0x4000000 syz-executor 19579 267808 398 0 2 0 syz-executor 19579 260099 398 0 3 0x4000080 fsleep syz-executor 19579 221731 398 0 3 0x4000080 fsleep syz-executor 83107 437598 59440 0 2 0 syz-executor 83107 210570 59440 0 3 0x4000080 kqsel syz-executor 83107 332560 59440 0 2 0x4000000 syz-executor 59440 54086 84329 0 2 0x482 syz-executor 19813 256999 0 0 3 0x14200 acct acct 36882 143805 1 0 3 0x100083 ttyopn getty 7623 218241 84329 0 2 0x482 syz-executor 79591 197710 84329 0 2 0x482 syz-executor 45482 509799 84329 0 2 0x482 syz-executor 398 432619 84329 0 3 0x82 nanoslp syz-executor 62663 251331 0 0 3 0x14200 bored sosplice 55947 82388 84329 0 2 0x482 syz-executor 27515 52265 84329 0 2 0x482 syz-executor 5103 487869 84329 0 2 0x482 syz-executor 84329 242605 31464 0 3 0x82 kqread syz-executor 31464 277717 69293 0 3 0x10008a sigsusp ksh 69293 283160 67376 0 3 0x98 kqread sshd-session 67376 180985 41665 0 3 0x92 kqread sshd-session 41665 365511 1 0 3 0x88 kqread sshd 74739 288227 46550 73 3 0x1100090 kqread syslogd 46550 388433 1 0 3 0x100082 sbwait syslogd 64735 272134 1 0 3 0x100080 kqread resolvd 26677 470915 79448 77 3 0x100092 kqread dhcpleased 69771 417082 79448 77 3 0x100092 kqread dhcpleased 79448 171849 1 0 3 0x80 kqread dhcpleased 78046 372654 0 0 3 0x14200 bored smr 17520 469563 0 0 2 0x14200 zerothread 14086 144682 0 0 3 0x14200 aiodoned aiodoned 79894 367634 0 0 3 0x14200 syncer update 40293 224677 0 0 3 0x14200 cleaner cleaner 47716 282986 0 0 3 0x14200 reaper reaper 4349 508848 0 0 3 0x14200 pgdaemon pagedaemon 4862 425005 0 0 3 0x14200 bored viomb 96120 400029 0 0 3 0x40014200 acpi0 acpi0 81999 126600 0 0 3 0x14200 bored softnet3 66995 367096 0 0 3 0x14200 bored softnet2 82727 93854 0 0 3 0x14200 bored softnet1 33333 515999 0 0 3 0x14200 bored softnet0 31111 202255 0 0 3 0x14200 bored systqmp 6763 463343 0 0 3 0x14200 bored systq 54140 262712 0 0 2 0x40014200 softclock 10938 400751 0 0 3 0x40014200 idle0 1 219690 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 10212 11143K 11731K 166960K 14666 0 pcb 18 16K 17K 166960K 440 0 rtable 212 9K 9K 166960K 795 0 pf 34 13K 16K 166960K 88 0 ifaddr 40 7K 7K 166960K 88 0 ifgroup 53 2K 2K 166960K 110 0 sysctl 4 1K 5K 166960K 9 0 counters 30 17K 17K 166960K 45 0 ioctlops 0 0K 4K 166960K 204 0 iov 1 0K 32K 166960K 153 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1516 95K 96K 166960K 2927 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 36 0 VM map 2 1K 1K 166960K 2 0 sem 31 17K 19K 166960K 46 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 1619 0 sigio 0 0K 0K 166960K 84 0 proc 60 59K 124K 166960K 785 0 subproc 72 4K 4K 166960K 119 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 357 0 in_multi 88 6K 7K 166960K 205 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 265 1182K 1182K 166960K 265 0 exec 0 0K 1K 166960K 1075 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 237 73K 89K 166960K 15983 0 UVM aobj 114 5K 5K 166960K 122 0 pinsyscall 39 78K 98K 166960K 2779 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 76 0 NDP 11 0K 2K 166960K 55 0 temp 77 6892K 6972K 166960K 75070 0 kqueue 13 20K 30K 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 329 0 326 5 2 3 3 0 8 2 rtentry 112 200 0 107 4 0 4 4 0 8 0 unpcb 144 1218 0 1198 8 4 4 4 0 8 2 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 597 0 591 15 14 1 8 0 8 0 arp 88 32 0 13 1 0 1 1 0 8 0 ipq 40 6 0 3 1 0 1 1 0 8 0 ipqe 40 96 0 92 1 0 1 1 0 8 0 inpcb 344 2364 0 2350 22 20 2 13 0 8 0 nd6 104 49 0 25 1 0 1 1 0 8 0 pkpcb 40 12 0 12 2 2 0 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1072 5 0 5 2 1 1 1 0 8 1 pfstscr 40 3 0 3 1 1 0 1 0 8 0 pfanchor 1288 2 0 1 1 0 1 1 0 8 0 pftag 88 1 0 1 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 5 0 3 1 0 1 1 0 8 0 pfstate 344 3 0 2 1 0 1 1 0 8 0 pfrule 1344 11 0 11 3 2 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 917 0 534 33 7 26 29 0 8 0 art_table 32 920 0 534 4 0 4 4 0 8 0 art_node 16 193 0 111 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 10 1 0 1 1 0 8 0 semapl 112 39 0 10 1 0 1 1 0 8 0 shmpl 112 119 0 9 4 0 4 4 0 8 0 shmpl: pool(0xffffffff8363b620:shmpl): free list modified: page 0xfffffd8008900000; item ordinal 0; addr 0xfffffd8008900948 (p 0xfffffd8008900000); offset 0x0=0x0 shmpl: pool(0xffffffff8363b620:shmpl): page inconsistency: page 0xfffffd8008900000; item ordinal 1; addr 0xd07491c9cf828821 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 4182 0 2681 95 0 95 95 0 8 0 ffsino 248 4182 0 2681 95 0 95 95 0 8 0 nchpl 144 6442 0 4748 63 0 63 63 0 8 0 uvmvnodes 80 5342 0 0 110 0 110 110 0 8 0 vnodes 216 5342 0 0 297 0 297 297 0 8 0 namei 1024 25650 0 25650 2 1 1 2 0 8 1 kstatmem 264 52 0 30 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 18365 0 18365 11 9 2 8 1 8 2 plimitpl 152 599 0 582 1 0 1 1 0 8 0 sigapl 424 1894 0 1846 7 0 7 7 0 8 0 futexpl 64 22848 0 22839 2 1 1 1 0 8 0 knotepl 120 614097 0 614050 46 36 10 24 0 8 6 kqueuepl 184 544 0 534 7 3 4 4 0 8 3 pipepl 296 262 0 235 5 2 3 5 0 8 0 fdescpl 440 1872 0 1842 5 1 4 5 0 8 0 filepl 120 14616 0 14390 14 3 11 13 0 8 0 lockfpl 104 660 0 658 1 0 1 1 0 8 0 lockfspl 48 189 0 187 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 53 0 37 1 0 1 1 0 8 0 ucredpl 104 2978 0 2966 1 0 1 1 0 8 0 zombiepl 144 1936 0 1935 2 1 1 1 0 8 0 processpl 1104 1894 0 1846 4 0 4 4 0 8 0 procpl 648 4031 0 3970 6 0 6 6 0 8 0 sosppl 168 9 0 9 3 2 1 1 0 8 1 sockpl 528 3962 0 3925 28 16 12 12 0 8 8 mcl64k 65536 22 0 22 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 2 2 0 1 0 8 0 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 19 0 19 3 2 1 1 0 8 1 mcl4k 4096 4354 0 4302 14 6 8 14 0 8 1 mcl2k 2048 1778 0 1775 6 3 3 3 0 8 1 mtagpl 96 155 0 113 4 2 2 2 0 8 0 mbufpl 256 22815 0 22629 167 65 102 102 0 8 83 bufpl 280 4956 0 131 345 0 345 345 0 8 0 anonpl 24 269295 0 256875 102 2 100 100 0 187 0 amapchunkpl 152 54178 0 53530 57 26 31 37 0 158 6 amappl16 200 5844 0 5354 46 7 39 39 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 114 0 104 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 2556 0 2526 3 1 2 3 0 8 0 amappl11 160 47 0 36 1 0 1 1 0 8 0 amappl10 152 10 0 10 2 2 0 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 25 0 23 1 0 1 1 0 8 0 amappl7 128 107 0 97 1 0 1 1 0 8 0 amappl6 120 219 0 214 1 0 1 1 0 8 0 amappl5 112 141 0 134 1 0 1 1 0 8 0 amappl4 104 306 0 289 1 0 1 1 0 8 0 amappl3 96 10799 0 10679 4 0 4 4 0 8 0 amappl2 88 698 0 641 2 0 2 2 0 8 0 amappl1 80 12269 0 11747 14 2 12 13 0 8 0 amappl 88 15480 0 15291 5 0 5 5 0 92 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 1 1 1 0 8 1 dma128 128 255 0 255 2 2 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 121 0 8 3 0 3 3 0 8 0 uaddrrnd 24 1872 0 1842 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1872 0 1842 1 0 1 1 0 8 0 vmmpekpl 168 14544 0 14497 3 0 3 3 0 8 0 vmmpepl 168 117237 0 114965 112 0 112 112 0 357 2 vmsppl 360 1871 0 1842 4 1 3 4 0 8 0 rwobjpl 32 36565 0 29773 55 0 55 55 0 8 0 pdppl 4096 3750 0 3684 114 48 66 82 0 8 0 pvpl 32 765761 0 748049 195 17 178 187 0 265 0 pmappl 216 1871 0 1842 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 464 0 152 9 0 9 9 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(ffffffff83054d93) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff8363b620,1,ffff80003ca46e78) at pool_do_get+0x576 pool_get(ffffffff8363b620,1) at pool_get+0x103 shmget_allocate_segment(ffff80003ca28a48,ffff80003ca470d0,0,ffff80003ca47020) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80003ca28a48,ffff80003ca470d0,ffff80003ca47020) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003ca470d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe938b794200, 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(ffffffff83054d93) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff8363b620,1,ffff80003ca46e78) at pool_do_get+0x576 pool_get(ffffffff8363b620,1) at pool_get+0x103 shmget_allocate_segment(ffff80003ca28a48,ffff80003ca470d0,0,ffff80003ca47020) at shmget_allocate_segment+0x1a7 sys_shmget(ffff80003ca28a48,ffff80003ca470d0,ffff80003ca47020) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003ca470d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe938b794200, count: -8