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-09-07 18:38:25 +02:00
2018-09-08 15:52:45 -07:00
2018-08-25 13:40:38 -07:00
2018-09-08 15:52:45 -07:00
2018-08-23 14:09:37 -07:00
2018-08-25 13:40:38 -07:00
2018-08-23 14:55:01 -07:00