Hi Song,
On 26.05.23 18:49, Song Liu wrote:
Hi Frank,
Thanks for the report.
Sure, thanks for your help in this.
It seems the error happened during the WARN_ON_ONCE. Could you
please try whether something like the following fixes it?
diff --git i/kernel/module/main.c w/kernel/module/main.c
index 0f9183f1ca9f..ae42dfc1a815 100644
--- i/kernel/module/main.c
+++ w/kernel/module/main.c
@@ -1537,7 +1537,7 @@ static void __layout_sections(struct module
*mod, struct load_info *info, bool i
|| is_init != module_init_layout_section(sname))
continue;
- if (WARN_ON_ONCE(type == MOD_INVALID))
+ if (type == MOD_INVALID)
continue;
s->sh_entsize =
module_get_offset_and_type(mod, type, s, i);
Ok, tried that as -patch1 on top of v6.4-rc3, but didn't help, see [1].
[1]: https://pastebin.com/UK9v30Ae
If that doesn't work, maybe we need something like this:
diff --git i/arch/ia64/kernel/module.c w/arch/ia64/kernel/module.c
index 3661135da9d9..4e9a7f0498e2 100644
--- i/arch/ia64/kernel/module.c
+++ w/arch/ia64/kernel/module.c
@@ -815,7 +815,7 @@ apply_relocate_add (Elf64_Shdr *sechdrs, const
char *strtab, unsigned int symind
uint64_t gp;
struct module_memory *mod_mem;
- mod_mem = &mod->mem[MOD_DATA];
+ mod_mem = &mod->mem[MOD_TEXT];
if (mod_mem->size > MAX_LTOFF)
/*
* This takes advantage of fact that
SHF_ARCH_SMALL gets allocated
Tried that one as -patch2 on top of v6.4-rc3, but didn't help, see [2].
[2]: https://pastebin.com/gLupBndU
I also tried both patches as -patch1plus2 on top of v6.4-rc3 with a
similar result, see [3].
[3]: https://pastebin.com/7pXBG5vx
Cheers,
Frank