Re: [PATCH 4.14 16/68] net: ensure mac header is set in virtio_net_hdr_to_skb()

2021-04-16 Thread Eric Dumazet
On Fri, Apr 16, 2021 at 10:49 AM Balazs Nemeth wrote: > > On Thu, 2021-04-15 at 16:46 +0200, Greg Kroah-Hartman wrote: > > From: Eric Dumazet > > > > commit 61431a5907fc36d0738e9a547c7e1556349a03e9 upstream. > > > > Commit 924a9bc362a5 ("net: check if protocol extracted by > >

Re: [PATCH 4.14 16/68] net: ensure mac header is set in virtio_net_hdr_to_skb()

2021-04-16 Thread Balazs Nemeth
On Thu, 2021-04-15 at 16:46 +0200, Greg Kroah-Hartman wrote: > From: Eric Dumazet > > commit 61431a5907fc36d0738e9a547c7e1556349a03e9 upstream. > > Commit 924a9bc362a5 ("net: check if protocol extracted by > virtio_net_hdr_set_proto is correct") > added a call to dev_parse_header_protocol() but

[PATCH 4.14 16/68] net: ensure mac header is set in virtio_net_hdr_to_skb()

2021-04-15 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 61431a5907fc36d0738e9a547c7e1556349a03e9 upstream. Commit 924a9bc362a5 ("net: check if protocol extracted by virtio_net_hdr_set_proto is correct") added a call to dev_parse_header_protocol() but mac_header is not yet set. This means that eth_hdr() reads complete