[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1615199056.git.bnemeth@redhat.com>
Date: Mon, 8 Mar 2021 11:31:24 +0100
From: Balazs Nemeth <bnemeth@...hat.com>
To: netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, mst@...hat.com, jasowang@...hat.com,
davem@...emloft.net, willemb@...gle.com,
virtualization@...ts.linux-foundation.org, bnemeth@...hat.com
Subject: [PATCH v2 0/2] net: prevent infinite loop caused by incorrect proto from virtio_net_hdr_set_proto
Here is v2 of the patches that prevent an infinite loop for gso packets
with a protocol from virtio net hdr that doesn't match the protocol in
the packet. Note that packets coming from a device without
header_ops->parse_protocol being implemented will not be caught by
the check in virtio_net_hdr_to_skb, but the infinite loop will still
be prevented by the check in the gso layer.
Balazs Nemeth (2):
net: check if protocol extracted by virtio_net_hdr_set_proto is
correct
net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0
include/linux/virtio_net.h | 8 +++++++-
net/mpls/mpls_gso.c | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
--
2.29.2
Powered by blists - more mailing lists