login: panic: pool_do_get: shmpl free list modified: page 0xfffffd806bfec000; item addr 0xfffffd806bfec700; offset 0x40=0x686f90bd Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 213668 95722 32767 0x10 0 0 syz-executor *403636 95722 32767 0x10 0x4000000 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833d80af) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8391c818,1,ffff80003c45d0d8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff8391c818,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c43fc58,ffff80003c45d330,4,ffff80003c45d280) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c43fc58,ffff80003c45d330,ffff80003c45d280) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c45d330) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c45d330) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x26b415a5dd0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: pool_do_get: shmpl free list modified: page 0xfffffd806bfec000; item addr 0xfffffd806bfec700; offset 0x40=0x686f90bd ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833d80af) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8391c818,1,ffff80003c45d0d8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff8391c818,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c43fc58,ffff80003c45d330,4,ffff80003c45d280) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c43fc58,ffff80003c45d330,ffff80003c45d280) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c45d330) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c45d330) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x26b415a5dd0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c45cf10 rbx 0xffff8000299dedd7 rdx 0 rcx 0xffff80003c43fc58 rax 0xffff8000299ddff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xfa74fe8efde7f8f2 r11 0xa74a054d2e9513be r12 0xffff8000299debd8 r13 0 r14 0 r15 0x1 rip 0xffffffff82f7ba95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c45cf00 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=403636 pid=95722 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=50, usrpri=86, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c43f738,0xffffffff83a02d78 process=0xffff80003a010020 user=0xffff80003c458000, vmspace=0xfffffd806c38ed48 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 95722 213668 69023 32767 7 0x10 syz-executor 95722 64023 69023 32767 3 0x4000090 fsleep syz-executor 95722 430041 69023 32767 3 0x4000090 fsleep syz-executor *95722 403636 69023 32767 7 0x4000010 syz-executor 1791 443260 59280 32767 2 0x10 syz-executor 1791 262066 59280 32767 3 0x4000090 fsleep syz-executor 20528 501382 97032 32767 2 0x10 syz-executor 20528 413727 97032 32767 3 0x4000090 fsleep syz-executor 45555 297052 95487 32767 2 0x10 syz-executor 45555 478823 95487 32767 3 0x4000090 sbwait syz-executor 1199 407830 2193 32767 2 0x10 syz-executor 1199 321309 2193 32767 3 0x4000090 fsleep syz-executor 1199 422308 2193 32767 3 0x4000090 fsleep syz-executor 44220 83222 48396 32767 3 0x90 nanoslp syz-executor 44220 165062 48396 32767 3 0x4000090 fifor syz-executor 44220 372234 48396 32767 3 0x4000090 fsleep syz-executor 10166 274501 59291 32767 3 0x90 nanoslp syz-executor 10166 188846 59291 32767 3 0x4000090 msgwait syz-executor 10166 26061 59291 32767 3 0x4000090 fsleep syz-executor 77703 288333 32998 32767 3 0x90 nanoslp syz-executor 77703 105290 32998 32767 3 0x4000090 ttyin syz-executor 77703 180678 32998 32767 3 0x4000090 fsleep syz-executor 95286 68235 0 0 3 0x14200 bored sosplice 95487 327993 69850 32767 3 0x90 nanoslp syz-executor 59291 227034 38897 32767 3 0x90 nanoslp syz-executor 48396 25072 6998 32767 3 0x90 nanoslp syz-executor 97032 501029 60052 32767 3 0x90 nanoslp syz-executor 69023 514190 63407 32767 3 0x90 nanoslp syz-executor 59280 462053 68419 32767 3 0x90 nanoslp syz-executor 32998 62985 15967 32767 3 0x90 nanoslp syz-executor 2193 26296 66452 32767 3 0x90 nanoslp syz-executor 63407 350069 47202 0 3 0x82 wait syz-executor 68419 353554 47202 0 3 0x82 wait syz-executor 6998 299270 47202 0 3 0x82 wait syz-executor 15967 417018 47202 0 3 0x82 wait syz-executor 38897 458464 47202 0 3 0x82 wait syz-executor 69850 128826 47202 0 3 0x82 wait syz-executor 66452 215045 47202 0 3 0x82 wait syz-executor 60052 445777 47202 0 3 0x82 wait syz-executor 47202 333269 96777 0 3 0x82 kqread syz-executor 96777 138889 43368 0 3 0x10008a sigsusp ksh 43368 325759 67829 0 3 0x98 kqread sshd-session 67829 403227 52693 0 3 0x92 kqread sshd-session 14844 163708 1 0 3 0x100083 ttyin getty 52693 17490 1 0 3 0x88 kqread sshd 6842 324682 37339 73 3 0x1100090 kqread syslogd 37339 305602 1 0 3 0x100082 sbwait syslogd 90344 188203 1 0 3 0x100080 kqread resolvd 62053 462084 97649 77 3 0x100092 kqread dhcpleased 37004 242253 97649 77 3 0x100092 kqread dhcpleased 97649 235558 1 0 3 0x80 kqread dhcpleased 58711 13097 0 0 3 0x14200 bored smr 10241 286224 0 0 2 0x14200 zerothread 95648 83178 0 0 3 0x14200 aiodoned aiodoned 40001 451053 0 0 3 0x14200 syncer update 24187 367472 0 0 3 0x14200 cleaner cleaner 71112 88009 0 0 3 0x14200 reaper reaper 65204 500459 0 0 3 0x14200 pgdaemon pagedaemon 3861 444286 0 0 3 0x14200 bored viomb 11205 246517 0 0 3 0x40014200 acpi0 acpi0 39472 42772 0 0 3 0x40014200 idle1 60632 16136 0 0 3 0x14200 bored softnet3 99280 175964 0 0 3 0x14200 bored softnet2 34678 304317 0 0 3 0x14200 bored softnet1 46320 427221 0 0 3 0x14200 bored softnet0 20622 5689 0 0 3 0x14200 bored systqmp 2254 516778 0 0 3 0x14200 bored systq 95696 269932 0 0 3 0x14200 tmoslp softclockmp 85633 510217 0 0 3 0x40014200 tmoslp softclock 99565 239511 0 0 3 0x40014200 idle0 1 355649 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex shmpl r = 0 (0xffffffff8391c830) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 pool_get+0x10b sys/kern/subr_pool.c:578 #4 shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 #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:742 #7 Xsyscall+0x128 Process 95722 (syz-executor) thread 0xffff80003c43fc58 (403636) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838eb0d8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #1 syscall+0xae6 sys/arch/amd64/amd64/trap.c:742 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff8391c830) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 pool_get+0x10b sys/kern/subr_pool.c:578 #4 shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 #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:742 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10190 10955K 10967K 166960K 11268 0 pcb 17 12K 12K 166960K 17 0 rtable 241 6K 7K 166960K 364 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 2 1K 9K 166960K 6 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 32 0 iov 1 12K 24K 166960K 12 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1335 84K 84K 166960K 1359 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 14 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 129K 166960K 296 0 sigio 0 0K 0K 166960K 4 0 proc 61 91K 115K 166960K 508 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 21 0 in_multi 99 7K 7K 166960K 105 0 ether_multi 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 358 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 265 168K 178K 166960K 4311 0 UVM aobj 11 3K 4K 166960K 14 0 pinsyscall 47 94K 112K 166960K 1333 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 10 0 NDP 11 0K 2K 166960K 27 0 temp 44 8680K 8744K 166960K 4400 0 kqueue 14 22K 27K 166960K 46 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 49 0 45 1 0 1 1 0 8 0 rtentry 176 113 0 1 6 0 6 6 0 8 0 unpcb 144 144 0 123 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 54 0 47 1 0 1 1 0 8 0 arp 128 18 0 0 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 7 0 1 1 0 1 1 0 8 0 inpcb 328 243 0 233 6 0 6 6 0 8 5 nd6 144 26 0 0 1 0 1 1 0 8 0 kcovpl 48 8 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 457 0 0 29 0 29 29 0 8 0 art_table 32 458 0 0 4 0 4 4 0 8 0 art_node 16 112 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 11 0 3 1 0 1 1 0 8 0 pool(0xffffffff8391c818:shmpl): page inconsistency: page 0xfffffd806bfec000; 26 on list, 8 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1767 0 260 95 0 95 95 0 8 0 ffsino 288 1767 0 260 108 0 108 108 0 8 0 nchpl 144 2170 0 490 63 0 63 63 0 8 0 uvmvnodes 80 1848 0 0 38 0 38 38 0 8 0 vnodes 216 1848 0 0 103 0 103 103 0 8 0 namei 1024 6630 0 6630 2 0 2 2 0 8 2 percpumem 16 49 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 7715 0 7715 9 1 8 8 1 8 8 plimitpl 152 82 0 56 2 0 2 2 0 8 0 sigapl 424 580 0 523 8 0 8 8 0 8 1 knotepl 120 102 0 0 4 0 4 4 0 8 0 kqueuepl 224 133 0 89 3 0 3 3 0 8 0 pipepl 336 112 0 85 3 0 3 3 0 8 0 fdescpl 520 561 0 523 4 0 4 4 0 8 0 filepl 160 2416 0 2164 12 0 12 12 0 8 1 lockfpl 104 54 0 52 1 0 1 1 0 8 0 lockfspl 48 16 0 14 1 0 1 1 0 8 0 sessionpl 144 22 0 6 1 0 1 1 0 8 0 pgrppl 48 32 0 8 1 0 1 1 0 8 0 ucredpl 104 219 0 200 1 0 1 1 0 8 0 zombiepl 144 523 0 523 1 0 1 1 0 8 1 processpl 1240 580 0 523 5 0 5 5 0 8 0 procpl 656 850 0 779 7 0 7 7 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 728 438 0 403 9 0 9 9 0 8 5 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 131 0 0 17 0 17 17 0 8 0 mcl2k 2048 21 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 262 0 0 17 0 17 17 0 8 0 bufpl 280 2646 0 116 181 0 181 181 0 8 0 anonpl 32 7470 0 0 61 0 61 61 0 246 0 amapchunkpl 152 12862 0 12269 29 0 29 29 0 158 3 amappl16 200 1620 0 1597 14 4 10 14 0 8 8 amappl15 192 4 0 3 1 0 1 1 0 8 0 amappl14 184 108 0 98 1 0 1 1 0 8 0 amappl13 176 11 0 11 1 1 0 1 0 8 0 amappl12 168 1169 0 1131 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 1 0 1 1 1 0 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 20 0 19 1 0 1 1 0 8 0 amappl7 128 100 0 89 1 0 1 1 0 8 0 amappl6 120 174 0 170 1 0 1 1 0 8 0 amappl5 112 125 0 119 1 0 1 1 0 8 0 amappl4 104 300 0 284 1 0 1 1 0 8 0 amappl3 96 2195 0 2057 4 0 4 4 0 8 0 amappl2 88 614 0 561 2 0 2 2 0 8 0 amappl1 80 8794 0 8209 14 0 14 14 0 8 0 amappl 88 3630 0 3430 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 13 0 3 1 0 1 1 0 8 0 uaddrrnd 24 561 0 523 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 561 0 523 1 0 1 1 0 8 0 vmmpekpl 168 6079 0 6047 3 0 3 3 0 8 1 vmmpepl 168 41217 0 39047 105 0 105 105 0 357 10 vmsppl 480 560 0 523 7 1 6 6 0 8 0 rwobjpl 72 15267 0 12543 52 0 52 52 0 8 2 pdppl 4096 1129 0 1046 113 30 83 99 0 8 0 pvpl 32 16092 0 0 130 0 130 130 0 265 0 pmappl 256 560 0 523 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 403 0 33 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff8380aff0) 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(ffffffff838eaed0) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838eaed0) at __mp_lock+0x199 sys/kern/kern_lock.c:165 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:847 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7d52ad828110, count: 8 ddb{0}> trace x86_ipi_db(ffffffff8380aff0) 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(ffffffff838eaed0) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838eaed0) at __mp_lock+0x199 sys/kern/kern_lock.c:165 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:847 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7d52ad828110, count: -7 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833d80af) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8391c818,1,ffff80003c45d0d8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff8391c818,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c43fc58,ffff80003c45d330,4,ffff80003c45d280) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c43fc58,ffff80003c45d330,ffff80003c45d280) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c45d330) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c45d330) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x26b415a5dd0, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833d80af) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8391c818,1,ffff80003c45d0d8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff8391c818,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c43fc58,ffff80003c45d330,4,ffff80003c45d280) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c43fc58,ffff80003c45d330,ffff80003c45d280) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c45d330) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c45d330) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x26b415a5dd0, count: -8