Le 23/12/2025 à 18:25, Jean-Christian CÎRSTEA a écrit :
Since Linux 6.11, the path argument may be NULL.

Put there the message from the cover letter. You don't need a cover letter with a 1 patch series and the cover letter doesn't appear in the log.yes


Signed-off-by: Jean-Christian CÎRSTEA <[email protected]>
---
  linux-user/syscall.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 2060e561a2..e1b61f6dc5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -12142,7 +12142,8 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int 
num, abi_long arg1,
              int flags = arg3;
p = lock_user_string(arg2);
-            if (p == NULL) {
+            /* Since Linux 6.11, the path argument may be NULL */
+            if (arg2 != 0 && p == NULL) {
                  return -TARGET_EFAULT;
              }
  #if defined(__NR_statx)

Reviewed-by: Laurent Vivier <[email protected]>



Reply via email to