]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
batman-adv: Fix skbuff rcsum on packet reroute
authorSven Eckelmann <sven@narfation.org>
Fri, 16 Mar 2018 20:14:32 +0000 (21:14 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commita68a24d237e45cb0c06716ce1505c1a07029b14f
treeaec4e88c8d5a9be4abf63ac82ee1d862693a4480
parent0e749eec4fb7674cdb186b0bef13c7261f214196
batman-adv: Fix skbuff rcsum on packet reroute

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit fc04fdb2c8a894283259f5621d31d75610701091 ]

batadv_check_unicast_ttvn may redirect a packet to itself or another
originator. This involves rewriting the ttvn and the destination address in
the batadv unicast header. These field were not yet pulled (with skb rcsum
update) and thus any change to them also requires a change in the receive
checksum.

Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Fixes: a73105b8d4c7 ("batman-adv: improved client announcement mechanism")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/batman-adv/routing.c