Re: [Qemu-devel] [PATCH] Avoid crash in epoll_ctl with EPOLL_CTL_DEL

2019-05-30 Thread Giuseppe Musacchio
Yes, that's much better if compatibility with such an old kernel version is wanted. I suppose there's no need for me to re-send the patch. On 30/05/19 18:12, Laurent Vivier wrote: Le 30/05/2019 à 18:00, Laurent Vivier a écrit : Le 30/05/2019 à 17:25, Giuseppe Musacchio a écrit : The `event`

Re: [Qemu-devel] [PATCH] Avoid crash in epoll_ctl with EPOLL_CTL_DEL

2019-05-30 Thread Laurent Vivier
Le 30/05/2019 à 18:00, Laurent Vivier a écrit : > Le 30/05/2019 à 17:25, Giuseppe Musacchio a écrit : >> The `event` parameter is ignored by the kernel if `op` is EPOLL_CTL_DEL, >> do the same and avoid returning EFAULT if garbage is passed instead of a >> valid pointer. >> >> Signed-off-by: Giusep

Re: [Qemu-devel] [PATCH] Avoid crash in epoll_ctl with EPOLL_CTL_DEL

2019-05-30 Thread Laurent Vivier
Le 30/05/2019 à 17:25, Giuseppe Musacchio a écrit : > The `event` parameter is ignored by the kernel if `op` is EPOLL_CTL_DEL, > do the same and avoid returning EFAULT if garbage is passed instead of a > valid pointer. > > Signed-off-by: Giuseppe Musacchio > --- >  linux-user/syscall.c | 2 +- >  

[Qemu-devel] [PATCH] Avoid crash in epoll_ctl with EPOLL_CTL_DEL

2019-05-30 Thread Giuseppe Musacchio
The `event` parameter is ignored by the kernel if `op` is EPOLL_CTL_DEL, do the same and avoid returning EFAULT if garbage is passed instead of a valid pointer. Signed-off-by: Giuseppe Musacchio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-u