[Bug 1783362] Re: [Qemu-devel] [PATCH v2 for 3.0 1/2] linux-user/mmap.c: handle invalid len maps correctly

2018-07-30 Thread Laurent Vivier
Le 30/07/2018 à 16:21, Alex Bennée a écrit : > > Laurent Vivier writes: > >> Le 30/07/2018 à 15:43, Alex Bennée a écrit: >>> I've slightly re-organised the check to more closely match the >>> sequence that the kernel uses in do_mmap(). We check for both the zero >>> case (EINVAL) and the

[Bug 1783362] Re: [Qemu-devel] [PATCH v2 for 3.0 1/2] linux-user/mmap.c: handle invalid len maps correctly

2018-07-30 Thread Alex Bennée
Laurent Vivier writes: > Le 30/07/2018 à 15:43, Alex Bennée a écrit: >> I've slightly re-organised the check to more closely match the >> sequence that the kernel uses in do_mmap(). We check for both the zero >> case (EINVAL) and the overflow length case (ENOMEM). >> >> Signed-off-by: Alex

[Bug 1783362] Re: [Qemu-devel] [PATCH v2 for 3.0 1/2] linux-user/mmap.c: handle invalid len maps correctly

2018-07-30 Thread Laurent Vivier
Le 30/07/2018 à 15:43, Alex Bennée a écrit : > I've slightly re-organised the check to more closely match the > sequence that the kernel uses in do_mmap(). We check for both the zero > case (EINVAL) and the overflow length case (ENOMEM). > > Signed-off-by: Alex Bennée > Cc: umarcor