]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc64/module elfv1: Set opd addresses after module relocation
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tue, 29 May 2018 06:51:00 +0000 (12:21 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Oct 2018 02:26:47 +0000 (13:26 +1100)
commitea28d75173ae99c3350dda683bba4b39ac02f099
treeb24623b3e2551ae98edd4c517ee1847976a340af
parent1880e3ee8ad0d17f7b6836494691391fd312d458
powerpc64/module elfv1: Set opd addresses after module relocation

module_frob_arch_sections() is called before the module is moved to its
final location. The function descriptor section addresses we are setting
here are thus invalid. Fix this by processing opd section during
module_finalize()

Fixes: 98ab58a9f951b ("powerpc64: Add .opd based function descriptor dereference")
Cc: stable@vger.kernel.org # v4.16
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/module.c
arch/powerpc/kernel/module_64.c