Re: [U-Boot] [PATCH 1/1] efi_selftest: do not write to linker generated array

2018-10-24 Thread Simon Glass
Hi Heinrich, On 22 October 2018 at 15:14, Heinrich Schuchardt wrote: > On 10/22/2018 07:49 PM, Simon Glass wrote: >> Hi Heinrich, >> >> On 18 October 2018 at 23:51, Heinrich Schuchardt wrote: >>> Linker generated arrays may be stored in code sections of memory that are >>> not writable. So let's

Re: [U-Boot] [PATCH 1/1] efi_selftest: do not write to linker generated array

2018-10-22 Thread Heinrich Schuchardt
On 10/22/2018 07:49 PM, Simon Glass wrote: > Hi Heinrich, > > On 18 October 2018 at 23:51, Heinrich Schuchardt wrote: >> Linker generated arrays may be stored in code sections of memory that are >> not writable. So let's allocate setup_ok as an array at runtime. >> >> This avoids an illegal memor

Re: [U-Boot] [PATCH 1/1] efi_selftest: do not write to linker generated array

2018-10-22 Thread Simon Glass
Hi Heinrich, On 18 October 2018 at 23:51, Heinrich Schuchardt wrote: > Linker generated arrays may be stored in code sections of memory that are > not writable. So let's allocate setup_ok as an array at runtime. > > This avoids an illegal memory access observed in the sandbox. > > Reported-by: Si

[U-Boot] [PATCH 1/1] efi_selftest: do not write to linker generated array

2018-10-18 Thread Heinrich Schuchardt
Linker generated arrays may be stored in code sections of memory that are not writable. So let's allocate setup_ok as an array at runtime. This avoids an illegal memory access observed in the sandbox. Reported-by: Simon Glass Signed-off-by: Heinrich Schuchardt --- include/efi_selftest.h