Re: [PATCH] linux-user: Emulate /proc/self/maps under mmap_lock

2024-10-21 Thread Richard Henderson
On 10/14/24 13:34, Ilya Leoshkevich wrote: If one thread modifies the mappings and another thread prints them, a situation may occur that the printer thread sees a guest mapping without a corresponding host mapping, leading to a crash in open_self_maps_2(). Cc: qemu-sta...@nongnu.org Fixes: 7b7a

Re: [PATCH] linux-user: Emulate /proc/self/maps under mmap_lock

2024-10-15 Thread Laurent Vivier
Le 14/10/2024 à 22:34, Ilya Leoshkevich a écrit : If one thread modifies the mappings and another thread prints them, a situation may occur that the printer thread sees a guest mapping without a corresponding host mapping, leading to a crash in open_self_maps_2(). Cc: qemu-sta...@nongnu.org Fixe

[PATCH] linux-user: Emulate /proc/self/maps under mmap_lock

2024-10-14 Thread Ilya Leoshkevich
If one thread modifies the mappings and another thread prints them, a situation may occur that the printer thread sees a guest mapping without a corresponding host mapping, leading to a crash in open_self_maps_2(). Cc: qemu-sta...@nongnu.org Fixes: 7b7a3366e142 ("linux-user: Use walk_memory_region