OSDN Git Service

tcp: use IPCB instead of TCP_SKB_CB in inet_exact_dif_match()
authorDavid Ahern <dsahern@gmail.com>
Sun, 3 Dec 2017 17:33:00 +0000 (09:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Dec 2017 14:07:57 +0000 (15:07 +0100)
commitefb7dc5a9658de725de8d0b2016dbe198406d93e
tree780305f2cc8bfaa9f5ab01e8202ed1446e1904cc
parenteffea096caa1732d2eff941c1beabc9c496b087e
tcp: use IPCB instead of TCP_SKB_CB in inet_exact_dif_match()

[ Usptream commit b4d1605a8ea608fd7dc45b926a05d75d340bde4b ]

After this fix : ("tcp: add tcp_v4_fill_cb()/tcp_v4_restore_cb()"),
socket lookups happen while skb->cb[] has not been mangled yet by TCP.

Fixes: a04a480d4392 ("net: Require exact match for TCP socket lookups if dif is l3mdev")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/tcp.h