Since Linux 6.11, statx() and fstatat() syscalls accept a null `pathname`. Before this patch, qemu-*-linux-user failed with EFAULT when `pathname` was specified as NULL, even for Linux kernel hosts > 6.10. This patch fixes this issue by checking whether `arg2` is 0. If so, don't return EFAULT, but instead perform the appropiate syscall and let the host's kernel handle null `pathname`.
Jean-Christian CÎRSTEA (1): linux-user: allow null `pathname` for statx()/fstatat() linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.51.0
