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

2021-03-26 Thread Laurent Vivier
Le 26/03/2021 à 14:28, Peter Maydell a écrit : > On Fri, 26 Mar 2021 at 13:24, Laurent Vivier wrote: >> >> Le 26/03/2021 à 05:05, 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. T

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

2021-03-26 Thread Peter Maydell
On Fri, 26 Mar 2021 at 13:24, Laurent Vivier wrote: > > Le 26/03/2021 à 05:05, 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 pas

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

2021-03-26 Thread Laurent Vivier
Le 26/03/2021 à 05:05, 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

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

2021-03-26 Thread Laurent Vivier
Le 26/03/2021 à 05:05, 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] linux-user: allow NULL msg in recvfrom

2021-03-25 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 --- linux-user/