Re: [PATCH v2] linux-user: allow NULL msg in recvfrom

2021-03-27 Thread Laurent Vivier
Le 27/03/2021 à 03:11, Zach Reizner a écrit : > The kernel allows a NULL msg in recvfrom so that he size of the next > message may be queried before allocating a correctly sized buffer. This > change allows the syscall translator to pass along the NULL msg pointer > instead of returning early with

[PATCH v2] linux-user: allow NULL msg in recvfrom

2021-03-26 Thread Zach Reizner
The kernel allows a NULL msg in recvfrom so that he size of the next message may be queried before allocating a correctly sized buffer. This change allows the syscall translator to pass along the NULL msg pointer instead of returning early with EFAULT. Signed-off-by: Zach Reizner --- v2: - retur