diff options
author | Eric Dumazet <edumazet@google.com> | 2016-01-27 10:52:43 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-03 15:07:05 -0800 |
commit | 87e40d8d8ba965003611a8bdbe18019d344d9d58 (patch) | |
tree | f916d734d9ab673525b5ab4e9e7e5b8731bd0501 /net/ipv6/route.c | |
parent | ba50e6d96f3daf3db8396cc3529f90339d9ef59a (diff) |
tcp: beware of alignments in tcp_get_info()
[ Upstream commit ff5d749772018602c47509bdc0093ff72acd82ec ]
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: 0df48c26d841 ("tcp: add tcpi_bytes_acked to tcp_info")
Fixes: 977cb0ecf82e ("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>
Diffstat (limited to 'net/ipv6/route.c')
0 files changed, 0 insertions, 0 deletions