[PATCH AUTOSEL 4.14 06/30] powerpc/64/module: REL32 relocation range check

2018-11-04 Thread Sasha Levin
From: Nicholas Piggin [ 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

[PATCH AUTOSEL 4.14 06/30] powerpc/64/module: REL32 relocation range check

2018-11-04 Thread Sasha Levin
From: Nicholas Piggin [ 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