Skip to contentSkip to conversation

kexec failure (Undefined symbol: __stack_chk_fail)

DISCUSSION Arvind Sankar 2 participants 3 messages May 11, 2019

lore
Share & tools
lore
#0 lore raw

I'm running v5.1.0 trying to kexec into v5.1.1. I get an error when trying to load the kernel image, I enabled some debugging of arch/x86/kernel/machine_kexec_64.c and got the following log:

[90028.591812] kexec: Applying relocate section .rela.text to 1
[90028.592438] kexec: Symbol: sha256_update info: 12 shndx: 01 value=159 size: 1bc4
[90028.593077] kexec: Symbol: purgatory_sha_regions info: 11 shndx: 08 value=0 size: 100
[90028.593744] kexec: Symbol: sha256_init info: 12 shndx: 01 value=117 size: 42
[90028.594406] kexec: Symbol: purgatory_sha_regions info: 11 shndx: 08 value=0 size: 100
[90028.595086] kexec: Symbol: sha256_final info: 12 shndx: 01 value=1d1d size: b5
[90028.595775] kexec: Symbol: purgatory_sha256_digest info: 11 shndx: 08 value=100 size: 20
[90028.596486] kexec: Symbol: memcmp info: 12 shndx: 01 value=1e9b size: c
[90028.597203] kexec: Symbol: purgatory_backup_dest info: 11 shndx: 08 value=130 size: 8
[90028.597947] kexec: Symbol: purgatory_backup_src info: 11 shndx: 08 value=128 size: 8
[90028.598701] kexec: Symbol: purgatory_backup_sz info: 11 shndx: 08 value=120 size: 8
[90028.599449] kexec: Symbol: __stack_chk_fail info: 10 shndx: 00 value=0 size: 0
[90028.600199] kexec: Undefined symbol: __stack_chk_fail
[90028.600955] kexec-bzImage64: Loading purgatory failed

I have attached the config.gz from the running 5.1.0 kernel and the built 5.1.1 kernel. The config was working ok with the 5.0 series.

Thanks

#1 lore raw
Quoted 18 lines · Arvind Sankar

I'm running v5.1.0 trying to kexec into v5.1.1. I get an error when trying to load the kernel image, I enabled some debugging of arch/x86/kernel/machine_kexec_64.c and got the following log:

[90028.591812] kexec: Applying relocate section .rela.text to 1
[90028.592438] kexec: Symbol: sha256_update info: 12 shndx: 01 value=159 size: 1bc4
[90028.593077] kexec: Symbol: purgatory_sha_regions info: 11 shndx: 08 value=0 size: 100
[90028.593744] kexec: Symbol: sha256_init info: 12 shndx: 01 value=117 size: 42
[90028.594406] kexec: Symbol: purgatory_sha_regions info: 11 shndx: 08 value=0 size: 100
[90028.595086] kexec: Symbol: sha256_final info: 12 shndx: 01 value=1d1d size: b5
[90028.595775] kexec: Symbol: purgatory_sha256_digest info: 11 shndx: 08 value=100 size: 20
[90028.596486] kexec: Symbol: memcmp info: 12 shndx: 01 value=1e9b size: c
[90028.597203] kexec: Symbol: purgatory_backup_dest info: 11 shndx: 08 value=130 size: 8
[90028.597947] kexec: Symbol: purgatory_backup_src info: 11 shndx: 08 value=128 size: 8
[90028.598701] kexec: Symbol: purgatory_backup_sz info: 11 shndx: 08 value=120 size: 8
[90028.599449] kexec: Symbol: __stack_chk_fail info: 10 shndx: 00 value=0 size: 0
[90028.600199] kexec: Undefined symbol: __stack_chk_fail
[90028.600955] kexec-bzImage64: Loading purgatory failed
Quoted 4 lines

I have attached the config.gz from the running 5.1.0 kernel and the built 5.1.1 kernel. The config was working ok with the 5.0 series.

Thanks

I get the same error message when trying to load even the currently running kernel.

#2 lore raw
Quoted 19 lines · Arvind Sankar
Quoted 18 lines · Arvind Sankar

I'm running v5.1.0 trying to kexec into v5.1.1. I get an error when trying to load the kernel image, I enabled some debugging of arch/x86/kernel/machine_kexec_64.c and got the following log:

[90028.591812] kexec: Applying relocate section .rela.text to 1
[90028.592438] kexec: Symbol: sha256_update info: 12 shndx: 01 value=159 size: 1bc4
[90028.593077] kexec: Symbol: purgatory_sha_regions info: 11 shndx: 08 value=0 size: 100
[90028.593744] kexec: Symbol: sha256_init info: 12 shndx: 01 value=117 size: 42
[90028.594406] kexec: Symbol: purgatory_sha_regions info: 11 shndx: 08 value=0 size: 100
[90028.595086] kexec: Symbol: sha256_final info: 12 shndx: 01 value=1d1d size: b5
[90028.595775] kexec: Symbol: purgatory_sha256_digest info: 11 shndx: 08 value=100 size: 20
[90028.596486] kexec: Symbol: memcmp info: 12 shndx: 01 value=1e9b size: c
[90028.597203] kexec: Symbol: purgatory_backup_dest info: 11 shndx: 08 value=130 size: 8
[90028.597947] kexec: Symbol: purgatory_backup_src info: 11 shndx: 08 value=128 size: 8
[90028.598701] kexec: Symbol: purgatory_backup_sz info: 11 shndx: 08 value=120 size: 8
[90028.599449] kexec: Symbol: __stack_chk_fail info: 10 shndx: 00 value=0 size: 0
[90028.600199] kexec: Undefined symbol: __stack_chk_fail
[90028.600955] kexec-bzImage64: Loading purgatory failed
Quoted 8 lines
Quoted 4 lines

I have attached the config.gz from the running 5.1.0 kernel and the built 5.1.1 kernel. The config was working ok with the 5.0 series.

Thanks

I get the same error message when trying to load even the currently running kernel.

Hm this has mysteriously disappeared after cold-booting into 5.1.1.