]> 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:21:24 +0000 (08:21 +0200)
commitd189b461d5101a1cec7df65f8a6c9e9bba6d9540
tree706eb08d9a3d60437268da6d83defa3712388b2e
parentea25ee0bb42f65b5a53d93f890c72135a1f25a1a
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