Re: [PATCH] linux-user/syscall: zero-init msghdr in do_sendrecvmsg_locked

2021-06-20 Thread Kenta Iwasaki
s struct layout definition of msghdr be both kernel-agnostic to all kernels adhering to the POSIX standard, and libc-agnostic as well. Best regards, Kenta Iwasaki On Sun, 20 Jun 2021 at 23:56, Laurent Vivier wrote: > Le 16/05/2021 à 14:57, Kenta Iwasaki a écrit : > > Sure, > > > &

Re: [PATCH] linux-user/syscall: zero-init msghdr in do_sendrecvmsg_locked

2021-05-23 Thread Kenta Iwasaki
Doing a ping for this patch. https://patchew.org/QEMU/20210516091536.1042693-1-ke...@lithdew.net/ Best regards, Kenta Iwasaki On Sun, 16 May 2021 at 21:57, Kenta Iwasaki wrote: > Sure, > > The bytes of `msghdr` need to be cleared because the `msghdr` struct > layout specified in

[PATCH] linux-user/syscall: zero-init msghdr in do_sendrecvmsg_locked

2021-05-16 Thread Kenta Iwasaki
` struct to workaround these struct layout issues, except for do_sendrecvmsg_locked in linux-user/syscall.c. This patch zero-initializes the `msghdr` struct in do_sendrecvmsg_locked. Signed-off-by: Kenta Iwasaki --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] linux-user/syscall: zero-init msghdr in do_sendrecvmsg_locked

2021-05-16 Thread Kenta Iwasaki
o the sendmsg() syscall can be found here: https://github.com/ziglang/zig/pull/8750#issuecomment-841641576 Hope this gives enough context about the problem and patch, but please do let me know if there is any more information that I could provide which would help. Best regards, Kenta Iwasaki