[PATCH 09/17] kexec_file: Remove mis-use of sh_offset field

2018-02-12 Thread Philipp Rudo
The current code uses the sh_offset field in purgatory_info->sechdrs to store a pointer to the current load address of the section. Depending whether the section will be loaded or not this is either a pointer into purgatory_info->purgatory_buf or kexec_purgatory. This is not only a violation of

[PATCH 09/17] kexec_file: Remove mis-use of sh_offset field

2018-02-12 Thread Philipp Rudo
The current code uses the sh_offset field in purgatory_info->sechdrs to store a pointer to the current load address of the section. Depending whether the section will be loaded or not this is either a pointer into purgatory_info->purgatory_buf or kexec_purgatory. This is not only a violation of

[PATCH 09/17] kexec_file: Remove mis-use of sh_offset field

2018-02-02 Thread Philipp Rudo
The current code uses the sh_offset field in purgatory_info->sechdrs to store a pointer to the current load address of the section. Depending whether the section will be loaded or not this is either a pointer into purgatory_info->purgatory_buf or kexec_purgatory. This is not only a violation of

[PATCH 09/17] kexec_file: Remove mis-use of sh_offset field

2018-02-02 Thread Philipp Rudo
The current code uses the sh_offset field in purgatory_info->sechdrs to store a pointer to the current load address of the section. Depending whether the section will be loaded or not this is either a pointer into purgatory_info->purgatory_buf or kexec_purgatory. This is not only a violation of