qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: Re: [PATCH] linux-user: Emulate /proc/self/maps under mmap_lock
Date: Mon, 21 Oct 2024 19:02:44 -0700
User-agent: Mozilla Thunderbird

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-stable@nongnu.org
Fixes: 7b7a3366e142 ("linux-user: Use walk_memory_regions for open_self_maps")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
  linux-user/syscall.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

Thanks, queued.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]