summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-08-29 21:56:56 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-21 09:19:08 +0100
commit63880b2f99747c04e12fba6588d0222dd90323f9 (patch)
treec81a2617f4b41089976042d7ff0fb4a810abf7c1 /LICENSES
parent54de3d7d55dc70fe7ce8ccd1b7e09831881a730a (diff)
downloadlinux-stable-63880b2f99747c04e12fba6588d0222dd90323f9.tar.gz
linux-stable-63880b2f99747c04e12fba6588d0222dd90323f9.tar.bz2
linux-stable-63880b2f99747c04e12fba6588d0222dd90323f9.zip
powerpc/64/module: REL32 relocation range check
[ Upstream commit b851ba02a6f3075f0f99c60c4bc30a4af80cf428 ] The recent module relocation overflow crash demonstrated that we have no range checking on REL32 relative relocations. This patch implements a basic check, the same kernel that previously oopsed and rebooted now continues with some of these errors when loading the module: module_64: x_tables: REL32 527703503449812 out of range! Possibly other relocations (ADDR32, REL16, TOC16, etc.) should also have overflow checks. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions