panic: pool_do_get: shmpl free list modified: page 0xfffffd806b764000; item addr 0xfffffd806b764cb0; offset 0x40=0x687d1069 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *432982 62275 32767 0x10 0x4000000 0K syz-executor 389904 45454 0 0x2 0 1 sshd-session db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833da04a) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a20170,1,ffff80003c4736e8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff83a20170,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c449218,ffff80003c473940,20,ffff80003c473890) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c449218,ffff80003c473940,ffff80003c473890) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c473940) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c473940) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x49ff8af01c0, 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 0xfffffd806b764000; item addr 0xfffffd806b764cb0; offset 0x40=0x687d1069 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833da04a) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a20170,1,ffff80003c4736e8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff83a20170,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c449218,ffff80003c473940,20,ffff80003c473890) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c449218,ffff80003c473940,ffff80003c473890) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c473940) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c473940) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x49ff8af01c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c473520 rbx 0xffffffff837d2dd7 cpu_info_full_primary+0x2dd7 rdx 0xffff800001439e80 rcx 0xffff80003c449218 rax 0xffffffff837d1ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x3a857bc02222b1e2 r11 0x63f7398192a0be1 r12 0xffffffff837d2bd8 cpu_info_full_primary+0x2bd8 r13 0 r14 0 r15 0x1 rip 0xffffffff826694e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c473510 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=432982 pid=62275 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=51, usrpri=51, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c4982c0,0xffff80003c449c68 process=0xffff80003c465d40 user=0xffff80003c46e000, vmspace=0xfffffd800ef29210 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62275 292788 89310 32767 2 0x10 syz-executor *62275 432982 89310 32767 7 0x4000010 syz-executor 41242 375394 20375 32767 2 0x10 syz-executor 41242 56619 20375 32767 3 0x4000090 fsleep syz-executor 45454 389904 94028 0 7 0x2 sshd-session 76792 317364 5069 32767 2 0x10 syz-executor 76792 179538 5069 32767 3 0x4000090 fsleep syz-executor 62948 45848 18384 32767 2 0x10 syz-executor 62948 217707 18384 32767 2 0x4000010 syz-executor 62948 142516 18384 32767 3 0x4000090 fsleep syz-executor 1367 175683 23524 32767 2 0x10 syz-executor 1367 435194 23524 32767 3 0x4000090 kqpoll syz-executor 1367 455251 23524 32767 3 0x4000090 fsleep syz-executor 24331 160998 49770 32767 3 0x90 nanoslp syz-executor 24331 510752 49770 32767 3 0x4000090 netcon syz-executor 24331 1259 49770 32767 3 0x4000090 fsleep syz-executor 3830 405352 0 0 3 0x14200 bored sosplice 48561 144723 13738 32767 3 0x90 nanoslp syz-executor 48561 315452 13738 32767 3 0x4000090 kqread syz-executor 48561 258528 13738 32767 3 0x4000090 fsleep syz-executor 48561 195725 13738 32767 3 0x4000090 fsleep syz-executor 5069 496152 71860 32767 2 0x10 syz-executor 23524 204374 10187 32767 2 0x10 syz-executor 20375 17358 86813 32767 3 0x90 nanoslp syz-executor 49770 312402 93937 32767 2 0x10 syz-executor 13738 343731 2522 32767 2 0x10 syz-executor 89310 251277 80189 32767 3 0x90 nanoslp syz-executor 18384 254735 48557 32767 3 0x90 nanoslp syz-executor 86813 168188 30318 0 3 0x82 wait syz-executor 10187 319052 30318 0 3 0x82 wait syz-executor 71860 378820 30318 0 3 0x82 wait syz-executor 93937 180011 30318 0 3 0x82 wait syz-executor 98568 487729 30318 0 3 0x82 wait syz-executor 2522 250071 30318 0 3 0x82 wait syz-executor 80189 401923 30318 0 3 0x82 wait syz-executor 48557 127336 30318 0 3 0x82 wait syz-executor 30318 501489 5220 0 3 0x82 kqread syz-executor 5220 273465 43084 0 3 0x10008a sigsusp ksh 43084 354845 32012 0 3 0x98 kqread sshd-session 32012 349353 94028 0 3 0x92 kqread sshd-session 18367 153387 1 0 3 0x100083 ttyin getty 94028 46314 1 0 3 0x88 kqread sshd 37730 467611 59410 73 3 0x1100090 kqread syslogd 59410 8544 1 0 3 0x100082 sbwait syslogd 39185 353919 1 0 3 0x100080 kqread resolvd 43218 209538 79190 77 3 0x100092 kqread dhcpleased 82940 328006 79190 77 3 0x100092 kqread dhcpleased 79190 292049 1 0 3 0x80 kqread dhcpleased 30800 321842 0 0 2 0x40014200 smr 78763 158243 0 0 2 0x14200 zerothread 63145 270103 0 0 3 0x14200 aiodoned aiodoned 4014 299788 0 0 3 0x14200 syncer update 17866 443205 0 0 3 0x14200 cleaner cleaner 84750 460173 0 0 3 0x14200 reaper reaper 66531 242774 0 0 3 0x14200 pgdaemon pagedaemon 31529 445661 0 0 3 0x14200 bored viomb 19362 517689 0 0 3 0x40014200 acpi0 acpi0 84746 249191 0 0 3 0x40014200 idle1 93218 325102 0 0 3 0x14200 bored softnet7 30687 401641 0 0 3 0x14200 bored softnet6 60477 471954 0 0 3 0x14200 bored softnet5 8647 272178 0 0 3 0x14200 bored softnet4 89976 507035 0 0 3 0x14200 bored softnet3 26984 128990 0 0 3 0x14200 bored softnet2 34364 73200 0 0 3 0x14200 bored softnet1 30175 420830 0 0 3 0x14200 bored softnet0 22420 240578 0 0 3 0x14200 bored systqmp 12612 124942 0 0 3 0x14200 bored systq 31409 208355 0 0 3 0x14200 tmoslp softclockmp 22674 415027 0 0 3 0x40014200 tmoslp softclock 88457 112504 0 0 3 0x40014200 idle0 1 294639 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 (0xffffffff83a20188) #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:748 #7 Xsyscall+0x128 Process 62275 (syz-executor) thread 0xffff80003c449218 (432982) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838e5f00) #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:748 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff83a20188) #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:748 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10191 10956K 10968K 166960K 11269 0 pcb 17 12K 12K 166960K 17 0 rtable 209 6K 6K 166960K 258 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 6 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 29 0 iov 0 0K 12K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1335 84K 84K 166960K 1352 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 25 93K 117K 166960K 189 0 proc 58 79K 103K 166960K 481 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 1 0K 0K 166960K 9 0 in_multi 99 7K 7K 166960K 100 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 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 340 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 271 177K 177K 166960K 3311 0 UVM aobj 5 2K 3K 166960K 6 0 pinsyscall 48 96K 108K 166960K 1186 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 9 0 NDP 19 1K 2K 166960K 27 0 temp 37 8670K 8734K 166960K 3834 0 kqueue 15 24K 28K 166960K 35 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 40 0 37 1 0 1 1 0 8 0 rtentry 176 97 0 1 5 0 5 5 0 8 0 unpcb 144 58 0 37 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 160 0 150 13 0 13 13 0 8 11 arp 128 10 0 0 1 0 1 1 0 8 0 inpcb 328 238 0 221 13 0 13 13 0 8 11 nd6 144 18 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 441 0 0 28 0 28 28 0 8 0 art_table 40 442 0 0 5 0 5 5 0 8 0 art_node 32 97 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 3 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 1 1 0 1 1 0 8 0 pool(0xffffffff83a20170:shmpl): page inconsistency: page 0xfffffd806b764000; 32 on list, 2 missing, 35 items per page dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1621 0 113 95 0 95 95 0 8 0 ffsino 288 1621 0 113 108 0 108 108 0 8 0 nchpl 144 1867 0 186 63 0 63 63 0 8 0 uvmvnodes 80 1702 0 0 35 0 35 35 0 8 0 vnodes 216 1702 0 0 95 0 95 95 0 8 0 namei 1024 5595 0 5595 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 6819 0 6819 3 1 2 2 1 8 2 plimitpl 152 41 0 16 2 0 2 2 0 8 0 sigapl 424 465 0 404 8 0 8 8 0 8 0 knotepl 120 307 0 0 10 0 10 10 0 8 0 kqueuepl 224 36 0 23 2 0 2 2 0 8 1 pipepl 336 98 0 71 3 0 3 3 0 8 0 fdescpl 520 442 0 404 3 0 3 3 0 8 0 filepl 160 1665 0 1440 15 0 15 15 0 8 4 lockfpl 104 21 0 18 1 0 1 1 0 8 0 lockfspl 48 10 0 7 1 0 1 1 0 8 0 sessionpl 144 22 0 5 1 0 1 1 0 8 0 pgrppl 48 30 0 5 1 0 1 1 0 8 0 ucredpl 104 142 0 123 1 0 1 1 0 8 0 zombiepl 144 405 0 404 1 0 1 1 0 8 0 processpl 1240 465 0 404 7 1 6 6 0 8 0 procpl 656 561 0 488 7 0 7 7 0 8 0 sockpl 728 337 0 296 16 0 16 16 0 8 12 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 165 0 0 11 0 11 11 0 8 0 bufpl 280 3005 0 116 207 0 207 207 0 8 0 anonpl 32 3784 0 0 31 0 31 31 0 246 0 amapchunkpl 152 9526 0 8936 29 4 25 25 0 158 2 amappl16 200 2038 0 2015 5 0 5 5 0 8 3 amappl15 192 4 0 4 1 0 1 1 0 8 1 amappl14 184 122 0 111 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 0 1 1 0 8 1 amappl12 168 1038 0 1000 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 0 1 1 0 8 1 amappl9 144 249 0 249 1 0 1 1 0 8 1 amappl8 136 23 0 22 1 0 1 1 0 8 0 amappl7 128 91 0 80 1 0 1 1 0 8 0 amappl6 120 189 0 185 1 0 1 1 0 8 0 amappl5 112 113 0 107 1 0 1 1 0 8 0 amappl4 104 261 0 246 1 0 1 1 0 8 0 amappl3 96 1495 0 1359 4 0 4 4 0 8 0 amappl2 88 599 0 539 2 0 2 2 0 8 0 amappl1 80 8210 0 7554 15 1 14 14 0 8 0 amappl 88 2692 0 2493 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 5 0 1 1 0 1 1 0 8 0 uaddrrnd 24 442 0 404 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 442 0 404 1 0 1 1 0 8 0 vmmpekpl 168 5105 0 5072 2 0 2 2 0 8 0 vmmpepl 168 34958 0 32711 98 0 98 98 0 357 0 vmsppl 480 441 0 404 7 1 6 6 0 8 0 rwobjpl 72 14348 0 11691 49 0 49 49 0 8 0 pdppl 4096 892 0 808 106 12 94 96 0 8 10 pvpl 32 10641 0 0 86 0 86 86 0 265 0 pmappl 256 441 0 404 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 398 0 15 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(ffffffff833da04a) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a20170,1,ffff80003c4736e8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff83a20170,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c449218,ffff80003c473940,20,ffff80003c473890) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c449218,ffff80003c473940,ffff80003c473890) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c473940) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c473940) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x49ff8af01c0, 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 __mp_lock(ffffffff838e5cf8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838e5cf8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80003c4634b0) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4634b0) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77366ca68c70, count: 9 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 __mp_lock(ffffffff838e5cf8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838e5cf8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80003c4634b0) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4634b0) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77366ca68c70, count: -6