panic: pool_do_get: shmpl free list modified: page 0xfffffd805fa95000; item addr 0xfffffd805fa955b8; offset 0x40=0x682787de Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 367889 8661 32767 0x10 0 1 syz-executor *519471 8661 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833db3b7) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83979430,1,ffff80003c4190b8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff83979430,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c444548,ffff80003c419310,0,ffff80003c419260) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c444548,ffff80003c419310,ffff80003c419260) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c419310) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c419310) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeded4362950, 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 0xfffffd805fa95000; item addr 0xfffffd805fa955b8; offset 0x40=0x682787de ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833db3b7) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83979430,1,ffff80003c4190b8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff83979430,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c444548,ffff80003c419310,0,ffff80003c419260) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c444548,ffff80003c419310,ffff80003c419260) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c419310) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c419310) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeded4362950, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c418ef0 rbx 0xffffffff837ffdd7 cpu_info_full_primary+0x2dd7 rdx 0xffff8000014383c0 rcx 0xffff80003c444548 rax 0xffffffff837feff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x35c52d9d2520d110 r11 0x59189b3908e5fb1a r12 0xffffffff837ffbd8 cpu_info_full_primary+0x2bd8 r13 0 r14 0 r15 0x1 rip 0xffffffff81627525 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c418ee0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=519471 pid=8661 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=0xffff80003c445738,0xffffffff838c36f0 process=0xffff80003c410020 user=0xffff80003c414000, vmspace=0xfffffd806c1723e0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 8661 367889 48452 32767 7 0x10 syz-executor * 8661 519471 48452 32767 7 0x4000010 syz-executor 33021 310781 70812 32767 3 0x90 nanoslp syz-executor 33021 506201 70812 32767 3 0x4000090 ttyin syz-executor 90589 55541 66579 32767 3 0x90 nanoslp syz-executor 90589 518702 66579 32767 3 0x4000090 fsleep syz-executor 90589 255498 66579 32767 3 0x4000090 pipewr syz-executor 59606 381032 86669 32767 3 0x90 nanoslp syz-executor 59606 365396 86669 32767 3 0x4000090 lockf syz-executor 59606 247526 86669 32767 3 0x4000090 lockf syz-executor 59606 227931 86669 32767 3 0x4000090 fsleep syz-executor 59961 516064 84086 32767 3 0x90 nanoslp syz-executor 59961 459168 84086 32767 3 0x4000090 netacc syz-executor 37285 82972 0 0 3 0x14200 bored sosplice 66579 505549 87435 32767 3 0x90 nanoslp syz-executor 77239 69823 20746 32767 3 0x90 wait syz-executor 95257 359962 38785 32767 3 0x90 wait syz-executor 70812 324918 3053 32767 3 0x90 nanoslp syz-executor 84086 209884 55181 32767 3 0x90 nanoslp syz-executor 8550 58718 10235 32767 3 0x90 nanoslp syz-executor 48452 419044 46788 32767 3 0x90 nanoslp syz-executor 86669 19229 3339 32767 3 0x90 nanoslp syz-executor 3053 452501 40836 0 3 0x82 wait syz-executor 55181 420727 40836 0 3 0x82 wait syz-executor 38785 420414 40836 0 3 0x82 wait syz-executor 87435 497131 40836 0 3 0x82 wait syz-executor 3339 71052 40836 0 3 0x82 wait syz-executor 10235 94885 40836 0 3 0x82 wait syz-executor 46788 275641 40836 0 3 0x82 wait syz-executor 20746 234140 40836 0 3 0x82 wait syz-executor 40836 268934 14711 0 3 0x82 kqread syz-executor 14711 444492 96615 0 3 0x10008a sigsusp ksh 96615 482888 5129 0 3 0x98 kqread sshd-session 5129 390474 87723 0 3 0x92 kqread sshd-session 96371 344558 1 0 3 0x100083 ttyin getty 87723 187571 1 0 3 0x88 kqread sshd 92905 332929 87858 73 3 0x1100090 kqread syslogd 87858 489713 1 0 3 0x100082 sbwait syslogd 76537 131379 1 0 3 0x100080 kqread resolvd 74287 357417 4267 77 3 0x100092 kqread dhcpleased 47498 245127 4267 77 3 0x100092 kqread dhcpleased 4267 517123 1 0 3 0x80 kqread dhcpleased 15433 29553 0 0 3 0x14200 bored smr 56447 347819 0 0 3 0x14200 pgzero zerothread 2448 93400 0 0 3 0x14200 aiodoned aiodoned 37874 454924 0 0 3 0x14200 syncer update 34678 373673 0 0 3 0x14200 cleaner cleaner 48135 517561 0 0 3 0x14200 reaper reaper 66491 28515 0 0 3 0x14200 pgdaemon pagedaemon 48148 496542 0 0 3 0x14200 bored viomb 93601 438651 0 0 3 0x40014200 acpi0 acpi0 88132 402111 0 0 3 0x40014200 idle1 43608 336282 0 0 3 0x14200 bored softnet3 38874 398369 0 0 3 0x14200 bored softnet2 36892 366021 0 0 3 0x14200 bored softnet1 71155 360719 0 0 3 0x14200 bored softnet0 96547 243634 0 0 3 0x14200 bored systqmp 71289 354232 0 0 3 0x14200 bored systq 49982 483240 0 0 3 0x14200 tmoslp softclockmp 23048 404368 0 0 3 0x40014200 tmoslp softclock 21690 41404 0 0 3 0x40014200 idle0 1 421314 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 (0xffffffff83979448) #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+0x178 sys/kern/kern_lock.c:-1 #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 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 8661 (syz-executor) thread 0xffff80003c444548 (519471) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839319f8) #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 (0xffffffff83979448) #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+0x178 sys/kern/kern_lock.c:-1 #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 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10192 10955K 10966K 166960K 11269 0 pcb 17 12K 12K 166960K 17 0 rtable 238 6K 7K 166960K 355 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 3 1K 9K 166960K 8 0 counters 66 36K 36K 166960K 66 0 ioctlops 0 0K 2K 166960K 32 0 iov 0 0K 24K 166960K 31 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1334 84K 84K 166960K 1434 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 83 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 121K 166960K 439 0 sigio 1 0K 0K 166960K 12 0 proc 58 79K 115K 166960K 513 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 53 0 in_multi 99 7K 7K 166960K 104 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 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 427 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 282 174K 184K 166960K 5548 0 UVM aobj 48 3K 3K 166960K 51 0 pinsyscall 47 94K 112K 166960K 1446 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 23 0 NDP 11 0K 2K 166960K 27 0 temp 45 8676K 8742K 166960K 6630 0 kqueue 14 22K 30K 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 26 0 0 1 0 1 1 0 8 0 rtpcb 120 50 0 47 1 0 1 1 0 8 0 rtentry 176 115 0 3 6 0 6 6 0 8 0 unpcb 144 253 0 235 2 0 2 2 0 8 1 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 3 0 3 1 0 1 1 0 8 1 tcpcb 808 294 0 287 8 0 8 8 0 8 7 arp 128 19 0 0 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 0 1 0 1 1 0 8 0 inpcb 384 720 0 705 9 0 9 9 0 8 7 nd6 144 27 0 2 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 483 0 28 30 0 30 30 0 8 0 art_table 32 484 0 28 4 0 4 4 0 8 0 art_node 16 114 0 12 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 112 80 0 70 1 0 1 1 0 8 0 shmpl 112 48 0 3 2 0 2 2 0 8 0 pool(0xffffffff83979430:shmpl): page inconsistency: page 0xfffffd805fa95000; 23 on list, 11 missing, 35 items per page dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2054 0 547 95 0 95 95 0 8 0 ffsino 288 2054 0 547 108 0 108 108 0 8 0 nchpl 144 2669 0 986 63 0 63 63 0 8 0 uvmvnodes 80 2135 0 0 44 0 44 44 0 8 0 vnodes 216 2135 0 0 119 0 119 119 0 8 0 namei 1024 8183 0 8183 1 0 1 1 0 8 1 percpumem 16 48 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 8672 0 8672 5 2 3 3 1 8 3 plimitpl 152 155 0 129 2 0 2 2 0 8 0 sigapl 424 713 0 656 8 0 8 8 0 8 1 knotepl 120 315 0 0 10 0 10 10 0 8 0 kqueuepl 224 147 0 135 2 0 2 2 0 8 1 pipepl 336 118 0 90 3 0 3 3 0 8 0 fdescpl 520 694 0 656 3 0 3 3 0 8 0 filepl 160 3552 0 3261 13 0 13 13 0 8 0 lockfpl 104 82 0 75 1 0 1 1 0 8 0 lockfspl 48 31 0 28 1 0 1 1 0 8 0 sessionpl 144 24 0 8 1 0 1 1 0 8 0 pgrppl 48 33 0 9 1 0 1 1 0 8 0 ucredpl 104 627 0 608 1 0 1 1 0 8 0 zombiepl 144 659 0 656 1 0 1 1 0 8 0 processpl 1208 713 0 656 5 0 5 5 0 8 0 procpl 656 1200 0 1135 7 0 7 7 0 8 0 sosppl 168 7 0 7 1 0 1 1 0 8 1 sockpl 728 1031 0 996 10 0 10 10 0 8 6 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 129 0 0 17 0 17 17 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 228 0 0 15 0 15 15 0 8 0 bufpl 280 2932 0 119 201 0 201 201 0 8 0 anonpl 32 8603 0 0 70 0 70 70 0 246 0 amapchunkpl 152 17155 0 16479 37 0 37 37 0 158 8 amappl16 200 2624 0 2594 18 5 13 15 0 8 7 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 103 0 93 1 0 1 1 0 8 0 amappl13 176 29 0 29 1 1 0 1 0 8 0 amappl12 168 1284 0 1246 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 257 0 257 1 1 0 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 111 0 101 1 0 1 1 0 8 0 amappl6 120 166 0 163 1 0 1 1 0 8 0 amappl5 112 154 0 147 1 0 1 1 0 8 0 amappl4 104 286 0 268 1 0 1 1 0 8 0 amappl3 96 3170 0 3028 4 0 4 4 0 8 0 amappl2 88 611 0 555 2 0 2 2 0 8 0 amappl1 80 9544 0 8967 14 0 14 14 0 8 0 amappl 88 4859 0 4646 6 0 6 6 0 92 1 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 50 0 3 1 0 1 1 0 8 0 uaddrrnd 24 694 0 656 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 694 0 656 1 0 1 1 0 8 0 vmmpekpl 168 7258 0 7223 2 0 2 2 0 8 0 vmmpepl 168 50090 0 47891 106 0 106 106 0 357 6 vmsppl 480 693 0 656 7 1 6 6 0 8 0 rwobjpl 72 18301 0 15233 58 0 58 58 0 8 1 pdppl 4096 1396 0 1312 114 28 86 98 0 8 2 pvpl 32 16107 0 0 130 0 130 130 0 265 0 pmappl 256 693 0 656 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 409 0 31 11 0 11 11 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(ffffffff833db3b7) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83979430,1,ffff80003c4190b8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff83979430,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c444548,ffff80003c419310,0,ffff80003c419260) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c444548,ffff80003c419310,ffff80003c419260) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c419310) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c419310) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeded4362950, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299ddff0) 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 end of kernel end trace frame: 0x7019fb630f60, count: 12 ddb{1}> trace x86_ipi_db(ffff8000299ddff0) 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 end of kernel end trace frame: 0x7019fb630f60, count: -3