Kernel build failure with MEM_ALLOC_PROFILING=y set (Talos II, v6.10-rc5)
Greetings!
I get a build failure on v6.10-rc5 on my Talos II when MEM_ALLOC_PROFILING=y is enabled:
[...]
LD [M] fs/xfs/xfs.o LD [M] fs/bcachefs/bcachefs.o AR built-in.a AR vmlinux.a LD vmlinux.o
OBJCOPY modules.builtin.modinfo
GEN modules.builtin
GEN .vmlinux.objs
MODPOST Module.symvers
ERROR: modpost: "page_ext_get" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "mem_alloc_profiling_key" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "page_ext_put" [arch/powerpc/kvm/kvm-hv.ko] undefined! make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Fehler 1 make[1]: *** [/usr/src/linux-stable/Makefile:1886: modpost] Fehler 2
make: *** [Makefile:240: __sub-make] Fehler 2
Same .config builds fine without MEM_ALLOC_PROFILING set. Kernel .config attached.
Regards,
Erhard
Quoted 19 lines · On Sat, 29 Jun 2024 15:31:28 +0200 Erhard Furtner <[email protected]> wrote:
I get a build failure on v6.10-rc5 on my Talos II when MEM_ALLOC_PROFILING=y is enabled:
[...]
LD [M] fs/xfs/xfs.o LD [M] fs/bcachefs/bcachefs.o AR built-in.a AR vmlinux.a LD vmlinux.oOBJCOPY modules.builtin.modinfo
GEN modules.builtin
GEN .vmlinux.objs
MODPOST Module.symvers
ERROR: modpost: "page_ext_get" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "mem_alloc_profiling_key" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "page_ext_put" [arch/powerpc/kvm/kvm-hv.ko] undefined! make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Fehler 1 make[1]: *** [/usr/src/linux-stable/Makefile:1886: modpost] Fehler 2
make: *** [Makefile:240: __sub-make] Fehler 2
Quoted 1 line
Same .config builds fine without
MEM_ALLOC_PROFILINGset. Kernel .config attached.
Build problem still there on now released v6.10 with MEM_ALLOC_PROFILING=y.
Can't bisect as build with MEM_ALLOC_PROFILING fails since it's introduction in v6.10-rc1.
Regards,
Erhard
Le 21/07/2024 à 01:09, Erhard Furtner a écrit :
Quoted 24 lines
[Vous ne recevez pas souvent de courriers de [email protected]. D?couvrez pourquoi ceci est important ? https://aka.ms/LearnAboutSenderIdentification ]
Quoted 19 lines · On Sat, 29 Jun 2024 15:31:28 +0200 Erhard Furtner <[email protected]> wrote:
I get a build failure on v6.10-rc5 on my Talos II when MEM_ALLOC_PROFILING=y is enabled:
[...]
LD [M] fs/xfs/xfs.o LD [M] fs/bcachefs/bcachefs.o AR built-in.a AR vmlinux.a LD vmlinux.oOBJCOPY modules.builtin.modinfo
GEN modules.builtin
GEN .vmlinux.objs
MODPOST Module.symvers
ERROR: modpost: "page_ext_get" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "mem_alloc_profiling_key" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "page_ext_put" [arch/powerpc/kvm/kvm-hv.ko] undefined! make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Fehler 1 make[1]: *** [/usr/src/linux-stable/Makefile:1886: modpost] Fehler 2
make: *** [Makefile:240: __sub-make] Fehler 2
Quoted 6 lines
Quoted 1 line
Same .config builds fine without
MEM_ALLOC_PROFILINGset. Kernel .config attached.Build problem still there on now released v6.10 with MEM_ALLOC_PROFILING=y.
Can't bisect as build with
MEM_ALLOC_PROFILINGfails since it's introduction in v6.10-rc1.
I guess those three functions are missing EXPORT_SYMBOL_GPL() tagging.
Christophe
Quoted 28 lines · LEROY Christophe
Quoted 24 lines · Erhard Furtner
[Vous ne recevez pas souvent de courriers de [email protected]. D?couvrez pourquoi ceci est important ? https://aka.ms/LearnAboutSenderIdentification ]
Quoted 19 lines · On Sat, 29 Jun 2024 15:31:28 +0200 Erhard Furtner <[email protected]> wrote:
I get a build failure on v6.10-rc5 on my Talos II when MEM_ALLOC_PROFILING=y is enabled:
[...]
LD [M] fs/xfs/xfs.o LD [M] fs/bcachefs/bcachefs.o AR built-in.a AR vmlinux.a LD vmlinux.oOBJCOPY modules.builtin.modinfo
GEN modules.builtin
GEN .vmlinux.objs
MODPOST Module.symvers
ERROR: modpost: "page_ext_get" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "mem_alloc_profiling_key" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "page_ext_put" [arch/powerpc/kvm/kvm-hv.ko] undefined! make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Fehler 1 make[1]: *** [/usr/src/linux-stable/Makefile:1886: modpost] Fehler 2
make: *** [Makefile:240: __sub-make] Fehler 2
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Same .config builds fine without
MEM_ALLOC_PROFILINGset. Kernel .config attached.Build problem still there on now released v6.10 with MEM_ALLOC_PROFILING=y.
Can't bisect as build with
MEM_ALLOC_PROFILINGfails since it's introduction in v6.10-rc1.I guess those three functions are missing
EXPORT_SYMBOL_GPL()tagging.
The issue should have been fixed by
https://lore.kernel.org/all/[email protected]/
patchset. I probably forgot to CC stable@ for these changes. Let me check and follow up.
Thanks,
Suren.
Quoted 2 lines
Christophe
Quoted 38 lines · Suren Baghdasaryan
Quoted 35 lines · LEROY Christophe
Quoted 30 lines · Erhard Furtner
[Vous ne recevez pas souvent de courriers de [email protected]. D?couvrez pourquoi ceci est important ? https://aka.ms/LearnAboutSenderIdentification ]
Quoted 19 lines · On Sat, 29 Jun 2024 15:31:28 +0200 Erhard Furtner <[email protected]> wrote:
I get a build failure on v6.10-rc5 on my Talos II when MEM_ALLOC_PROFILING=y is enabled:
[...]
LD [M] fs/xfs/xfs.o LD [M] fs/bcachefs/bcachefs.o AR built-in.a AR vmlinux.a LD vmlinux.oOBJCOPY modules.builtin.modinfo
GEN modules.builtin
GEN .vmlinux.objs
MODPOST Module.symvers
ERROR: modpost: "page_ext_get" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "mem_alloc_profiling_key" [arch/powerpc/kvm/kvm-hv.ko] undefined!
ERROR: modpost: "page_ext_put" [arch/powerpc/kvm/kvm-hv.ko] undefined! make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Fehler 1 make[1]: *** [/usr/src/linux-stable/Makefile:1886: modpost] Fehler 2
make: *** [Makefile:240: __sub-make] Fehler 2Quoted 1 line
Same .config builds fine without
MEM_ALLOC_PROFILINGset. Kernel .config attached.Build problem still there on now released v6.10 with MEM_ALLOC_PROFILING=y.
Can't bisect as build with
MEM_ALLOC_PROFILINGfails since it's introduction in v6.10-rc1.
Quoted 6 lines
Quoted 1 line
I guess those three functions are missing
EXPORT_SYMBOL_GPL()tagging.The issue should have been fixed by
https://lore.kernel.org/all/[email protected]/
patchset. I probably forgot to CC stable@ for these changes. Let me check and follow up.
The issue is fixed by the patch titled "alloc_tag: outline and export free_reserved_page()" which has b3bebe44306e SHA in Linus' tree and first appears in v6.10.3 with SHA 4a9a52b70cce.
Quoted 5 lines
Thanks,
Suren.Quoted 2 lines
Christophe