[PATCH v5 0/2] powerpc module arch checks

From: Nicholas Piggin
Date: Mon Oct 31 2022 - 08:07:52 EST


These slipped through the cracks. Picking them up again...

The story so far is that Jessica gave us the new scheme in patch 1,
now slightly rebased. Patch 2 implements the additional check
that powerpc wants which originally came from Michael, and has been
updated to the new approach.

This was previously attached to the ELFv2 build option for big-endian
kernels, but it can go ahead of that option.

Just checking everybody is still okay with the code and their SOBs,
and Luis if you would be okay for patch 1 to be merged via powerpc or
prefer to take it in the module tree (or maybe you object to the
code in the first place).

Thanks,
Nick

Nicholas Piggin (2):
module: add module_elf_check_arch for module-specific checks
powerpc/64: Add module check for ELF ABI version

arch/powerpc/kernel/module.c | 17 +++++++++++++++++
include/linux/moduleloader.h | 3 +++
kernel/module/main.c | 10 ++++++++++
3 files changed, 30 insertions(+)

--
2.37.2