]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Fix MAX_REG_OFFSET
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 27 Apr 2025 11:34:24 +0000 (13:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:20:38 +0000 (08:20 +0200)
commitaba591c13ba4585a473b78856ff2d52a22d9074e
tree3eeef614a0cd1d987872dac9fda1280143118ff0
parent712390196c915b91d3049e80d98777534c9ce3e8
MIPS: Fix MAX_REG_OFFSET

[ Upstream commit c44572e0cc13c9afff83fd333135a0aa9b27ba26 ]

Fix MAX_REG_OFFSET to point to the last register in 'pt_regs' and not to
the marker itself, which could allow regs_get_register() to return an
invalid offset.

Fixes: 40e084a506eb ("MIPS: Add uprobes support.")
Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/include/asm/ptrace.h