Skip to content

Commit 89e5f2d

Browse files
davem330gregkh
authored andcommitted
net: Properly unlink GRO packets on overflow.
[ Upstream commti ece2371 ] 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: d4546c2 ("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>
1 parent 54d6a82 commit 89e5f2d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/core/dev.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5431,6 +5431,7 @@ static void gro_flush_oldest(struct list_head *head)
54315431
* SKB to the chain.
54325432
*/
54335433
list_del(&oldest->list);
5434+
oldest->next = NULL;
54345435
napi_gro_complete(oldest);
54355436
}
54365437

0 commit comments

Comments
 (0)