[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160128.225026.2097479414986216382.davem@davemloft.net>
Date: Thu, 28 Jan 2016 22:50:26 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net] tcp: beware of alignments in tcp_get_info()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 27 Jan 2016 10:52:43 -0800
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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@...gle.com>
Applied and queued up for -stable, thanks Eric.
Powered by blists - more mailing lists