Skip to content
Commit a432934a authored by Paolo Abeni's avatar Paolo Abeni Committed by Jakub Kicinski
Browse files

sk_buff: avoid potentially clearing 'slow_gro' field



If skb_dst_set_noref() is invoked with a NULL dst, the 'slow_gro'
field is cleared, too. That could lead to wrong behavior if
the skb later enters the GRO stage.

Fix the potential issue replacing preserving a non-zero value of
the 'slow_gro' field.

Additionally, fix a comment typo.

Reported-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Reported-by: default avatarJakub Kicinski <kuba@kernel.org>
Fixes: 8a886b14

 ("sk_buff: track dst status in slow_gro")
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/aa42529252dc8bb02bd42e8629427040d1058537.1627662501.git.pabeni@redhat.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent bc830525
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment