panic: pool_do_get: shmpl free list modified: page 0xfffffd8065358000; item addr 0xfffffd8065358a80; offset 0x40=0x67accc29 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 390293 41948 32767 0x10 0 1 syz-executor * 22358 41948 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff833a6a27) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83989de0,1,ffff80003c560358) at pool_do_get+0x5da pool_get(ffffffff83989de0,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff4f88,ffff80003c5605b0,0,ffff80003c560500) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff4f88,ffff80003c5605b0,ffff80003c560500) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c5605b0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5605b0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a6f5bf0fe0, 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 0xfffffd8065358000; item addr 0xfffffd8065358a80; offset 0x40=0x67accc29 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff833a6a27) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83989de0,1,ffff80003c560358) at pool_do_get+0x5da pool_get(ffffffff83989de0,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff4f88,ffff80003c5605b0,0,ffff80003c560500) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff4f88,ffff80003c5605b0,ffff80003c560500) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c5605b0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5605b0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a6f5bf0fe0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c560190 rbx 0xffffffff837c3dc7 cpu_info_full_primary+0x2dc7 rdx 0xffff800001421d80 rcx 0xffff8000ffff4f88 rax 0xffffffff837c2ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x930cc0b84b00ce18 r11 0x45a2e79e0c4592e6 r12 0xffffffff837c3bc8 cpu_info_full_primary+0x2bc8 r13 0 r14 0 r15 0x1 rip 0xffffffff81809c75 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c560180 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=22358 pid=41948 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff5738,0xffff8000ffff5228 process=0xffff80003a101930 user=0xffff80003c55b000, vmspace=0xfffffd806bf9a3b8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29944 294954 78784 32767 2 0x10 syz-executor 41948 390293 18358 32767 7 0x10 syz-executor *41948 22358 18358 32767 7 0x4000010 syz-executor 93332 199795 40417 32767 2 0x10 syz-executor 93332 78089 40417 32767 3 0x4000090 fsleep syz-executor 21078 491995 23892 32767 2 0x10 syz-executor 21078 156164 23892 32767 3 0x4000090 fsleep syz-executor 42305 314596 6613 32767 2 0x10 syz-executor 42305 120274 6613 32767 2 0x4000010 syz-executor 78241 134515 95902 32767 3 0x90 nanoslp syz-executor 78241 262147 95902 32767 3 0x4000090 semwait syz-executor 78241 450280 95902 32767 3 0x4000090 fsleep syz-executor 39991 513553 75872 32767 2 0x10 syz-executor 39991 226084 75872 32767 3 0x4000090 piperd syz-executor 39991 510429 75872 32767 3 0x4000090 piperd syz-executor 80419 111657 13295 32767 3 0x90 nanoslp syz-executor 80419 217662 13295 32767 3 0x4000090 sbwait syz-executor 80419 320858 13295 32767 3 0x4000090 fsleep syz-executor 28181 88543 0 0 3 0x14200 bored sosplice 13295 111716 28820 32767 3 0x90 nanoslp syz-executor 6613 199229 31468 32767 2 0x10 syz-executor 75872 170398 13315 32767 2 0x10 syz-executor 95902 515468 68547 32767 2 0x10 syz-executor 23892 136540 16299 32767 3 0x90 nanoslp syz-executor 18358 377731 79633 32767 3 0x90 nanoslp syz-executor 40417 149640 13936 32767 3 0x90 nanoslp syz-executor 78784 286065 64409 32767 3 0x90 nanoslp syz-executor 28820 125145 33828 0 3 0x82 wait syz-executor 31468 308418 33828 0 3 0x82 wait syz-executor 13315 131455 33828 0 3 0x82 wait syz-executor 16299 127941 33828 0 3 0x82 wait syz-executor 13936 208799 33828 0 3 0x82 wait syz-executor 68547 44462 33828 0 3 0x82 wait syz-executor 64409 179652 33828 0 3 0x82 wait syz-executor 79633 327187 33828 0 3 0x82 wait syz-executor 33828 366242 89254 0 3 0x82 kqread syz-executor 89254 390591 8098 0 3 0x10008a sigsusp ksh 8098 427209 35155 0 3 0x98 kqread sshd-session 35155 128695 55427 0 3 0x92 kqread sshd-session 56050 370176 1 0 3 0x100083 ttyin getty 55427 79757 1 0 3 0x88 kqread sshd 63444 45952 50876 73 3 0x1100090 kqread syslogd 50876 208488 1 0 3 0x100082 sbwait syslogd 79499 412547 1 0 3 0x100080 kqread resolvd 27776 52344 93560 77 3 0x100092 kqread dhcpleased 27706 476072 93560 77 3 0x100092 kqread dhcpleased 93560 489362 1 0 3 0x80 kqread dhcpleased 46403 460312 0 0 3 0x14200 bored smr 81922 503657 0 0 2 0x14200 zerothread 23856 160378 0 0 3 0x14200 aiodoned aiodoned 53474 197105 0 0 3 0x14200 syncer update 28011 262071 0 0 3 0x14200 cleaner cleaner 62716 113441 0 0 3 0x14200 reaper reaper 1233 396352 0 0 3 0x14200 pgdaemon pagedaemon 46344 219047 0 0 3 0x14200 bored viomb 72658 18915 0 0 3 0x40014200 acpi0 acpi0 14348 88060 0 0 3 0x40014200 idle1 53451 14680 0 0 3 0x14200 bored softnet3 1601 116007 0 0 3 0x14200 bored softnet2 55343 104625 0 0 3 0x14200 bored softnet1 7833 504965 0 0 3 0x14200 bored softnet0 55440 340570 0 0 3 0x14200 bored systqmp 11535 378397 0 0 3 0x14200 bored systq 10545 211719 0 0 3 0x14200 tmoslp softclockmp 75881 62691 0 0 3 0x40014200 tmoslp softclock 79817 320475 0 0 3 0x40014200 idle0 1 443671 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 (0xffffffff83989df8) #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 41948 (syz-executor) thread 0xffff8000ffff4f88 (22358) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83983558) #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 (0xffffffff83989df8) #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 10186 10954K 10966K 166960K 11265 0 pcb 17 12K 12K 166960K 17 0 rtable 242 6K 7K 166960K 367 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 1K 166960K 3 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 31 0 iov 1 1K 8K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1333 84K 84K 166960K 1360 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 13 0K 1K 166960K 14 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 117K 166960K 267 0 sigio 0 0K 0K 166960K 1 0 proc 58 79K 115K 166960K 492 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 28 0 in_multi 99 7K 7K 166960K 103 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 61 281K 281K 166960K 61 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 251 74K 78K 166960K 3794 0 UVM aobj 10 2K 2K 166960K 11 0 pinsyscall 47 94K 106K 166960K 1304 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 9 0 NDP 11 0K 2K 166960K 27 0 temp 40 8635K 8700K 166960K 4383 0 kqueue 15 24K 28K 166960K 49 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 49 0 45 1 0 1 1 0 8 0 rtentry 112 115 0 1 4 0 4 4 0 8 0 unpcb 144 438 0 419 6 0 6 6 0 8 5 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 808 62 0 56 2 0 2 2 0 8 1 arp 120 18 0 0 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 44 0 44 1 0 1 1 0 8 1 inpcb 376 180 0 166 2 0 2 2 0 8 0 nd6 136 28 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 459 0 0 29 0 29 29 0 8 0 art_table 32 460 0 0 4 0 4 4 0 8 0 art_node 16 114 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 8 0 1 1 0 1 1 0 8 0 pool(0xffffffff83989de0:shmpl): page inconsistency: page 0xfffffd8065358000; 27 on list, 7 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1712 0 210 95 0 95 95 0 8 0 ffsino 280 1712 0 210 108 0 108 108 0 8 0 nchpl 144 2070 0 395 63 0 63 63 0 8 0 uvmvnodes 80 1793 0 0 37 0 37 37 0 8 0 vnodes 216 1793 0 0 100 0 100 100 0 8 0 namei 1024 6230 0 6230 1 0 1 1 0 8 1 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 6651 0 6651 3 2 1 2 1 8 1 plimitpl 152 55 0 30 2 0 2 2 0 8 1 sigapl 424 551 0 494 7 0 7 7 0 8 0 futexpl 64 1691 0 1687 1 0 1 1 0 8 0 knotepl 120 279 0 0 9 0 9 9 0 8 0 kqueuepl 216 116 0 105 5 0 5 5 0 8 4 pipepl 328 119 0 89 3 0 3 3 0 8 0 fdescpl 504 532 0 494 7 1 6 6 0 8 0 filepl 152 2426 0 2198 14 0 14 14 0 8 4 lockfpl 104 33 0 27 1 0 1 1 0 8 0 lockfspl 48 16 0 11 1 0 1 1 0 8 0 sessionpl 144 22 0 6 1 0 1 1 0 8 0 pgrppl 48 31 0 7 1 0 1 1 0 8 0 ucredpl 104 255 0 236 1 0 1 1 0 8 0 zombiepl 144 494 0 494 1 0 1 1 0 8 1 processpl 1168 551 0 494 5 0 5 5 0 8 0 procpl 656 777 0 710 7 0 7 7 0 8 1 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 688 668 0 631 15 0 15 15 0 8 11 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 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 111 0 0 14 0 14 14 0 8 0 mcl2k 2048 15 0 0 2 0 2 2 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 280 0 0 18 0 18 18 0 8 0 bufpl 280 2448 0 124 166 0 166 166 0 8 0 anonpl 24 117174 0 113827 45 0 45 45 0 184 18 amapchunkpl 152 11890 0 11304 28 0 28 28 0 158 4 amappl16 200 2494 0 2470 14 3 11 14 0 8 8 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 105 0 95 1 0 1 1 0 8 0 amappl13 176 6 0 6 2 1 1 1 0 8 1 amappl12 168 1147 0 1110 2 0 2 2 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 6 0 6 2 1 1 1 0 8 1 amappl9 144 244 0 244 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 93 0 83 1 0 1 1 0 8 0 amappl6 120 181 0 178 1 0 1 1 0 8 0 amappl5 112 114 0 108 1 0 1 1 0 8 0 amappl4 104 290 0 274 1 0 1 1 0 8 0 amappl3 96 2032 0 1897 4 0 4 4 0 8 0 amappl2 88 622 0 568 2 0 2 2 0 8 0 amappl1 80 8114 0 7563 13 0 13 13 0 8 0 amappl 88 3443 0 3241 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 10 0 1 1 0 1 1 0 8 0 uaddrrnd 24 532 0 494 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 532 0 494 1 0 1 1 0 8 0 vmmpekpl 168 5884 0 5844 2 0 2 2 0 8 0 vmmpepl 168 38908 0 36869 100 0 100 100 0 357 9 vmsppl 456 531 0 494 7 1 6 6 0 8 0 rwobjpl 64 15992 0 13340 45 0 45 45 0 8 2 pdppl 4096 1072 0 988 110 24 86 94 0 8 2 pvpl 32 14747 0 0 119 0 119 119 0 265 0 pmappl 248 531 0 494 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 294 0 27 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:437 panic(ffffffff833a6a27) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83989de0,1,ffff80003c560358) at pool_do_get+0x5da pool_get(ffffffff83989de0,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff4f88,ffff80003c5605b0,0,ffff80003c560500) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff4f88,ffff80003c5605b0,ffff80003c560500) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c5605b0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5605b0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a6f5bf0fe0, 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:393 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: 0x70bc6cef65a0, count: 12 ddb{1}> trace x86_ipi_db(ffff800029aabff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 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: 0x70bc6cef65a0, count: -3