]> git.baikalelectronics.ru Git - kernel.git/commit
esp: Fix GRO when the headers not fully in the linear part of the skb.
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 5 Jan 2018 07:35:47 +0000 (08:35 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 9 Jan 2018 12:01:58 +0000 (13:01 +0100)
commita9247bc0a64869a9b7b41a70751761595dcb6ebd
treedf1c9da30e0dbd9258e90f2713524107520fa6a8
parentddb401ac63e0888c3027686228bd5c2f0a35dbad
esp: Fix GRO when the headers not fully in the linear part of the skb.

The GRO layer does not necessarily pull the complete headers
into the linear part of the skb, a part may remain on the
first page fragment. This can lead to a crash if we try to
pull the headers, so make sure we have them on the linear
part before pulling.

Fixes: ecaae2a271dc ("esp: Add a software GRO codepath")
Reported-by: syzbot+82bbd65569c49c6c0c4d@syzkaller.appspotmail.com
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c