On 22/05/2023 20:01, Zachary Leaf wrote:
Hi Kristina,
On 10/05/2023 11:34, Kristina Martsenko wrote:
Hi,
Here are a few small patches to fix kernel module loading in the PCuABI kernel [1]. (Sorry about the delay!) There are some notes on testing in the third patch.
Thanks, Kristina
[1] https://git.morello-project.org/morello/kernel/linux/-/issues/41
Kristina Martsenko (3): module: Allow arch overrides for ELF arch check arm64: elf: Enable module loading for PCuABI kernels
Works for me. Some of the eBPF kselftests use a kernel module as part of the tests. I was able to load and use that module with the above patches. Thanks for the fix.
Reviewed-by: Zachary Leaf zachary.leaf@arm.com Tested-by: Zachary Leaf zachary.leaf@arm.com
Sorry it took me so long to get to this. Thanks Kristina for the patches, they look good to me, and thanks Zach for the testing.
I tested LTP with the instructions provided in patch 3 and that worked just fine. I have now applied patch 1 and 2 on next.
I don't think we need patch 3, as this is for testing purposes only and these options are already available as a separate fragment (tools/testing/selftests/lib/config). The plan is now to get the CI to build the kernel + modules with this fragment and the additional kselftests.
Kevin
Thanks, Zach
arm64: morello: Add test modules to defconfig
note: I haven't run these test modules from patch 3
.../configs/morello_transitional_pcuabi_defconfig | 6 ++++++ arch/arm64/include/asm/elf.h | 10 ++-------- include/linux/moduleloader.h | 4 ++++ kernel/module/main.c | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-)
base-commit: 7f84d159d4eb989bf2f42d2e3b27a204cb3c1ec4
linux-morello mailing list -- linux-morello@op-lists.linaro.org To unsubscribe send an email to linux-morello-leave@op-lists.linaro.org