qemu-devel
[Top][All Lists]
Advanced

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

[PATCH v2 0/2] linux-user: fix print_syscall_err()


From: Laurent Vivier
Subject: [PATCH v2 0/2] linux-user: fix print_syscall_err()
Date: Wed, 8 Jul 2020 17:24:33 +0200

This function has been introduced to manage in a generic way the error
code of the syscall in the strace output.

But it has introduced a regression regarding two previous commits:

2a7e12455c1d ("linux-user/strace.c: Correct errno printing for mmap etc")
   that intoduced the use of "-ret" rather than of "errno"
962b289ef350 ("linux-user: fix QEMU_STRACE=1 segfault")
   that checks "-ret" is a valid error number

That series fixes that.

v2: add the patch to check "-ret" is valid

Laurent Vivier (2):
  linux-user: fix the errno value in print_syscall_err()
  linux-user: fix print_syscall_err() when syscall returned value is
    negative

 linux-user/strace.c | 36 +++++++++++++-----------------------
 1 file changed, 13 insertions(+), 23 deletions(-)

-- 
2.26.2




reply via email to

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