Le 17/09/2018 à 20:13, Max Filippov a écrit :
> setrlimit guest calls that affect memory resources
> (RLIMIT_{AS,DATA,STACK}) may interfere with QEMU internal memory
> management. They may result in QEMU lockup because mprotect call in
> page_unprotect would fail with ENOMEM error code, causing infinite loop
> of SIGSEGV. E.g. it happens when running libstdc++ testsuite for xtensa
> target on x86_64 host.
> 
> Don't call host setrlimit for memory-related resources.
> 
> Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>
> Signed-off-by: Max Filippov <jcmvb...@gmail.com>
> ---
> Changes v2->v3:
> - add comment sugessted by Peter
> 
> Changes v1->v2:
> - don't limit change to 32-bit guest on 64-bit host case
> 
>  linux-user/syscall.c | 16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)

rebased on master and applied on my branch linux-user-for-3.1

Thanks,
Laurent


Reply via email to