login: panic: pool_do_get: shmpl free list modified: page 0xfffffd8065530000; item addr 0xfffffd80655301c0; offset 0x40=0x67b0d1c2 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 3908 96314 32767 0x10 0x4000000 0 syz-executor 441621 37270 32767 0x10 0 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833aa44b) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838acce8,1,ffff80003bcd66c8) at pool_do_get+0x5da pool_get(ffffffff838acce8,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff59d0,ffff80003bcd6920,0,ffff80003bcd6870) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff59d0,ffff80003bcd6920,ffff80003bcd6870) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003bcd6920) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003bcd6920) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa25342f5570, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: pool_do_get: shmpl free list modified: page 0xfffffd8065530000; item addr 0xfffffd80655301c0; offset 0x40=0x67b0d1c2 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833aa44b) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838acce8,1,ffff80003bcd66c8) at pool_do_get+0x5da pool_get(ffffffff838acce8,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff59d0,ffff80003bcd6920,0,ffff80003bcd6870) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff59d0,ffff80003bcd6920,ffff80003bcd6870) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003bcd6920) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003bcd6920) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa25342f5570, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003bcd6500 rbx 0xffffffff837bbdc7 cpu_info_full_primary+0x2dc7 rdx 0xffff800001434100 rcx 0xffff8000ffff59d0 rax 0xffffffff837baff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5489db8f25c40edb r11 0xca021fb8073a4b6c r12 0xffffffff837bbbc8 cpu_info_full_primary+0x2bc8 r13 0 r14 0 r15 0x1 rip 0xffffffff81efde65 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003bcd64f0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=3908 pid=96314 tcnt=2 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=0xffff8000ffff4030,0xffffffff83972588 process=0xffff80003bce14a0 user=0xffff80003bcd1000, vmspace=0xfffffd806c06dad0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96314 96186 27592 32767 2 0x10 syz-executor *96314 3908 27592 32767 7 0x4000010 syz-executor 94985 59931 37270 32767 2 0x10 syz-executor 94985 102753 37270 32767 2 0x4000010 syz-executor 94985 363492 37270 32767 3 0x4000090 fsleep syz-executor 6446 5191 48025 32767 2 0x10 syz-executor 6446 295214 48025 32767 3 0x4000090 fsleep syz-executor 30487 115992 27055 32767 2 0x10 syz-executor 30487 479916 27055 32767 3 0x4000090 fsleep syz-executor 35745 156629 85035 32767 2 0x10 syz-executor 35745 326816 85035 32767 3 0x4000090 ttyout syz-executor 34889 359764 88826 32767 2 0x10 syz-executor 34889 159635 88826 32767 3 0x4000090 msgwait syz-executor 34889 68402 88826 32767 3 0x4000090 fsleep syz-executor 90368 424778 99138 32767 2 0x10 syz-executor 90368 432900 99138 32767 3 0x4000090 netacc syz-executor 88490 329669 0 0 3 0x14200 bored sosplice 37270 441621 15135 32767 7 0x10 syz-executor 48025 300773 26658 32767 3 0x90 nanoslp syz-executor 85035 130301 64909 32767 3 0x90 nanoslp syz-executor 27055 437332 79668 32767 3 0x90 nanoslp syz-executor 88826 422140 3895 32767 3 0x90 nanoslp syz-executor 27592 429275 25740 32767 3 0x90 nanoslp syz-executor 99138 221489 75249 32767 3 0x90 nanoslp syz-executor 25740 89855 80984 0 3 0x82 wait syz-executor 3895 107456 80984 0 3 0x82 wait syz-executor 15135 229129 80984 0 3 0x82 wait syz-executor 75249 383126 80984 0 3 0x82 wait syz-executor 79668 1288 80984 0 3 0x82 wait syz-executor 26658 366231 80984 0 3 0x82 wait syz-executor 64909 125231 80984 0 3 0x82 wait syz-executor 80984 253285 8026 0 2 0x2 syz-executor 8026 210907 91531 0 3 0x10008a sigsusp ksh 91531 300683 12476 0 3 0x98 kqread sshd-session 12476 432565 71413 0 3 0x92 kqread sshd-session 19641 391103 1 0 3 0x100083 ttyin getty 71413 28000 1 0 3 0x88 kqread sshd 28116 304758 81061 73 3 0x1100090 kqread syslogd 81061 249722 1 0 3 0x100082 sbwait syslogd 95443 206450 1 0 3 0x100080 kqread resolvd 48757 98251 98081 77 3 0x100092 kqread dhcpleased 791 237488 98081 77 3 0x100092 kqread dhcpleased 98081 310061 1 0 3 0x80 kqread dhcpleased 16795 134013 0 0 3 0x14200 bored smr 78452 308718 0 0 2 0x14200 zerothread 29574 445178 0 0 3 0x14200 aiodoned aiodoned 34675 210955 0 0 3 0x14200 syncer update 98144 367079 0 0 3 0x14200 cleaner cleaner 99650 142174 0 0 3 0x14200 reaper reaper 14857 444450 0 0 3 0x14200 pgdaemon pagedaemon 50306 337628 0 0 3 0x14200 bored viomb 86719 104185 0 0 3 0x40014200 acpi0 acpi0 43208 483326 0 0 3 0x40014200 idle1 88281 376281 0 0 3 0x14200 bored softnet3 99481 363334 0 0 3 0x14200 bored softnet2 68047 40901 0 0 3 0x14200 bored softnet1 93318 158895 0 0 3 0x14200 bored softnet0 19280 107675 0 0 3 0x14200 bored systqmp 16431 436768 0 0 3 0x14200 bored systq 83720 159219 0 0 3 0x14200 tmoslp softclockmp 75430 29431 0 0 3 0x40014200 tmoslp softclock 15604 28412 0 0 3 0x40014200 idle0 1 466289 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex shmpl r = 0 (0xffffffff838acd00) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pool_get+0x10b sys/kern/subr_pool.c:583 #4 shmget_allocate_segment+0x1a7 #5 sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 96314 (syz-executor) thread 0xffff8000ffff59d0 (3908) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83918cf8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #1 syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff838acd00) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pool_get+0x10b sys/kern/subr_pool.c:583 #4 shmget_allocate_segment+0x1a7 #5 sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10189 10952K 10966K 166960K 11271 0 pcb 17 12K 12K 166960K 17 0 rtable 216 6K 7K 166960K 365 0 pf 29 16K 16K 166960K 31 0 ifaddr 38 6K 7K 166960K 44 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 1 1K 1K 166960K 1 0 counters 62 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 32 0 iov 0 0K 22K 166960K 14 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1332 84K 84K 166960K 1588 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 20 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 19 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 23 85K 121K 166960K 468 0 sigio 1 0K 0K 166960K 5 0 proc 58 79K 127K 166960K 514 0 subproc 63 3K 4K 166960K 234 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 67 0 in_multi 88 6K 7K 166960K 103 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 379 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 232 65K 78K 166960K 5229 0 UVM aobj 22 5K 5K 166960K 24 0 pinsyscall 44 88K 110K 166960K 1475 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 27 0 NDP 10 0K 2K 166960K 27 0 temp 47 8638K 8702K 166960K 5033 0 kqueue 13 20K 36K 166960K 83 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 72 0 69 1 0 1 1 0 8 0 rtentry 168 114 0 13 5 0 5 5 0 8 0 unpcb 144 219 0 201 2 1 1 2 0 8 0 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 5 0 5 1 1 0 1 0 8 0 tcpcb 808 119 0 113 3 1 2 2 0 8 1 arp 120 18 0 2 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 1 1 0 1 1 0 8 0 inpcb 376 354 0 345 5 3 2 5 0 8 1 nd6 136 27 0 4 1 0 1 1 0 8 0 kcovpl 48 26 0 19 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 459 0 46 29 1 28 29 0 8 0 art_table 32 460 0 46 4 0 4 4 0 8 0 art_node 16 113 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 17 0 7 1 0 1 1 0 8 0 shmpl 112 21 0 2 1 0 1 1 0 8 0 pool(0xffffffff838acce8:shmpl): page inconsistency: page 0xfffffd8065530000; 15 on list, 19 missing, 35 items per page dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1978 0 455 96 0 96 96 0 8 0 ffsino 280 1978 0 455 109 0 109 109 0 8 0 nchpl 144 2539 0 849 63 0 63 63 0 8 0 uvmvnodes 80 2221 0 0 46 0 46 46 0 8 0 vnodes 216 2221 0 0 124 0 124 124 0 8 0 namei 1024 8252 0 8252 2 1 1 2 0 8 1 percpumem 16 46 0 1 1 0 1 1 0 8 0 kstatmem 264 22 0 2 2 0 2 2 0 8 0 scxspl 216 8178 0 8178 9 7 2 8 1 8 2 plimitpl 152 109 0 84 2 1 1 2 0 8 0 sigapl 424 706 0 651 7 0 7 7 0 8 0 futexpl 64 3856 0 3852 1 0 1 1 0 8 0 knotepl 120 536 0 0 16 0 16 16 0 8 0 kqueuepl 216 165 0 155 3 2 1 3 0 8 0 pipepl 328 181 0 154 3 0 3 3 0 8 0 fdescpl 504 687 0 652 6 1 5 6 0 8 0 filepl 152 3676 0 3470 13 4 9 13 0 8 0 lockfpl 104 114 0 112 1 0 1 1 0 8 0 lockfspl 48 43 0 41 1 0 1 1 0 8 0 sessionpl 144 42 0 27 1 0 1 1 0 8 0 pgrppl 48 124 0 101 1 0 1 1 0 8 0 ucredpl 104 678 0 660 1 0 1 1 0 8 0 zombiepl 144 652 0 651 1 0 1 1 0 8 0 processpl 1168 706 0 651 5 0 5 5 0 8 0 procpl 656 1159 0 1095 7 1 6 7 0 8 0 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 688 650 0 620 6 2 4 6 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 234 0 0 15 0 15 15 0 8 0 bufpl 280 2750 0 125 188 0 188 188 0 8 0 anonpl 24 119131 0 115975 34 7 27 34 0 184 3 amapchunkpl 152 16526 0 15985 28 6 22 27 0 158 1 amappl16 200 1942 0 1919 5 3 2 5 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 104 0 94 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 1278 0 1243 4 2 2 3 0 8 0 amappl11 160 44 0 34 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 23 0 22 1 0 1 1 0 8 0 amappl7 128 95 0 85 1 0 1 1 0 8 0 amappl6 120 169 0 166 1 0 1 1 0 8 0 amappl5 112 116 0 108 1 0 1 1 0 8 0 amappl4 104 278 0 264 1 0 1 1 0 8 0 amappl3 96 3016 0 2888 5 1 4 4 0 8 0 amappl2 88 629 0 575 2 0 2 2 0 8 0 amappl1 80 8985 0 8445 13 0 13 13 0 8 0 amappl 88 4841 0 4656 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 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 23 0 2 1 0 1 1 0 8 0 uaddrrnd 24 687 0 652 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 687 0 652 1 0 1 1 0 8 0 vmmpekpl 168 7479 0 7440 4 1 3 3 0 8 0 vmmpepl 168 47508 0 45587 99 10 89 96 0 357 1 vmsppl 456 686 0 652 6 1 5 6 0 8 0 rwobjpl 64 17716 0 14648 51 0 51 51 0 8 0 pdppl 4096 1382 0 1304 123 41 82 96 0 8 4 pvpl 32 12597 0 0 103 1 102 102 0 265 0 pmappl 248 686 0 652 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 309 0 48 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833aa44b) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838acce8,1,ffff80003bcd66c8) at pool_do_get+0x5da pool_get(ffffffff838acce8,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff59d0,ffff80003bcd6920,0,ffff80003bcd6870) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff59d0,ffff80003bcd6920,ffff80003bcd6870) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003bcd6920) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003bcd6920) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa25342f5570, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029aabff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83918af0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83918af0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff80003c4eaef0) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4eaef0) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b12d837d940, count: 9 ddb{1}> trace x86_ipi_db(ffff800029aabff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83918af0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83918af0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff80003c4eaef0) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4eaef0) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b12d837d940, count: -6