[PATCH 0/1] linux-user: allow null `pathname` for statx()/fstatat()

Jean-Christian CÎRSTEA posted 1 patch 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251223172548.1847032-1-jean.christian.cirstea@gmail.com
Maintainers: Laurent Vivier <laurent@vivier.eu>
There is a newer version of this series
linux-user/syscall.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[PATCH 0/1] linux-user: allow null `pathname` for statx()/fstatat()
Posted by Jean-Christian CÎRSTEA 1 month, 2 weeks ago
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