2019-05-11 19:18:12

by Arvind Sankar

[permalink] [raw]
Subject: kexec failure (Undefined symbol: __stack_chk_fail)

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


Attachments:
(No filename) (1.44 kB)
v5.1.0.config.gz (21.06 kB)
v5.1.0 config
v5.1.1.config.gz (21.49 kB)
v5.1.1 config
Download all attachments

2019-05-11 19:42:03

by Arvind Sankar

[permalink] [raw]
Subject: Re: kexec failure (Undefined symbol: __stack_chk_fail)

On Sat, May 11, 2019 at 03:16:59PM -0400, Arvind Sankar wrote:
> 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


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

2019-05-11 22:49:26

by Arvind Sankar

[permalink] [raw]
Subject: Re: kexec failure (Undefined symbol: __stack_chk_fail)

On Sat, May 11, 2019 at 03:40:49PM -0400, Arvind Sankar wrote:
> On Sat, May 11, 2019 at 03:16:59PM -0400, Arvind Sankar wrote:
> > 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
>
>
> 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.