gro: take care of DODGY packets
authorEric Dumazet <edumazet@google.com>
Fri, 6 Jan 2023 14:25:23 +0000 (14:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2023 07:37:07 +0000 (07:37 +0000)
commit7871f54e3deed68a27111dda162c4fe9b9c65f8f
treee4f5c38ed70c2c5ead9514590fcfacf8193582df
parent9dab880d675b9d0dd56c6428e4e8352a3339371d
gro: take care of DODGY packets

Jaroslav reported a recent throughput regression with virtio_net
caused by blamed commit.

It is unclear if DODGY GSO packets coming from user space
can be accepted by GRO engine in the future with minimal
changes, and if there is any expected gain from it.

In the meantime, make sure to detect and flush DODGY packets.

Fixes: 5eddb24901ee ("gro: add support of (hw)gro packets to gro stack")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-and-bisected-by: Jaroslav Pulchart <jaroslav.pulchart@gooddata.com>
Cc: Coco Li <lixiaoyan@google.com>
Cc: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/gro.c