Re: [PATCH v2] linux-user: Fix executable page of /proc/self/maps

2021-03-09 Thread Laurent Vivier
Le 08/03/2021 à 10:19, Nicolas Surbayrole a écrit : > The guest binary and libraries are not always map with the > executable bit in the host process. The guest may read a > /proc/self/maps with no executable address range. The > perm fields should be based on the guest permission inside > Qemu. >

Re: [PATCH v2] linux-user: Fix executable page of /proc/self/maps

2021-03-09 Thread Alex Bennée
Laurent Vivier writes: > Le 08/03/2021 à 10:19, Nicolas Surbayrole a écrit : >> The guest binary and libraries are not always map with the >> executable bit in the host process. The guest may read a >> /proc/self/maps with no executable address range. The >> perm fields should be based on the g

Re: [PATCH v2] linux-user: Fix executable page of /proc/self/maps

2021-03-09 Thread Richard Henderson
On 3/8/21 1:19 AM, Nicolas Surbayrole wrote: The guest binary and libraries are not always map with the executable bit in the host process. The guest may read a /proc/self/maps with no executable address range. The perm fields should be based on the guest permission inside Qemu. Signed-off-by: N

Re: [PATCH v2] linux-user: Fix executable page of /proc/self/maps

2021-03-09 Thread Richard Henderson
On 3/8/21 2:47 AM, Laurent Vivier wrote: Should we move this directly in read_self_maps() to have the guest values in MapInfo? No, because we also need read_self_maps() to create the guest in the first place. r~

[PATCH v2] linux-user: Fix executable page of /proc/self/maps

2021-03-08 Thread Nicolas Surbayrole
The guest binary and libraries are not always map with the executable bit in the host process. The guest may read a /proc/self/maps with no executable address range. The perm fields should be based on the guest permission inside Qemu. Signed-off-by: Nicolas Surbayrole --- linux-user/syscall.c |

Re: [PATCH v2] linux-user: Fix executable page of /proc/self/maps

2021-03-08 Thread Laurent Vivier
Le 08/03/2021 à 10:19, Nicolas Surbayrole a écrit : > The guest binary and libraries are not always map with the > executable bit in the host process. The guest may read a > /proc/self/maps with no executable address range. The > perm fields should be based on the guest permission inside > Qemu. >