summaryrefslogtreecommitdiff
path: root/drivers/net/usb/lan78xx.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-01-27 18:52:43 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-01-29 06:49:30 (GMT)
commitff5d749772018602c47509bdc0093ff72acd82ec (patch)
tree4f2f716a27d5be037fe8137634b3c72054297e1c /drivers/net/usb/lan78xx.c
parent4f2c6ae5c64c353fb1b0425e4747e5603feadba1 (diff)
downloadlinux-ff5d749772018602c47509bdc0093ff72acd82ec.tar.xz
tcp: beware of alignments in tcp_get_info()
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>
Diffstat (limited to 'drivers/net/usb/lan78xx.c')
0 files changed, 0 insertions, 0 deletions