login: panic: pool_do_get: shmpl free list modified: page 0xfffffd8065851000; item addr 0xfffffd8065851850; offset 0x40=0x67b93fc9 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 223827 80096 32767 0x10 0 1 syz-executor * 43078 80096 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a76d7) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8399f780,1,ffff80003c54e0d8) at pool_do_get+0x5da pool_get(ffffffff8399f780,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff47d8,ffff80003c54e330,0,ffff80003c54e280) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff47d8,ffff80003c54e330,ffff80003c54e280) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c54e330) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c54e330) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x395bd3115f0, 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 0xfffffd8065851000; item addr 0xfffffd8065851850; offset 0x40=0x67b93fc9 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a76d7) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8399f780,1,ffff80003c54e0d8) at pool_do_get+0x5da pool_get(ffffffff8399f780,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff47d8,ffff80003c54e330,0,ffff80003c54e280) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff47d8,ffff80003c54e330,ffff80003c54e280) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c54e330) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c54e330) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x395bd3115f0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c54df10 rbx 0xffffffff837a2dc7 cpu_info_full_primary+0x2dc7 rdx 0xffff80000143b980 rcx 0xffff8000ffff47d8 rax 0xffffffff837a1ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x34fb82962e9b90db r11 0xdbe883047ca1730a r12 0xffffffff837a2bc8 cpu_info_full_primary+0x2bc8 r13 0 r14 0 r15 0x1 rip 0xffffffff8324fe35 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c54df00 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=43078 pid=80096 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=0xffff8000ffff4028,0xffff8000ffff6f90 process=0xffff8000ffff2048 user=0xffff80003c549000, vmspace=0xfffffd806beae3b8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32810 72423 59980 32767 2 0x10 syz-executor 32810 446548 59980 32767 3 0x4000090 fsleep syz-executor 80096 223827 66845 32767 7 0x10 syz-executor *80096 43078 66845 32767 7 0x4000010 syz-executor 96572 203610 99230 0 2 0x2 syz-executor 85453 421401 32387 32767 2 0x10 syz-executor 85453 459001 32387 32767 3 0x4000090 fifor syz-executor 33001 183892 86115 32767 2 0x10 syz-executor 33001 473244 86115 32767 3 0x4000090 ttyout syz-executor 33001 237122 86115 32767 3 0x4000090 fsleep syz-executor 33001 5019 86115 32767 3 0x4000090 fsleep syz-executor 14364 271377 1473 32767 3 0x90 nanoslp syz-executor 14364 342148 1473 32767 3 0x4000090 kqsel syz-executor 14364 416106 1473 32767 3 0x4000090 fsleep syz-executor 34414 465031 5290 32767 2 0x10 syz-executor 34414 305190 5290 32767 3 0x4000090 kqsel syz-executor 34414 104292 5290 32767 3 0x4000090 fsleep syz-executor 59980 20540 86246 32767 3 0x90 nanoslp syz-executor 34881 488891 14134 32767 3 0x90 nanoslp syz-executor 86115 63403 93175 32767 3 0x90 nanoslp syz-executor 66845 25277 15834 32767 2 0x10 syz-executor 32387 97120 75686 32767 3 0x90 nanoslp syz-executor 5290 336769 89988 32767 2 0x10 syz-executor 1473 142709 7620 32767 2 0x10 syz-executor 86246 448939 99230 0 3 0x82 wait syz-executor 93175 135780 99230 0 3 0x82 wait syz-executor 14134 24194 99230 0 3 0x82 wait syz-executor 15834 334229 99230 0 3 0x82 wait syz-executor 75686 278439 99230 0 3 0x82 wait syz-executor 89988 121297 99230 0 3 0x82 wait syz-executor 7620 181887 99230 0 3 0x82 wait syz-executor 99230 232775 73359 0 3 0x82 kqread syz-executor 73359 37736 52489 0 3 0x10008a sigsusp ksh 52489 5651 31513 0 3 0x98 kqread sshd-session 31513 178218 20745 0 3 0x92 kqread sshd-session 37048 163190 1 0 3 0x100083 ttyin getty 20745 269186 1 0 3 0x88 kqread sshd 31900 63072 5207 73 3 0x1100090 kqread syslogd 5207 400869 1 0 3 0x100082 sbwait syslogd 96886 132077 1 0 3 0x100080 kqread resolvd 35029 327188 47894 77 3 0x100092 kqread dhcpleased 23479 254603 47894 77 3 0x100092 kqread dhcpleased 47894 6999 1 0 3 0x80 kqread dhcpleased 90416 10075 0 0 3 0x14200 bored smr 83015 392051 0 0 2 0x14200 zerothread 85503 501032 0 0 3 0x14200 aiodoned aiodoned 69867 83762 0 0 3 0x14200 syncer update 82605 23129 0 0 3 0x14200 cleaner cleaner 37384 103885 0 0 3 0x14200 reaper reaper 72225 143331 0 0 3 0x14200 pgdaemon pagedaemon 10252 429068 0 0 3 0x14200 bored viomb 9824 183752 0 0 3 0x40014200 acpi0 acpi0 47270 278084 0 0 3 0x40014200 idle1 87064 76539 0 0 3 0x14200 bored softnet3 85188 188243 0 0 3 0x14200 bored softnet2 28896 437568 0 0 3 0x14200 bored softnet1 59483 314063 0 0 3 0x14200 bored softnet0 88024 279841 0 0 3 0x14200 bored systqmp 11530 168963 0 0 3 0x14200 bored systq 53242 212599 0 0 3 0x14200 tmoslp softclockmp 72756 1616 0 0 3 0x40014200 tmoslp softclock 38865 108093 0 0 3 0x40014200 idle0 1 111055 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 (0xffffffff8399f798) #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 80096 (syz-executor) thread 0xffff8000ffff47d8 (43078) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839d5030) #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 (0xffffffff8399f798) #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 10185 10952K 10966K 166960K 11267 0 pcb 17 12K 12K 166960K 17 0 rtable 212 6K 6K 166960K 346 0 pf 29 16K 16K 166960K 31 0 ifaddr 38 6K 7K 166960K 44 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 1 1K 1K 166960K 2 0 counters 62 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 30 0 iov 0 0K 14K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1333 84K 84K 166960K 1371 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 7 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 24 89K 121K 166960K 222 0 sigio 0 0K 0K 166960K 1 0 proc 58 79K 115K 166960K 478 0 subproc 67 4K 4K 166960K 85 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 6 0 in_multi 88 6K 7K 166960K 102 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 1 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 346 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 242 66K 75K 166960K 3288 0 UVM aobj 8 3K 3K 166960K 9 0 pinsyscall 45 90K 111K 166960K 1214 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 4 0 NDP 10 0K 2K 166960K 27 0 temp 38 8634K 8698K 166960K 3923 0 kqueue 13 20K 28K 166960K 43 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 39 0 36 1 0 1 1 0 8 0 rtentry 112 111 0 12 4 0 4 4 0 8 0 unpcb 144 82 0 65 2 0 2 2 0 8 1 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 808 88 0 82 8 0 8 8 0 8 7 arp 120 18 0 2 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 376 176 0 163 8 0 8 8 0 8 6 nd6 136 24 0 3 1 0 1 1 0 8 0 kcovpl 48 9 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 44 29 0 29 29 0 8 2 art_table 32 453 0 44 4 0 4 4 0 8 0 art_node 16 110 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 7 0 2 1 0 1 1 0 8 0 shmpl 112 6 0 1 1 0 1 1 0 8 0 pool(0xffffffff8399f780:shmpl): page inconsistency: page 0xfffffd8065851000; 29 on list, 5 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1652 0 144 95 0 95 95 0 8 0 ffsino 280 1652 0 144 108 0 108 108 0 8 0 nchpl 144 1948 0 266 63 0 63 63 0 8 0 uvmvnodes 80 1746 0 0 36 0 36 36 0 8 0 vnodes 216 1746 0 0 97 0 97 97 0 8 0 namei 1024 5679 0 5679 2 0 2 2 0 8 2 percpumem 16 46 0 1 1 0 1 1 0 8 0 kstatmem 264 22 0 2 2 0 2 2 0 8 0 scxspl 216 6739 0 6739 9 1 8 8 1 8 8 plimitpl 152 47 0 23 2 0 2 2 0 8 1 sigapl 424 488 0 434 7 0 7 7 0 8 0 futexpl 64 1044 0 1039 1 0 1 1 0 8 0 knotepl 120 66 0 0 2 0 2 2 0 8 0 kqueuepl 216 46 0 34 1 0 1 1 0 8 0 pipepl 328 116 0 89 3 0 3 3 0 8 0 fdescpl 504 470 0 434 6 0 6 6 0 8 0 filepl 152 1797 0 1585 12 0 12 12 0 8 2 lockfpl 104 29 0 27 1 0 1 1 0 8 0 lockfspl 48 14 0 12 1 0 1 1 0 8 0 sessionpl 144 22 0 7 1 0 1 1 0 8 0 pgrppl 48 32 0 9 1 0 1 1 0 8 0 ucredpl 104 201 0 183 1 0 1 1 0 8 0 zombiepl 144 435 0 434 1 0 1 1 0 8 0 processpl 1176 488 0 434 5 0 5 5 0 8 0 procpl 656 624 0 560 7 0 7 7 0 8 1 sockpl 688 298 0 265 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 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 127 0 0 16 0 16 16 0 8 0 mcl2k 2048 19 0 0 3 0 3 3 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 172 0 0 11 0 11 11 0 8 0 bufpl 280 2456 0 124 167 0 167 167 0 8 0 anonpl 24 107046 0 103807 47 1 46 46 0 184 25 amapchunkpl 152 10231 0 9605 28 0 28 28 0 158 2 amappl16 200 2254 0 2237 14 0 14 14 0 8 12 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 159 0 149 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 1063 0 1027 2 0 2 2 0 8 0 amappl11 160 43 0 33 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 274 0 274 1 1 0 1 0 8 0 amappl8 136 22 0 21 1 0 1 1 0 8 0 amappl7 128 88 0 78 1 0 1 1 0 8 0 amappl6 120 172 0 169 1 0 1 1 0 8 0 amappl5 112 114 0 108 1 0 1 1 0 8 0 amappl4 104 269 0 256 1 0 1 1 0 8 0 amappl3 96 1706 0 1577 4 0 4 4 0 8 0 amappl2 88 595 0 542 2 0 2 2 0 8 0 amappl1 80 7685 0 7153 12 0 12 12 0 8 0 amappl 88 2956 0 2761 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 8 0 1 1 0 1 1 0 8 0 uaddrrnd 24 470 0 434 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 470 0 434 1 0 1 1 0 8 0 vmmpekpl 168 5390 0 5350 3 0 3 3 0 8 0 vmmpepl 168 35425 0 33487 99 0 99 99 0 357 12 vmsppl 456 469 0 434 6 0 6 6 0 8 0 rwobjpl 64 14889 0 12308 45 0 45 45 0 8 1 pdppl 4096 948 0 868 108 24 84 96 0 8 4 pvpl 32 16829 0 0 136 0 136 136 0 265 0 pmappl 248 469 0 434 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 289 0 26 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(ffffffff833a76d7) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8399f780,1,ffff80003c54e0d8) at pool_do_get+0x5da pool_get(ffffffff8399f780,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff47d8,ffff80003c54e330,0,ffff80003c54e280) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff47d8,ffff80003c54e330,ffff80003c54e280) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c54e330) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c54e330) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x395bd3115f0, 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: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: 0x7ddc89e72080, count: 12 ddb{1}> trace x86_ipi_db(ffff800029aabff0) 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: 0x7ddc89e72080, count: -3