Re: [PATCH] kvx: exclude dtb from malloc zone

2020-08-11 Thread Sascha Hauer
On Thu, Jul 09, 2020 at 10:22:04PM +0200, Clement Leger wrote: > When dtb is provided by the FSBL (first stage bootloader), it might > end up in the malloc zone initialized by barebox. While the dtb is > discarded after being unflatten, if the dtb is provided right after > barebox elf, then the

Re: [PATCH] kvx: exclude dtb from malloc zone

2020-08-03 Thread Clément Leger
Hi Sascha, - On 11 Jul, 2020, at 12:19, Clément Leger cle...@kalray.eu wrote: > Hi Sascha > > - On 11 Jul, 2020, at 06:41, Sascha Hauer s.ha...@pengutronix.de wrote: > >> Hi Clement, >> >> On Thu, Jul 09, 2020 at 10:22:04PM +0200, Clement Leger wrote: >>> When dtb is provided by the

Re: [PATCH] kvx: exclude dtb from malloc zone

2020-07-11 Thread Clément Leger
Hi Sascha - On 11 Jul, 2020, at 06:41, Sascha Hauer s.ha...@pengutronix.de wrote: > Hi Clement, > > On Thu, Jul 09, 2020 at 10:22:04PM +0200, Clement Leger wrote: >> When dtb is provided by the FSBL (first stage bootloader), it might >> end up in the malloc zone initialized by barebox.

Re: [PATCH] kvx: exclude dtb from malloc zone

2020-07-10 Thread Sascha Hauer
Hi Clement, On Thu, Jul 09, 2020 at 10:22:04PM +0200, Clement Leger wrote: > When dtb is provided by the FSBL (first stage bootloader), it might > end up in the malloc zone initialized by barebox. While the dtb is > discarded after being unflatten, if the dtb is provided right after > barebox

[PATCH] kvx: exclude dtb from malloc zone

2020-07-09 Thread Clement Leger
When dtb is provided by the FSBL (first stage bootloader), it might end up in the malloc zone initialized by barebox. While the dtb is discarded after being unflatten, if the dtb is provided right after barebox elf, then the malloc can overwrite it while unflattening it when allocating nodes. To