mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
ipv6: tcp: add a missing tcp_v6_restore_cb()
[ Upstream commitebf6c9cb23] Dmitry reported use-after-free in ip6_datagram_recv_specific_ctl() A similar bug was fixed in commit8ce48623f0("ipv6: tcp: restore IP6CB for pktoptions skbs"), but I missed another spot. tcp_v6_syn_recv_sock() can indeed set np->pktoptions from ireq->pktopts Fixes:971f10eca1("tcp: better TCP_SKB_CB layout to reduce cache line misses") Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
00f1069e68
commit
c12d69340e
1 changed files with 13 additions and 11 deletions
Loading…
Add table
Add a link
Reference in a new issue