Re: [PATCH] linux-user: always translate cmsg when recvmsg

2022-11-02 Thread Laurent Vivier
Le 28/10/2022 à 10:12, Icenowy Zheng a écrit : It's possible that a message contains both normal payload and ancillary data in the same message, and even if no ancillary data is available this information should be passed to the target, otherwise the target cmsghdr will be left uninitialized and

Re: [PATCH] linux-user: always translate cmsg when recvmsg

2022-11-02 Thread Laurent Vivier
Le 28/10/2022 à 10:12, Icenowy Zheng a écrit : It's possible that a message contains both normal payload and ancillary data in the same message, and even if no ancillary data is available this information should be passed to the target, otherwise the target cmsghdr will be left uninitialized and

Re: [PATCH] linux-user: always translate cmsg when recvmsg

2022-10-28 Thread Icenowy Zheng
在 2022-10-28星期五的 16:12 +0800,Icenowy Zheng写道: > It's possible that a message contains both normal payload and > ancillary > data in the same message, and even if no ancillary data is available > this information should be passed to the target, otherwise the target > cmsghdr will be left uninitializ

[PATCH] linux-user: always translate cmsg when recvmsg

2022-10-28 Thread Icenowy Zheng
It's possible that a message contains both normal payload and ancillary data in the same message, and even if no ancillary data is available this information should be passed to the target, otherwise the target cmsghdr will be left uninitialized and the target is going to access uninitialized memor