Re: [PATCH] net: Check if nc is NULL in qemu_get_vnet_hdr_len()

2024-10-18 Thread Michael Tokarev
17.08.2024 10:00, Akihiko Odaki wrote: A netdev may not have a peer specified, resulting in NULL. We should make it behave like /dev/null in such a case instead of letting it cause segmentatin fault. Fixes: 4b52d63249a5 ("tap: Remove qemu_using_vnet_hdr()") Feels like qemu-stable material (Cc'

Re: [PATCH] net: Check if nc is NULL in qemu_get_vnet_hdr_len()

2024-10-18 Thread Jason Wang
On Fri, Oct 11, 2024 at 1:55 PM Michael S. Tsirkin wrote: > > On Sat, Aug 17, 2024 at 04:00:43PM +0900, Akihiko Odaki wrote: > > A netdev may not have a peer specified, resulting in NULL. We should > > make it behave like /dev/null in such a case instead of letting it > > cause segmentatin fault.

Re: [PATCH] net: Check if nc is NULL in qemu_get_vnet_hdr_len()

2024-10-10 Thread Michael S. Tsirkin
On Sat, Aug 17, 2024 at 04:00:43PM +0900, Akihiko Odaki wrote: > A netdev may not have a peer specified, resulting in NULL. We should > make it behave like /dev/null in such a case instead of letting it > cause segmentatin fault. segmentation > > Fixes: 4b52d63249a5 ("tap: Remove qemu_using_vnet

Re: [PATCH] net: Check if nc is NULL in qemu_get_vnet_hdr_len()

2024-10-10 Thread Jonathan Cameron via
On Sat, 17 Aug 2024 16:00:43 +0900 Akihiko Odaki wrote: > A netdev may not have a peer specified, resulting in NULL. We should > make it behave like /dev/null in such a case instead of letting it > cause segmentatin fault. > > Fixes: 4b52d63249a5 ("tap: Remove qemu_using_vnet_hdr()") > Reported-

[PATCH] net: Check if nc is NULL in qemu_get_vnet_hdr_len()

2024-08-17 Thread Akihiko Odaki
A netdev may not have a peer specified, resulting in NULL. We should make it behave like /dev/null in such a case instead of letting it cause segmentatin fault. Fixes: 4b52d63249a5 ("tap: Remove qemu_using_vnet_hdr()") Reported-by: Jonathan Cameron Signed-off-by: Akihiko Odaki --- net/net.c | 4