diff options
| author | Nicholas Piggin <[email protected]> | 2018-08-29 11:56:56 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2018-10-20 02:26:47 +0000 |
| commit | b851ba02a6f3075f0f99c60c4bc30a4af80cf428 (patch) | |
| tree | 249ea33c51fff3d0220c994c2e7f2e883e9e017f /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | powerpc/64s/radix: Fix radix__flush_tlb_collapsed_pmd double flushing pmd (diff) | |
| download | kernel-b851ba02a6f3075f0f99c60c4bc30a4af80cf428.tar.gz kernel-b851ba02a6f3075f0f99c60c4bc30a4af80cf428.zip | |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
