login: panic: pool_do_get: shmpl free list modified: page 0xfffffd806967b000; item addr 0xfffffd806967be70; offset 0x40=0x68369ad8 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 391688 80727 32767 0x10 0 0 syz-executor *306998 80727 32767 0x10 0x4000000 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833cfccd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839840e0,1,ffff800039c05248) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff839840e0,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffea7d0,ffff800039c054a0,20,ffff800039c053f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffea7d0,ffff800039c054a0,ffff800039c053f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff800039c054a0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039c054a0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb3562c6ac0, 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 0xfffffd806967b000; item addr 0xfffffd806967be70; offset 0x40=0x68369ad8 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833cfccd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839840e0,1,ffff800039c05248) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff839840e0,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffea7d0,ffff800039c054a0,20,ffff800039c053f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffea7d0,ffff800039c054a0,ffff800039c053f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff800039c054a0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039c054a0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb3562c6ac0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800039c05080 rbx 0xffff8000299dedd7 rdx 0xffff800001438e00 rcx 0xffff8000fffea7d0 rax 0xffff8000299ddff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x349607350e81221 r11 0xec7a789471a70a25 r12 0xffff8000299debd8 r13 0 r14 0 r15 0x1 rip 0xffffffff81bf7165 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800039c05070 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=306998 pid=80727 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=0xffff8000fffea2b0,0xffff8000fffeaf90 process=0xffff8000fffe5858 user=0xffff800039c00000, vmspace=0xfffffd806bf1fb60 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88125 471821 4941 32767 2 0x10 syz-executor 80727 391688 83259 32767 7 0x10 syz-executor *80727 306998 83259 32767 7 0x4000010 syz-executor 21287 143405 83084 32767 2 0x10 syz-executor 21287 122121 83084 32767 3 0x4000090 lockf syz-executor 45617 210140 91736 32767 2 0x10 syz-executor 45617 82970 91736 32767 3 0x4000090 pipewr syz-executor 45617 18563 91736 32767 3 0x4000090 ttyin syz-executor 91504 352582 3778 32767 3 0x90 nanoslp syz-executor 91504 233856 3778 32767 3 0x4000090 ttyin syz-executor 91504 56416 3778 32767 3 0x4000090 fsleep syz-executor 83084 1275 65072 32767 3 0x90 nanoslp syz-executor 4941 210307 71227 32767 3 0x90 nanoslp syz-executor 67804 476429 66905 0 3 0x100082 sbwait arp 66905 317968 23625 0 3 0x10008a sigsusp sh 91736 267694 62120 32767 3 0x90 nanoslp syz-executor 23625 95099 58076 0 3 0x80 wait syz-executor 44679 148857 7288 32767 3 0x90 nanoslp syz-executor 31810 94625 34146 32767 3 0x90 nanoslp syz-executor 83259 287814 64998 32767 3 0x90 nanoslp syz-executor 3778 406290 69321 32767 3 0x90 nanoslp syz-executor 34146 323608 74917 0 3 0x82 wait syz-executor 65072 12734 74917 0 3 0x82 wait syz-executor 71227 394095 74917 0 3 0x82 wait syz-executor 69321 86695 74917 0 3 0x82 wait syz-executor 58076 161349 74917 0 3 0x82 wait syz-executor 62120 37863 74917 0 3 0x82 wait syz-executor 7288 129840 74917 0 3 0x82 wait syz-executor 64998 333854 74917 0 3 0x82 wait syz-executor 74917 145484 73019 0 3 0x82 kqread syz-executor 73019 385123 53311 0 3 0x10008a sigsusp ksh 53311 224918 29102 0 3 0x98 kqread sshd-session 29102 67374 40263 0 3 0x92 kqread sshd-session 62163 394633 1 0 3 0x100083 ttyin getty 40263 462153 1 0 3 0x88 kqread sshd 99899 102176 47602 73 3 0x1100090 kqread syslogd 47602 242964 1 0 3 0x100082 sbwait syslogd 79396 425946 1 0 3 0x100080 kqread resolvd 71570 257238 69608 77 3 0x100092 kqread dhcpleased 72751 380804 69608 77 3 0x100092 kqread dhcpleased 69608 377803 1 0 3 0x80 kqread dhcpleased 20049 271093 0 0 3 0x14200 bored smr 64467 410645 0 0 2 0x14200 zerothread 57433 64542 0 0 3 0x14200 aiodoned aiodoned 36299 498523 0 0 3 0x14200 syncer update 70795 496001 0 0 3 0x14200 cleaner cleaner 75692 382733 0 0 3 0x14200 reaper reaper 8294 475094 0 0 3 0x14200 pgdaemon pagedaemon 1995 157260 0 0 3 0x14200 bored viomb 69747 24617 0 0 3 0x40014200 acpi0 acpi0 87060 79099 0 0 3 0x40014200 idle1 18375 358203 0 0 3 0x14200 bored softnet3 71179 140703 0 0 3 0x14200 bored softnet2 56014 205821 0 0 3 0x14200 bored softnet1 44623 304775 0 0 3 0x14200 bored softnet0 51862 238540 0 0 3 0x14200 bored systqmp 32440 348853 0 0 3 0x14200 bored systq 32481 341227 0 0 3 0x14200 tmoslp softclockmp 81368 192789 0 0 3 0x40014200 tmoslp softclock 26685 138287 0 0 3 0x40014200 idle0 1 481961 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 (0xffffffff839840f8) #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:295 #2 mtx_enter+0x62 sys/kern/kern_lock.c:252 #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:579 #7 Xsyscall+0x128 Process 80727 (syz-executor) thread 0xffff8000fffea7d0 (306998) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a20fe0) #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:579 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff839840f8) #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:295 #2 mtx_enter+0x62 sys/kern/kern_lock.c:252 #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:579 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10189 10955K 10966K 166960K 11266 0 pcb 17 12K 12K 166960K 17 0 rtable 222 6K 6K 166960K 328 0 pf 31 16K 16K 166960K 31 0 ifaddr 40 7K 7K 166960K 42 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 29 0 iov 0 0K 12K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1334 84K 84K 166960K 1355 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 27 101K 125K 166960K 159 0 sigio 1 0K 0K 166960K 2 0 proc 61 91K 115K 166960K 478 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 8 0 in_multi 89 6K 6K 166960K 89 0 ether_multi 1 0K 0K 166960K 1 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 333 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 269 178K 186K 166960K 2908 0 UVM aobj 3 2K 2K 166960K 4 0 pinsyscall 49 98K 117K 166960K 1142 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 25 1K 1K 166960K 25 0 temp 35 8674K 8738K 166960K 3655 0 kqueue 14 22K 26K 166960K 26 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 33 0 28 1 0 1 1 0 8 0 rtentry 176 105 0 1 5 0 5 5 0 8 0 unpcb 144 51 0 36 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 808 82 0 76 8 0 8 8 0 8 7 arp 128 18 0 0 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 384 182 0 169 12 0 12 12 0 8 10 nd6 144 22 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 414 0 0 26 0 26 26 0 8 0 art_table 32 415 0 0 4 0 4 4 0 8 0 art_node 16 104 0 9 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 112 1 0 0 1 0 1 1 0 8 0 shmpl 112 1 0 1 1 0 1 1 0 8 1 pool(0xffffffff839840e0:shmpl): page inconsistency: page 0xfffffd806967b000; 34 on list, 0 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1577 0 74 95 0 95 95 0 8 0 ffsino 288 1577 0 74 108 0 108 108 0 8 0 nchpl 144 1787 0 109 63 0 63 63 0 8 0 uvmvnodes 80 1658 0 0 34 0 34 34 0 8 0 vnodes 216 1658 0 0 93 0 93 93 0 8 0 namei 1024 5214 0 5214 1 0 1 1 0 8 1 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 5838 0 5838 3 1 2 2 1 8 2 plimitpl 152 39 0 14 2 0 2 2 0 8 0 sigapl 424 429 0 372 8 0 8 8 0 8 0 knotepl 120 140 0 0 5 0 5 5 0 8 0 kqueuepl 224 27 0 16 1 0 1 1 0 8 0 pipepl 336 98 0 70 3 0 3 3 0 8 0 fdescpl 520 411 0 372 4 0 4 4 0 8 0 filepl 160 1519 0 1292 14 0 14 14 0 8 3 lockfpl 104 8 0 4 1 0 1 1 0 8 0 lockfspl 48 5 0 2 1 0 1 1 0 8 0 sessionpl 144 21 0 5 1 0 1 1 0 8 0 pgrppl 48 29 0 5 1 0 1 1 0 8 0 ucredpl 104 135 0 117 1 0 1 1 0 8 0 zombiepl 144 374 0 372 1 0 1 1 0 8 0 processpl 1240 429 0 372 5 0 5 5 0 8 0 procpl 656 472 0 409 6 0 6 6 0 8 0 sockpl 728 266 0 233 13 0 13 13 0 8 9 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 114 0 0 15 0 15 15 0 8 0 mcl2k 2048 31 0 0 4 0 4 4 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 240 0 0 15 0 15 15 0 8 0 bufpl 280 2252 0 116 153 0 153 153 0 8 0 anonpl 32 3776 0 0 31 0 31 31 0 246 0 amapchunkpl 152 8362 0 7776 24 0 24 24 0 158 0 amappl16 200 1937 0 1919 5 0 5 5 0 8 3 amappl15 192 6 0 6 1 0 1 1 0 8 1 amappl14 184 108 0 96 1 0 1 1 0 8 0 amappl13 176 5 0 4 1 0 1 1 0 8 0 amappl12 168 994 0 956 2 0 2 2 0 8 0 amappl11 160 44 0 34 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 0 1 1 0 8 1 amappl9 144 249 0 249 1 0 1 1 0 8 1 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 109 0 98 1 0 1 1 0 8 0 amappl6 120 170 0 166 1 0 1 1 0 8 0 amappl5 112 112 0 106 1 0 1 1 0 8 0 amappl4 104 269 0 252 1 0 1 1 0 8 0 amappl3 96 1279 0 1144 4 0 4 4 0 8 0 amappl2 88 576 0 520 2 0 2 2 0 8 0 amappl1 80 7691 0 7085 14 0 14 14 0 8 0 amappl 88 2309 0 2111 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 3 0 1 1 0 1 1 0 8 0 uaddrrnd 24 411 0 372 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 411 0 372 1 0 1 1 0 8 0 vmmpekpl 168 4878 0 4843 2 0 2 2 0 8 0 vmmpepl 168 32441 0 30247 98 0 98 98 0 357 1 vmsppl 480 410 0 372 6 0 6 6 0 8 0 rwobjpl 72 13480 0 10918 48 0 48 48 0 8 0 pdppl 4096 830 0 744 110 10 100 100 0 8 14 pvpl 32 9875 0 0 80 0 80 80 0 265 0 pmappl 256 410 0 372 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 398 0 12 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83809ff0) 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(ffffffff83a20dd8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:128 [inline] __mp_lock(ffffffff83a20dd8) at __mp_lock+0x192 sys/kern/kern_lock.c:159 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:840 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x749d76f51a60, count: 8 ddb{0}> trace x86_ipi_db(ffffffff83809ff0) 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(ffffffff83a20dd8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:128 [inline] __mp_lock(ffffffff83a20dd8) at __mp_lock+0x192 sys/kern/kern_lock.c:159 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:840 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x749d76f51a60, 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(ffffffff833cfccd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839840e0,1,ffff800039c05248) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff839840e0,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffea7d0,ffff800039c054a0,20,ffff800039c053f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffea7d0,ffff800039c054a0,ffff800039c053f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff800039c054a0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039c054a0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb3562c6ac0, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833cfccd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839840e0,1,ffff800039c05248) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff839840e0,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffea7d0,ffff800039c054a0,20,ffff800039c053f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffea7d0,ffff800039c054a0,ffff800039c053f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff800039c054a0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039c054a0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb3562c6ac0, count: -8