[PATCH v9 1/2] linux-user: add openat2 support in linux-user

2024-10-01 Thread Michael Vogt
it seems similar to the exiting behavior when openat() is called with a dirfd to "/proc". Here too the fake file lookup may not catch the special file because no dirfd is used to determine if the path is in /proc. Signed-off-by: Michael Vogt Buglink: https://github.com/osbuild/bootc-image

[PATCH v9 0/2] linux-user: add openat2 support in linux-user

2024-10-01 Thread Michael Vogt
itialization of open_how - Define target_open_how with abi_* types - Warn about unimplemented size if "size" of openat2 is bigger than target_open_how Michael Vogt (2): linux-user: add openat2 support in linux-user linux-user: add strace support for openat2 linux-us

[PATCH v9 2/2] linux-user: add strace support for openat2

2024-10-01 Thread Michael Vogt
`syscall_defs.h` so that strace.c can use them. Signed-off-by: Michael Vogt --- linux-user/qemu.h | 9 linux-user/strace.c | 44 +++ linux-user/strace.list| 3 +++ linux-user/syscall.c | 8 +-- linux-user/syscall_defs.h

[PATCH v8 2/2] linux-user: add strace support for openat2

2024-09-30 Thread Michael Vogt
`syscall_defs.h` so that strace.c can use them. Signed-off-by: Michael Vogt --- linux-user/qemu.h | 9 + linux-user/strace.c | 40 +++ linux-user/strace.list| 3 +++ linux-user/syscall.c | 8 +--- linux-user/syscall_defs.h

[PATCH v8 0/2] linux-user: add openat2 support in linux-user

2024-09-30 Thread Michael Vogt
Define target_open_how with abi_* types - Warn about unimplemented size if "size" of openat2 is bigger than target_open_how Michael Vogt (2): linux-user: add openat2 support in linux-user linux-user: add strace support for openat2 linux-user/qemu

[PATCH v8 1/2] linux-user: add openat2 support in linux-user

2024-09-30 Thread Michael Vogt
it seems similar to the exiting behavior when openat() is called with a dirfd to "/proc". Here too the fake file lookup may not catch the special file because no dirfd is used to determine if the path is in /proc. Signed-off-by: Michael Vogt Buglink: https://github.com/osbuild/bootc-image

[PATCH v7 2/2] linux-user: add strace support for openat2

2024-09-23 Thread Michael Vogt
`syscall_defs.h` so that strace.c can use them. Signed-off-by: Michael Vogt --- linux-user/qemu.h | 9 + linux-user/strace.c | 40 +++ linux-user/strace.list| 3 +++ linux-user/syscall.c | 8 +--- linux-user/syscall_defs.h

[PATCH v7 1/2] linux-user: add openat2 support in linux-user

2024-09-23 Thread Michael Vogt
it seems similar to the exiting behavior when openat() is called with a dirfd to "/proc". Here too the fake file lookup may not catch the special file because no dirfd is used to determine if the path is in /proc. Signed-off-by: Michael Vogt Buglink: https://github.com/osbuild/bootc-image

[PATCH v7 0/2] linux-user: add openat2 support in linux-user

2024-09-23 Thread Michael Vogt
ser_unlock* if a lock call fails - Fix silly incorrect use of "target_open_how" when "open_how" is required - Fix coding style comments - Fix validation of arg4 in openat2 - Fix missing zero initialization of open_how - Define target_open_how with abi_* types - Warn about

[PATCH v6 1/1] linux-user: add openat2 support in linux-user

2024-09-20 Thread Michael Vogt
)" is used to determine if the path is in /proc. Alternatively to ignoring we could simply fail with `-TARGET_ENOSYS` (or similar) if `resolve` flags are passed and we found something that looks like a file in /proc that needs faking. Signed-off-by: Michael Vogt Buglink: https://github.co

[PATCH v6 0/1] linux-user: add openat2 support in linux-user

2024-09-20 Thread Michael Vogt
ect use of "target_open_how" when "open_how" is required - Fix coding style comments - Fix validation of arg4 in openat2 - Fix missing zero initialization of open_how - Define target_open_how with abi_* types - Warn about unimplemented size if "size" of openat2 is bigge

[PATCH v5 1/1] linux-user: add openat2 support in linux-user

2024-09-19 Thread Michael Vogt
)" is used to determine if the path is in /proc. Alternatively to ignoring we could simply fail with `-TARGET_ENOSYS` (or similar) if `resolve` flags are passed and we found something that looks like a file in /proc that needs faking. Signed-off-by: Michael Vogt Buglink: https://github.co

[PATCH v5 0/1] linux-user: add openat2 support in linux-user

