diff options
| author | Pablo Neira <pablo@netfilter.org> | 2017-01-26 16:56:21 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-18 09:11:44 -0500 |
| commit | 0d4c19ee68c91f46905cbd393939d89237e6189c (patch) | |
| tree | e34a87f7f509d7f57ebc163047442ad2452bf7a5 /include/net | |
| parent | 0e0751cdfa466923218ff59a8624fa8d1050b6fb (diff) | |
tcp: don't annotate mark on control socket from tcp_v6_send_response()
commit 92e55f412cffd016cc245a74278cb4d7b89bb3bc upstream.
Unlike ipv4, this control socket is shared by all cpus so we cannot use
it as scratchpad area to annotate the mark that we pass to ip6_xmit().
Add a new parameter to ip6_xmit() to indicate the mark. The SCTP socket
family caches the flowi6 structure in the sctp_transport structure, so
we cannot use to carry the mark unless we later on reset it back, which
I discarded since it looks ugly to me.
Fixes: bf99b4ded5f8 ("tcp: fix mark propagation with fwmark_reflect enabled")
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/ipv6.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index f11ca837361b..7f15f95625e7 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
| @@ -871,7 +871,7 @@ int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb); | |||
| 871 | * upper-layer output functions | 871 | * upper-layer output functions |
| 872 | */ | 872 | */ |
| 873 | int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6, | 873 | int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6, |
| 874 | struct ipv6_txoptions *opt, int tclass); | 874 | __u32 mark, struct ipv6_txoptions *opt, int tclass); |
| 875 | 875 | ||
| 876 | int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr); | 876 | int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr); |
| 877 | 877 | ||
