diff options
author | Francesco Ruggeri <fruggeri@arista.com> | 2022-04-21 03:50:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-09 10:03:24 +0300 |
commit | 3ea6190be92f1ee1a41b8111a0c19ab77532a458 (patch) | |
tree | 802abe05caec2f00ea2765d89692d4a4605ccb5b /include/linux/omap-mailbox.h | |
parent | 2b9a13d98dfcc7ab06fd2b09ed010c7164521be7 (diff) | |
download | linux-3ea6190be92f1ee1a41b8111a0c19ab77532a458.tar.xz |
tcp: md5: incorrect tcp_header_len for incoming connections
[ Upstream commit 5b0b9e4c2c895227c8852488b3f09839233bba54 ]
In tcp_create_openreq_child we adjust tcp_header_len for md5 using the
remote address in newsk. But that address is still 0 in newsk at this
point, and it is only set later by the callers (tcp_v[46]_syn_recv_sock).
Use the address from the request socket instead.
Fixes: cfb6eeb4c860 ("[TCP]: MD5 Signature Option (RFC2385) support.")
Signed-off-by: Francesco Ruggeri <fruggeri@arista.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220421005026.686A45EC01F2@us226.sjc.aristanetworks.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/omap-mailbox.h')
0 files changed, 0 insertions, 0 deletions