mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
tcp: beware of alignments in tcp_get_info()
[ Upstream commitff5d749772] With some combinations of user provided flags in netlink command, it is possible to call tcp_get_info() with a buffer that is not 8-bytes aligned. It does matter on some arches, so we need to use put_unaligned() to store the u64 fields. Current iproute2 package does not trigger this particular issue. Fixes:0df48c26d8("tcp: add tcpi_bytes_acked to tcp_info") Fixes:977cb0ecf8("tcp: add pacing_rate information into tcp_info") 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>
This commit is contained in:
parent
ba50e6d96f
commit
87e40d8d8b
1 changed files with 8 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue