summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_gre.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2023-05-11 14:47:49 +0300
committerDavid S. Miller <davem@davemloft.net>2023-05-12 12:05:50 +0300
commit1e306ec49a1f206fd2cc89a42fac6e6f592a8cc1 (patch)
treee9be42380a81f09c3482ee70f14d365f5a61dcaf /net/ipv6/ip6_gre.c
parent6d4486efe9c69626cab423456169e250a5cd3af5 (diff)
downloadlinux-1e306ec49a1f206fd2cc89a42fac6e6f592a8cc1.tar.xz
tcp: fix possible sk_priority leak in tcp_v4_send_reset()
When tcp_v4_send_reset() is called with @sk == NULL, we do not change ctl_sk->sk_priority, which could have been set from a prior invocation. Change tcp_v4_send_reset() to set sk_priority and sk_mark fields before calling ip_send_unicast_reply(). This means tcp_v4_send_reset() and tcp_v4_send_ack() no longer have to clear ctl_sk->sk_mark after their call to ip_send_unicast_reply(). Fixes: f6c0f5d209fa ("tcp: honor SO_PRIORITY in TIME_WAIT state") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Antoine Tenart <atenart@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
0 files changed, 0 insertions, 0 deletions