Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Nicholas Piggin b851ba02a6 powerpc/64/module: REL32 relocation range check
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>
2018-10-20 13:26:47 +11:00
..
2018-06-03 21:19:40 +10:00
2018-07-30 22:47:53 +10:00
2016-08-07 23:50:09 -04:00
2018-08-13 15:59:06 +10:00
2017-12-11 13:03:35 +11:00
2018-10-03 16:12:47 +10:00
2018-03-31 09:09:36 +11:00
2018-10-09 16:51:05 +11:00
2018-05-25 12:04:46 +10:00