Re: [PATCH v2 2/2] hw/elf_ops: clear uninitialized segment space

2021-04-17 Thread Laurent Vivier
Le 15/04/2021 à 12:04, Philippe Mathieu-Daudé a écrit : > From: Laurent Vivier > > When the mem_size of the segment is bigger than the file_size, > and if this space doesn't overlap another segment, it needs > to be cleared. > > This bug is very similar to the one we had for linux-user, > 22d113

Re: [PATCH v2 2/2] hw/elf_ops: clear uninitialized segment space

2021-04-15 Thread Richard Henderson
On 4/15/21 3:04 AM, Philippe Mathieu-Daudé wrote: From: Laurent Vivier When the mem_size of the segment is bigger than the file_size, and if this space doesn't overlap another segment, it needs to be cleared. This bug is very similar to the one we had for linux-user, 22d113b52f41 ("linux-user:

Re: [PATCH v2 2/2] hw/elf_ops: clear uninitialized segment space

2021-04-15 Thread Laurent Vivier
Le 15/04/2021 à 12:04, Philippe Mathieu-Daudé a écrit : > From: Laurent Vivier > > When the mem_size of the segment is bigger than the file_size, > and if this space doesn't overlap another segment, it needs > to be cleared. > > This bug is very similar to the one we had for linux-user, > 22d113

Re: [PATCH v2 2/2] hw/elf_ops: clear uninitialized segment space

2021-04-15 Thread Stefano Garzarella
On Thu, Apr 15, 2021 at 12:04:09PM +0200, Philippe Mathieu-Daudé wrote: From: Laurent Vivier When the mem_size of the segment is bigger than the file_size, and if this space doesn't overlap another segment, it needs to be cleared. This bug is very similar to the one we had for linux-user, 22d1

[PATCH v2 2/2] hw/elf_ops: clear uninitialized segment space

2021-04-15 Thread Philippe Mathieu-Daudé
From: Laurent Vivier When the mem_size of the segment is bigger than the file_size, and if this space doesn't overlap another segment, it needs to be cleared. This bug is very similar to the one we had for linux-user, 22d113b52f41 ("linux-user: Fix loading of BSS segments"), where .bss section i