panic: pool_do_get: shmpl free list modified: page 0xfffffd806ab7b000; item addr 0xfffffd806ab7bcb0; offset 0x40=0x68936259 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 113217 79735 0 0 0 0 syz-executor *289374 61467 0 0 0x4000000 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83368bcd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8399b388,1,ffff80003ac3fce8) at pool_do_get+0x5df pool_get(ffffffff8399b388,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c44c558,ffff80003ac3ff40,14,ffff80003ac3fe90) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c44c558,ffff80003ac3ff40,ffff80003ac3fe90) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003ac3ff40) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003ac3ff40) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb9e2325b0, 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 0xfffffd806ab7b000; item addr 0xfffffd806ab7bcb0; offset 0x40=0x68936259 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83368bcd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8399b388,1,ffff80003ac3fce8) at pool_do_get+0x5df pool_get(ffffffff8399b388,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c44c558,ffff80003ac3ff40,14,ffff80003ac3fe90) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c44c558,ffff80003ac3ff40,ffff80003ac3fe90) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003ac3ff40) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003ac3ff40) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb9e2325b0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003ac3fb10 rbx 0xffff8000299eeddf rdx 0xffff800001451600 rcx 0xffff80003c44c558 rax 0xffff8000299edff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb5f5cf419ee8e0a0 r11 0x2e560a8d630fdc92 r12 0xffff8000299eebe0 r13 0 r14 0 r15 0x1 rip 0xffffffff81b70d75 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003ac3fb00 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=289374 pid=61467 tcnt=2 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=0xffff80003c44d250,0xffff80003c44c2d0 process=0xffff800037826240 user=0xffff80003ac3a000, vmspace=0xfffffd806b9e27b8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40191 118295 41334 0 2 0 syz-executor 79735 113217 73282 0 7 0 syz-executor 79735 398128 73282 0 2 0x4000000 syz-executor 61467 148278 20895 0 2 0 syz-executor *61467 289374 20895 0 7 0x4000000 syz-executor 86340 23162 60816 0 2 0 syz-executor 86340 44033 60816 0 3 0x4000080 fsleep syz-executor 86340 42440 60816 0 3 0x4000080 fsleep syz-executor 46726 376379 94310 0 3 0x80 nanoslp syz-executor 46726 171705 94310 0 3 0x4000000 smrbar syz-executor 46726 2282 94310 0 3 0x4000080 fsleep syz-executor 90527 46375 45956 -1 3 0x90 nanoslp syz-executor 90527 44064 45956 -1 3 0x4000090 sbwait syz-executor 90527 212111 45956 -1 3 0x4000090 fsleep syz-executor 95674 251427 1 0 3 0x82 nanoslp getty 94310 215971 44512 0 3 0x82 nanoslp syz-executor 41334 413933 44512 0 3 0x82 nanoslp syz-executor 73282 229889 44512 0 3 0x82 nanoslp syz-executor 99937 130019 44512 0 2 0x2 syz-executor 45956 254268 44512 0 3 0x82 nanoslp syz-executor 19493 427600 44512 0 3 0x82 nanoslp syz-executor 20895 381902 44512 0 3 0x82 nanoslp syz-executor 60816 424274 44512 0 3 0x82 nanoslp syz-executor 44512 169029 76902 0 3 0x82 kqread syz-executor 76902 343224 28051 0 3 0x10008a sigsusp ksh 28051 399117 15963 0 3 0x98 kqread sshd-session 15963 454699 86635 0 3 0x92 kqread sshd-session 86635 78417 1 0 3 0x88 kqread sshd 93146 515097 28126 74 3 0x1100092 bpf pflogd 28126 433837 1 0 3 0x80 sbwait pflogd 98405 510984 60442 73 3 0x1100090 kqread syslogd 60442 346408 1 0 3 0x100082 sbwait syslogd 69418 326568 1 0 3 0x100080 kqread resolvd 9374 503364 77402 77 3 0x100092 kqread dhcpleased 80762 513675 77402 77 3 0x100092 kqread dhcpleased 77402 377295 1 0 3 0x80 kqread dhcpleased 96240 224885 0 0 3 0x14200 bored smr 64140 315607 0 0 2 0x14200 zerothread 41813 521736 0 0 3 0x14200 aiodoned aiodoned 45665 247653 0 0 3 0x14200 syncer update 90479 156064 0 0 3 0x14200 cleaner cleaner 54482 164946 0 0 3 0x14200 reaper reaper 62192 131118 0 0 3 0x14200 pgdaemon pagedaemon 35235 342761 0 0 3 0x14200 bored viomb 92095 295803 0 0 3 0x40014200 acpi0 acpi0 30729 363668 0 0 3 0x40014200 idle1 43406 466902 0 0 3 0x14200 bored softnet7 89620 74093 0 0 3 0x14200 bored softnet6 84536 372340 0 0 3 0x14200 bored softnet5 39504 444098 0 0 3 0x14200 bored softnet4 3460 382099 0 0 3 0x14200 bored softnet3 82093 162954 0 0 3 0x14200 bored softnet2 94808 28180 0 0 3 0x14200 bored softnet1 65001 156306 0 0 3 0x14200 bored softnet0 8092 132477 0 0 3 0x14200 bored systqmp 56255 403300 0 0 3 0x14200 bored systq 17758 352866 0 0 3 0x14200 tmoslp softclockmp 41649 471334 0 0 3 0x40014200 tmoslp softclock 38625 431038 0 0 3 0x40014200 idle0 1 19489 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 (0xffffffff8399b3a0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 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+0x124 sys/kern/subr_pool.c:581 #4 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #5 sys_shmget+0x195 sys/kern/sysv_shm.c:482 #6 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 #7 Xsyscall+0x128 Process 61467 (syz-executor) thread 0xffff80003c44c558 (289374) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83997fc0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] #1 syscall+0xaf4 sys/arch/amd64/amd64/trap.c:748 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff8399b3a0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 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+0x124 sys/kern/subr_pool.c:581 #4 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #5 sys_shmget+0x195 sys/kern/sysv_shm.c:482 #6 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10207 11158K 11196K 166960K 11465 0 pcb 18 12K 12K 166960K 33 0 rtable 217 8K 8K 166960K 281 0 pf 39 18K 19K 166960K 63 0 ifaddr 46 8K 8K 166960K 56 0 ifgroup 62 2K 2K 166960K 77 0 sysctl 3 1K 9K 166960K 7 0 counters 74 37K 37K 166960K 92 0 ioctlops 0 0K 4K 166960K 1501 0 iov 0 0K 16K 166960K 11 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1401 88K 89K 166960K 1527 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 6 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 236K 166960K 252 0 sigio 0 0K 0K 166960K 3 0 proc 72 115K 180K 166960K 549 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 11 0 in_multi 100 7K 7K 166960K 104 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 367 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 233 159K 169K 166960K 3925 0 UVM aobj 5 2K 2K 166960K 7 0 pinsyscall 42 84K 106K 166960K 1321 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 14 0K 1K 166960K 35 0 temp 39 8639K 8710K 166960K 7525 0 kqueue 16 26K 26K 166960K 39 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 43 0 40 1 0 1 1 0 8 0 rtentry 176 97 0 2 5 0 5 5 0 8 0 unpcb 144 102 0 83 2 0 2 2 0 8 1 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 32 0 28 1 0 1 1 0 8 0 arp 128 10 0 0 1 0 1 1 0 8 0 inpcb 328 213 0 203 7 0 7 7 0 8 5 nd6 144 16 0 0 1 0 1 1 0 8 0 pkpcb 40 68 0 67 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1192 9 0 7 1 0 1 1 0 8 0 pppxif 1504 2 0 1 1 0 1 1 0 8 0 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 17 0 0 1 0 1 1 0 8 0 pfstkey 128 17 0 0 1 0 1 1 0 8 0 pfstate 384 17 0 0 2 0 2 2 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 443 0 0 28 0 28 28 0 8 0 art_table 40 444 0 0 5 0 5 5 0 8 0 art_node 32 97 0 12 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 8 0 4 1 0 1 1 0 8 0 shmpl 112 4 0 2 1 0 1 1 0 8 0 pool(0xffffffff8399b388:shmpl): page inconsistency: page 0xfffffd806ab7b000; 32 on list, 2 missing, 35 items per page dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1780 0 269 96 0 96 96 0 8 0 ffsino 296 1780 0 269 118 0 118 118 0 8 0 nchpl 144 2116 0 427 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 uvmvnodes 80 1979 0 0 41 0 41 41 0 8 0 vnodes 216 1979 0 0 110 0 110 110 0 8 0 namei 1024 6778 0 6778 2 0 2 2 0 8 2 percpumem 16 61 0 9 1 0 1 1 0 8 0 kstatmem 264 40 0 10 3 0 3 3 0 8 1 scxspl 216 7670 0 7670 3 2 1 2 1 8 1 plimitpl 152 41 0 24 1 0 1 1 0 8 0 sigapl 424 542 0 489 7 0 7 7 0 8 0 knotepl 120 306 0 0 10 0 10 10 0 8 0 kqueuepl 224 53 0 39 1 0 1 1 0 8 0 pipepl 344 147 0 120 6 0 6 6 0 8 3 fdescpl 528 520 0 489 3 0 3 3 0 8 0 filepl 160 2359 0 2132 15 0 15 15 0 8 5 lockfpl 104 178 0 175 2 0 2 2 0 8 1 lockfspl 48 22 0 19 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 167 0 153 1 0 1 1 0 8 0 zombiepl 144 490 0 489 1 0 1 1 0 8 0 processpl 1248 542 0 489 5 0 5 5 0 8 0 procpl 664 739 0 678 7 0 7 7 0 8 1 sockpl 752 428 0 395 10 0 10 10 0 8 6 mcl64k 65536 2 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 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 124 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 35 0 0 5 0 5 5 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 150 0 0 10 0 10 10 0 8 0 bufpl 280 3207 0 124 221 0 221 221 0 8 0 anonpl 32 7418 0 0 60 0 60 60 0 246 0 amapchunkpl 152 11924 0 11447 31 3 28 28 0 158 8 amappl16 200 2167 0 2139 7 1 6 6 0 8 2 amappl15 192 22 0 21 2 1 1 1 0 8 0 amappl14 184 111 0 99 1 0 1 1 0 8 0 amappl13 176 16 0 16 1 1 0 1 0 8 0 amappl12 168 1176 0 1146 3 1 2 2 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 35 0 35 1 1 0 1 0 8 0 amappl9 144 244 0 244 1 1 0 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 110 0 98 1 0 1 1 0 8 0 amappl6 120 175 0 172 1 0 1 1 0 8 0 amappl5 112 125 0 116 1 0 1 1 0 8 0 amappl4 104 340 0 321 1 0 1 1 0 8 0 amappl3 96 1962 0 1852 4 0 4 4 0 8 1 amappl2 88 628 0 566 2 0 2 2 0 8 0 amappl1 80 8566 0 7963 15 0 15 15 0 8 2 amappl 88 3235 0 3074 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 6 0 2 1 0 1 1 0 8 0 uaddrrnd 24 520 0 489 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 520 0 489 1 0 1 1 0 8 0 vmmpekpl 168 5967 0 5932 3 0 3 3 0 8 0 vmmpepl 168 40253 0 38286 94 0 94 94 0 357 4 vmsppl 488 519 0 489 5 0 5 5 0 8 1 rwobjpl 80 15684 0 12774 60 0 60 60 0 8 0 pdppl 4096 1048 0 978 98 26 72 86 0 8 2 pvpl 32 14303 0 0 117 1 116 116 0 265 0 pmappl 256 519 0 489 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 271 0 28 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff8385eff0) 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(ffffffff83997db8) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83997db8) at __mp_lock+0x199 sys/kern/kern_lock.c:165 softintr_dispatch(0) at softintr_dispatch+0x125 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: 0x7a5b5d4ada30, count: 8 ddb{0}> trace x86_ipi_db(ffffffff8385eff0) 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(ffffffff83997db8) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83997db8) at __mp_lock+0x199 sys/kern/kern_lock.c:165 softintr_dispatch(0) at softintr_dispatch+0x125 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: 0x7a5b5d4ada30, 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(ffffffff83368bcd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8399b388,1,ffff80003ac3fce8) at pool_do_get+0x5df pool_get(ffffffff8399b388,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c44c558,ffff80003ac3ff40,14,ffff80003ac3fe90) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c44c558,ffff80003ac3ff40,ffff80003ac3fe90) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003ac3ff40) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003ac3ff40) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb9e2325b0, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83368bcd) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8399b388,1,ffff80003ac3fce8) at pool_do_get+0x5df pool_get(ffffffff8399b388,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c44c558,ffff80003ac3ff40,14,ffff80003ac3fe90) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c44c558,ffff80003ac3ff40,ffff80003ac3fe90) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003ac3ff40) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003ac3ff40) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb9e2325b0, count: -8