Re: [RFC PATCH-for-5.2 1/2] net: Do not accept packets bigger then NET_BUFSIZE

2020-12-04 Thread Philippe Mathieu-Daudé
On 12/4/20 11:03 AM, P J P wrote: > +-- On Fri, 27 Nov 2020, Philippe Mathieu-Daudé wrote --+ > | Do not allow qemu_send_packet*() and qemu_net_queue_send() > | functions to accept packets bigger then NET_BUFSIZE. > | > | We have to put a limit somewhere. NET_BUFSIZE is defined as: > | /*

Re: [RFC PATCH-for-5.2 1/2] net: Do not accept packets bigger then NET_BUFSIZE

2020-12-04 Thread P J P
+-- On Fri, 27 Nov 2020, Philippe Mathieu-Daudé wrote --+ | Do not allow qemu_send_packet*() and qemu_net_queue_send() | functions to accept packets bigger then NET_BUFSIZE. | | We have to put a limit somewhere. NET_BUFSIZE is defined as: | /* Maximum GSO packet size (64k) plus plenty of room

Re: [RFC PATCH-for-5.2 1/2] net: Do not accept packets bigger then NET_BUFSIZE

2020-11-30 Thread Philippe Mathieu-Daudé
On 11/30/20 10:20 AM, Mauro Matteo Cascella wrote: > Hello, > > On Mon, Nov 30, 2020 at 3:36 AM Jason Wang wrote: >> >> >> On 2020/11/27 下午11:45, Philippe Mathieu-Daudé wrote: >>> Do not allow qemu_send_packet*() and qemu_net_queue_send() >>> functions to accept packets bigger then NET_BUFSIZE.

Re: [RFC PATCH-for-5.2 1/2] net: Do not accept packets bigger then NET_BUFSIZE

2020-11-30 Thread Mauro Matteo Cascella
Hello, On Mon, Nov 30, 2020 at 3:36 AM Jason Wang wrote: > > > On 2020/11/27 下午11:45, Philippe Mathieu-Daudé wrote: > > Do not allow qemu_send_packet*() and qemu_net_queue_send() > > functions to accept packets bigger then NET_BUFSIZE. > > > > Signed-off-by: Philippe Mathieu-Daudé > > --- > >

Re: [RFC PATCH-for-5.2 1/2] net: Do not accept packets bigger then NET_BUFSIZE

2020-11-29 Thread Jason Wang
On 2020/11/27 下午11:45, Philippe Mathieu-Daudé wrote: Do not allow qemu_send_packet*() and qemu_net_queue_send() functions to accept packets bigger then NET_BUFSIZE. Signed-off-by: Philippe Mathieu-Daudé --- We have to put a limit somewhere. NET_BUFSIZE is defined as: /* Maximum GSO packet

[RFC PATCH-for-5.2 1/2] net: Do not accept packets bigger then NET_BUFSIZE

2020-11-27 Thread Philippe Mathieu-Daudé
Do not allow qemu_send_packet*() and qemu_net_queue_send() functions to accept packets bigger then NET_BUFSIZE. Signed-off-by: Philippe Mathieu-Daudé --- We have to put a limit somewhere. NET_BUFSIZE is defined as: /* Maximum GSO packet size (64k) plus plenty of room for * the ethernet and