Re: [PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll()

2023-06-22 Thread Alexander Bulekov
On 230329 0542, Alexander Bulekov wrote: > On 230213 1841, Mauro Matteo Cascella wrote: > > The guest can control the size of buf; an OOB write occurs when buf is 1 or > > 2 > > bytes long. Only fill in the buffer as long as there is enough space, throw > > away any data which doesn't fit. > > >

Re: [PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll()

2023-03-29 Thread Alexander Bulekov
On 230213 1841, Mauro Matteo Cascella wrote: > The guest can control the size of buf; an OOB write occurs when buf is 1 or 2 > bytes long. Only fill in the buffer as long as there is enough space, throw > away any data which doesn't fit. > > Signed-off-by: Mauro Matteo Cascella Tested-by: Alexan

Re: [PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll()

2023-03-29 Thread Alexander Bulekov
On 230214 1148, Mauro Matteo Cascella wrote: > Hi Philippe, > > On Mon, Feb 13, 2023 at 7:26 PM Philippe Mathieu-Daudé > wrote: > > > > Hi Mauro, > > > > On 13/2/23 18:41, Mauro Matteo Cascella wrote: > > > The guest can control the size of buf; an OOB write occurs when buf is 1 > > > or 2 > > >

答复: [PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll()

2023-02-15 Thread ningqiang (A)
u.org; kra...@redhat.com; ningqiang (A) ; soul chen 主题: Re: [PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll() Hi Philippe, On Mon, Feb 13, 2023 at 7:26 PM Philippe Mathieu-Daudé wrote: > > Hi Mauro, > > On 13/2/23 18:41, Mauro Matteo Cascella wrote: > > The guest can con

Re: [PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll()

2023-02-14 Thread Mauro Matteo Cascella
Hi Philippe, On Mon, Feb 13, 2023 at 7:26 PM Philippe Mathieu-Daudé wrote: > > Hi Mauro, > > On 13/2/23 18:41, Mauro Matteo Cascella wrote: > > The guest can control the size of buf; an OOB write occurs when buf is 1 or > > 2 > > bytes long. Only fill in the buffer as long as there is enough spa

Re: [PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll()

2023-02-13 Thread Philippe Mathieu-Daudé
Hi Mauro, On 13/2/23 18:41, Mauro Matteo Cascella wrote: The guest can control the size of buf; an OOB write occurs when buf is 1 or 2 bytes long. Only fill in the buffer as long as there is enough space, throw away any data which doesn't fit. Any reproducer? Signed-off-by: Mauro Matteo Casc

[PATCH] usb/dev-wacom: fix OOB write in usb_mouse_poll()

2023-02-13 Thread Mauro Matteo Cascella
The guest can control the size of buf; an OOB write occurs when buf is 1 or 2 bytes long. Only fill in the buffer as long as there is enough space, throw away any data which doesn't fit. Signed-off-by: Mauro Matteo Cascella --- hw/usb/dev-wacom.c | 20 +--- 1 file changed, 13 ins