login: panic: pool_do_get: shmpl free list modified: page 0xfffffd80618ef000; item addr 0xfffffd80618efe70; offset 0x40=0x6923462a Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 434809 47023 32767 0x10 0 1 syz-executor *359507 47023 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8339f869) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83928fb0,1,ffff80003c442d28) at pool_do_get+0x5df pool_get(ffffffff83928fb0,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff800039c0a7f0,ffff80003c442f80,2,ffff80003c442ed0) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff800039c0a7f0,ffff80003c442f80,ffff80003c442ed0) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c442f80) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c442f80) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb535eaea5f0, 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 0xfffffd80618ef000; item addr 0xfffffd80618efe70; offset 0x40=0x6923462a ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8339f869) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83928fb0,1,ffff80003c442d28) at pool_do_get+0x5df pool_get(ffffffff83928fb0,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff800039c0a7f0,ffff80003c442f80,2,ffff80003c442ed0) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff800039c0a7f0,ffff80003c442f80,ffff80003c442ed0) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c442f80) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c442f80) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb535eaea5f0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c442b50 rbx 0xffffffff837ebe07 cpu_info_full_primary+0x2e07 rdx 0xffff80000143ca40 rcx 0xffff800039c0a7f0 rax 0xffffffff837eaff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5b39e2a4f6d15b4d r11 0xef04669b6661eb12 r12 0xffffffff837ebc08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff81347055 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c442b40 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=359507 pid=47023 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=0xffff800039c0a558,0xffffffff8390c390 process=0xffff800039c1f9e0 user=0xffff80003c43e000, vmspace=0xfffffd806cab59b0 estcpu=30, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47023 434809 32926 32767 7 0x10 syz-executor *47023 359507 32926 32767 7 0x4000010 syz-executor 98714 192189 69458 32767 3 0x90 nanoslp syz-executor 98714 66250 69458 32767 3 0x4000090 msgwait syz-executor 98714 442474 69458 32767 3 0x4000090 fsleep syz-executor 50119 67670 87709 32767 3 0x90 nanoslp syz-executor 50119 137406 87709 32767 3 0x4000090 ttyout syz-executor 50119 120693 87709 32767 3 0x4000090 fsleep syz-executor 38386 82907 8645 32767 3 0x90 nanoslp syz-executor 38386 175561 8645 32767 3 0x4000090 ttyin syz-executor 38386 517091 8645 32767 3 0x4000090 fsleep syz-executor 91315 473657 20892 32767 3 0x90 nanoslp syz-executor 91315 298606 20892 32767 3 0x4000090 msgwait syz-executor 91315 251021 20892 32767 3 0x4000090 fsleep syz-executor 91315 217742 20892 32767 3 0x4000090 fsleep syz-executor 399 491001 66824 0 3 0x100082 sbwait arp 66824 246556 76093 0 3 0x10008a sigsusp sh 87709 53646 59654 32767 3 0x90 nanoslp syz-executor 76093 281611 67334 0 3 0x80 wait syz-executor 69458 127373 75040 32767 3 0x90 nanoslp syz-executor 20892 485618 16867 32767 3 0x90 nanoslp syz-executor 73535 342210 19820 32767 3 0x90 nanoslp syz-executor 8645 270318 69737 32767 3 0x90 nanoslp syz-executor 32926 232189 66626 32767 3 0x90 nanoslp syz-executor 95620 142480 89334 0 3 0x82 wait syz-executor 59654 74555 89334 0 3 0x82 wait syz-executor 67334 450980 89334 0 3 0x82 wait syz-executor 16867 74169 89334 0 3 0x82 wait syz-executor 19820 491378 89334 0 3 0x82 wait syz-executor 75040 197267 89334 0 3 0x82 wait syz-executor 66626 257079 89334 0 3 0x82 wait syz-executor 69737 471053 89334 0 3 0x82 wait syz-executor 89334 206688 33545 0 3 0x82 kqread syz-executor 33545 286380 42120 0 3 0x10008a sigsusp ksh 42120 169803 42231 0 3 0x98 kqread sshd-session 42231 437350 27915 0 3 0x92 kqread sshd-session 53013 145884 1 0 3 0x100083 ttyin getty 27915 366359 1 0 3 0x88 kqread sshd 57914 203077 70739 73 3 0x1100090 kqread syslogd 70739 287537 1 0 3 0x100082 sbwait syslogd 43472 341106 1 0 3 0x100080 kqread resolvd 62930 136849 13105 77 3 0x100092 kqread dhcpleased 21460 292624 13105 77 3 0x100092 kqread dhcpleased 13105 155108 1 0 3 0x80 kqread dhcpleased 9937 354203 0 0 3 0x14200 bored smr 89729 225035 0 0 3 0x14200 pgzero zerothread 30522 14853 0 0 3 0x14200 aiodoned aiodoned 73419 293718 0 0 3 0x14200 syncer update 25294 44242 0 0 3 0x14200 cleaner cleaner 64801 518826 0 0 3 0x14200 reaper reaper 47735 13113 0 0 3 0x14200 pgdaemon pagedaemon 79520 326245 0 0 3 0x14200 bored viomb 76310 361509 0 0 3 0x40014200 acpi0 acpi0 99671 165832 0 0 3 0x40014200 idle1 30728 99865 0 0 3 0x14200 bored softnet1 89835 509175 0 0 3 0x14200 bored softnet0 96148 236304 0 0 3 0x14200 bored systqmp 54225 450436 0 0 3 0x14200 bored systq 28408 203912 0 0 3 0x14200 tmoslp softclockmp 78435 393751 0 0 3 0x40014200 tmoslp softclock 62868 354228 0 0 3 0x40014200 idle0 1 244172 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 (0xffffffff83928fc8) #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:765 #7 Xsyscall+0x128 Process 47023 (syz-executor) thread 0xffff800039c0a7f0 (359507) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838cfd48) #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:765 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff83928fc8) #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:765 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10189 10957K 10973K 166960K 11280 0 pcb 17 12K 12K 166960K 17 0 rtable 223 6K 6K 166960K 335 0 pf 31 16K 16K 166960K 31 0 ifaddr 40 7K 7K 166960K 42 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 2 1K 9K 166960K 6 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 30 0 iov 0 0K 8K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1336 84K 84K 166960K 1366 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 86 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 121K 166960K 258 0 sigio 0 0K 0K 166960K 1 0 proc 58 99K 163K 166960K 490 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 35 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 357 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 260 154K 168K 166960K 3998 0 UVM aobj 5 2K 3K 166960K 7 0 pinsyscall 48 96K 112K 166960K 1302 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 12 0 NDP 11 0K 1K 166960K 25 0 temp 42 8671K 8735K 166960K 4257 0 kqueue 13 20K 29K 166960K 61 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 41 0 37 1 0 1 1 0 8 0 rtentry 176 104 0 1 5 0 5 5 0 8 0 unpcb 144 121 0 103 1 0 1 1 0 8 0 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 87 0 82 2 0 2 2 0 8 1 arp 136 17 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 328 203 0 195 2 0 2 2 0 8 1 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 152 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 415 0 0 26 0 26 26 0 8 0 art_table 40 416 0 0 5 0 5 5 0 8 0 art_node 32 104 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 17 0 7 1 0 1 1 0 8 0 shmpl 112 4 0 2 1 0 1 1 0 8 0 pool(0xffffffff83928fb0:shmpl): page inconsistency: page 0xfffffd80618ef000; 32 on list, 2 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1720 0 213 95 0 95 95 0 8 0 ffsino 296 1720 0 213 117 0 117 117 0 8 0 nchpl 144 2088 0 401 63 0 63 63 0 8 0 vnodes 216 1801 0 0 101 0 101 101 0 8 0 namei 1024 6271 0 6271 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 6572 0 6572 3 1 2 2 1 8 2 plimitpl 152 58 0 33 2 0 2 2 0 8 1 sigapl 424 541 0 487 7 0 7 7 0 8 0 knotepl 120 548 0 0 17 0 17 17 0 8 0 kqueuepl 224 67 0 58 2 0 2 2 0 8 1 pipepl 344 131 0 104 3 0 3 3 0 8 0 fdescpl 528 525 0 487 3 0 3 3 0 8 0 filepl 160 2252 0 2002 11 0 11 11 0 8 0 lockfpl 104 42 0 40 1 0 1 1 0 8 0 lockfspl 48 18 0 16 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 282 0 264 1 0 1 1 0 8 0 zombiepl 144 489 0 487 1 0 1 1 0 8 0 processpl 1232 541 0 487 5 0 5 5 0 8 0 procpl 664 731 0 667 6 0 6 6 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 752 368 0 338 5 0 5 5 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 115 0 0 15 0 15 15 0 8 0 mcl2k 2048 39 0 0 5 0 5 5 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 245 0 0 16 0 16 16 0 8 0 bufpl 280 2385 0 118 162 0 162 162 0 8 0 anonpl 32 7452 0 0 61 0 61 61 0 246 0 amapchunkpl 152 11870 0 11327 26 0 26 26 0 158 2 amappl16 200 2311 0 2289 15 1 14 14 0 8 11 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 6 0 6 1 1 0 1 0 8 0 amappl13 176 453 0 451 1 0 1 1 0 8 0 amappl12 168 859 0 812 3 0 3 3 0 8 0 amappl11 160 9 0 9 1 1 0 1 0 8 0 amappl10 152 65 0 54 1 0 1 1 0 8 0 amappl9 144 262 0 262 1 1 0 1 0 8 0 amappl8 136 31 0 30 1 0 1 1 0 8 0 amappl7 128 73 0 72 1 0 1 1 0 8 0 amappl6 120 260 0 247 1 0 1 1 0 8 0 amappl5 112 79 0 72 1 0 1 1 0 8 0 amappl4 104 375 0 351 1 0 1 1 0 8 0 amappl3 96 1900 0 1801 3 0 3 3 0 8 0 amappl2 88 671 0 592 2 0 2 2 0 8 0 amappl1 80 10020 0 9424 15 1 14 14 0 8 0 amappl 88 3295 0 3111 5 0 5 5 0 92 0 uvmvnodes 80 103 0 0 3 0 3 3 0 8 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 525 0 487 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 525 0 487 1 0 1 1 0 8 0 vmmpekpl 168 6066 0 6036 2 0 2 2 0 8 0 vmmpepl 168 42245 0 40157 104 0 104 104 0 357 5 vmsppl 488 524 0 487 6 0 6 6 0 8 0 rwobjpl 80 15263 0 14277 26 0 26 26 0 8 2 pdppl 4096 1058 0 974 106 18 88 96 0 8 4 pvpl 32 15526 0 0 127 1 126 126 0 265 0 pmappl 256 524 0 487 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 281 0 20 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:438 panic(ffffffff8339f869) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83928fb0,1,ffff80003c442d28) at pool_do_get+0x5df pool_get(ffffffff83928fb0,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff800039c0a7f0,ffff80003c442f80,2,ffff80003c442ed0) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff800039c0a7f0,ffff80003c442f80,ffff80003c442ed0) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c442f80) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c442f80) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb535eaea5f0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299edff0) 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: 0x7f43159f6930, count: 12 ddb{1}> trace x86_ipi_db(ffff8000299edff0) 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: 0x7f43159f6930, count: -3