diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-28 10:35:12 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-04 14:50:53 +0100 |
commit | 89e5f2d9219dbd522e6d60e7639f09fa1ccda1cd (patch) | |
tree | 5c8accedf7034fbf5668533ce96780defd1ddc98 /net/core | |
parent | 54d6a82d05dcc29b212d785dea917a9d2268cb58 (diff) | |
download | linux-rpi3-89e5f2d9219dbd522e6d60e7639f09fa1ccda1cd.tar.gz linux-rpi3-89e5f2d9219dbd522e6d60e7639f09fa1ccda1cd.tar.bz2 linux-rpi3-89e5f2d9219dbd522e6d60e7639f09fa1ccda1cd.zip |
net: Properly unlink GRO packets on overflow.
[ Upstream commti ece23711dd956cd5053c9cb03e9fe0668f9c8894 ]
Just like with normal GRO processing, we have to initialize
skb->next to NULL when we unlink overflow packets from the
GRO hash lists.
Fixes: d4546c2509b1 ("net: Convert GRO SKB handling to list_head.")
Reported-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 93243479085f..e16ba3625400 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5431,6 +5431,7 @@ static void gro_flush_oldest(struct list_head *head) * SKB to the chain. */ list_del(&oldest->list); + oldest->next = NULL; napi_gro_complete(oldest); } |