Skip to contentSkip to conversation

linux-next: build failure in the last build

DISCUSSION Mark Brown 2 participants 3 messages Sep 24 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the pagemap-headers tree, today's linux-next build (arm64 allyesconfig) failed like this:

ld: can not size stub section: file truncated
$d' referenced in section __patchable_function_entries' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .init_array' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .initcall.modnames' of kernel/kheaders.o: defined in discarded section `.note.gnu.property' of kernel/kheaders.o

Caused by commit

69efc02bccc76 (module: extend module_blacklist parameter to built-in modules)

I have reverted that commit and 1ca4515ee4e01 (module: rename module_blacklist to module_denylist) which collided with it.

#1 lore raw
Quoted 10 lines · Mark Brown

Hi all,

After merging the pagemap-headers tree, today's linux-next build (arm64 allyesconfig) failed like this:

ld: can not size stub section: file truncated
$d' referenced in section __patchable_function_entries' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .init_array' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .initcall.modnames' of kernel/kheaders.o: defined in discarded section `.note.gnu.property' of kernel/kheaders.o

Quoted 6 lines

Caused by commit

69efc02bccc76 (module: extend module_blacklist parameter to built-in modules)

I have reverted that commit and 1ca4515ee4e01 (module: rename module_blacklist to module_denylist) which collided with it.

Hi Mark,

Thank you for the report.

At first glance, this appears to be caused by a corrupted/truncated kernel/kheaders.o on the build runner rather than an issue in the patch itself, no? Could you try a clean rebuild of arm64 allyesconfig with the commits re-applied? It should build cleanly.

I will take a detailed look.

Kind regards,

Signature · 1 line
Aaron Tomlin
author maintainer
#2 lore raw
Quoted 7 lines · Aaron Tomlin
Quoted 4 lines · Mark Brown

ld: can not size stub section: file truncated
$d' referenced in section __patchable_function_entries' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .init_array' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .initcall.modnames' of kernel/kheaders.o: defined in discarded section `.note.gnu.property' of kernel/kheaders.o

Quoted 7 lines
Quoted 2 lines

I have reverted that commit and 1ca4515ee4e01 (module: rename module_blacklist to module_denylist) which collided with it.

At first glance, this appears to be caused by a corrupted/truncated kernel/kheaders.o on the build runner rather than an issue in the patch itself, no? Could you try a clean rebuild of arm64 allyesconfig with the commits re-applied? It should build cleanly.

This was a completely clean build, I only do one of the allyesconfigs a day and the builds are done in tmpfs with the machine powered off between -next runs. My first guess would be that you have overflowed some size limit in something.