2024-09-19 Thread Michael Vogt
pen_how with abi_* types - Warn about unimplemented size if "size" of openat2 is bigger than target_open_how Michael Vogt (1): linux-user: add openat2 support in linux-user linux-user/syscall.c | 107 +- linux-user/syscall_defs.h | 7 +++ 2 files changed, 112 insertions(+), 2 deletions(-) -- 2.45.2

Re: [PATCH v4 0/1] linux-user: add openat2 support in linux-user

2024-09-17 Thread Michael Vogt
friendly ping (see also https://patchew.org/QEMU/cover.1725607795.git.mv...@redhat.com/) Please let me know if there is anything I can do to make this easier to review or if I should split or help otherwise. On Fri, Sep 6, 2024 at 9:39 AM Michael Vogt wrote: > Hi, > > This is v4 of th

[PATCH v4 0/1] linux-user: add openat2 support in linux-user

2024-09-06 Thread Michael Vogt
s - Fix validation of arg4 in openat2 - Fix missing zero initialization of open_how - Define target_open_how with abi_* types - Warn about unimplemented size if "size" of openat2 is bigger than target_open_how Michael Vogt (1): linux-user: add openat2 support in linux-user linu

[PATCH v4 1/1] linux-user: add openat2 support in linux-user

2024-09-06 Thread Michael Vogt
)" is used to determine if the path is in /proc. Alternatively to ignoring we could simply fail with `-TARGET_ENOSYS` (or similar) if `resolve` flags are passed and we found something that looks like a file in /proc that needs faking. Signed-off-by: Michael Vogt Buglink: https://github.co

[PATCH v3 1/1] linux-user: add openat2 support in linux-user

2024-08-30 Thread Michael Vogt
)" is used to determine if the path is in /proc. Alternatively to ignoring we could simply fail with `-TARGET_ENOSYS` (or similar) if `resolve` flags are passed and we found something that looks like a file in /proc that needs faking. Signed-off-by: Michael Vogt Buglink: https://github.co

[PATCH v3 0/1] linux-user: add openat2 support in linux-user

2024-08-30 Thread Michael Vogt
From: Michael Vogt Hi, This is v3 of the openat2 support in linux-user. Thanks again for the excellent second round of feedback from Richard Henderson. This version tries to be closer to the kernels behavior, i.e. now do_openat2() uses a new copy_struct_from_user() helper that is very similar

[PATCH v2 1/1] linux-user: add openat2 support in linux-user

2024-08-29 Thread Michael Vogt
atively to ignoring we could simply fail with `-TARGET_ENOSYS` (or similar) if `resolve` flags are passed and we found something that looks like a file in /proc that needs faking. Signed-off-by: Michael Vogt Buglink: https://github.com/osbuild/bootc-image-builder/issues

[PATCH v2 0/1] linux-user: add openat2 support in linux-user

2024-08-29 Thread Michael Vogt
issing zero initialization of open_how - Define target_open_how with abi_* types - Warn about unimplemented size if "size" of openat2 is bigger than target_open_how Thanks for Richard Henderson and Florian Schueller for their feedback. Michael Vogt (1): linux

[PATCH] linux-user: add openat2 support in linux-user

2024-08-28 Thread Michael Vogt
atively to ignoring we could simply fail with `-TARGET_ENOSYS` (or similar) if `resolve` flags are passed and we found something that looks like a file in /proc that needs faking. Signed-off-by: Michael Vogt Buglink: https://github.com/osbuild/bootc-image-builder/issues/619 --- linux-user/qemu.

Re: [PATCH] linux-user: Add ioctl for BLKBSZSET

2024-05-29 Thread Michael Vogt
Michael Vogt wrote: > Tiny patch to add the ioctl wrapper definition for BLKBSZSET. > > Signed-off-by: Michael Vogt > --- > linux-user/ioctls.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h > index d508d0c04a..3b41128fd

[PATCH] linux-user: Add ioctl for BLKBSZSET

2024-04-23 Thread Michael Vogt
Tiny patch to add the ioctl wrapper definition for BLKBSZSET. Signed-off-by: Michael Vogt --- linux-user/ioctls.h | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index d508d0c04a..3b41128fd7 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h

[PATCH] linux-user: Add FITRIM ioctl

2024-04-03 Thread Michael Vogt
From: Michael Vogt Tiny patch to add the missing FITRIM ioctl. Signed-off-by: Michael Vogt --- linux-user/ioctls.h| 3 +++ linux-user/syscall_defs.h | 1 + linux-user/syscall_types.h | 5 + 3 files changed, 9 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h

[PATCH] linux-user: Add FIFREEZE and FITHAW ioctls

2024-02-20 Thread Michael Vogt
Add missing FIFREEZE and FITHAW ioctls. Signed-off-by: Michael Vogt --- linux-user/ioctls.h | 6 ++ linux-user/syscall_defs.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 071f7ca253..1aec9d5836 100644 --- a/linux-user/ioctls.h