Re: [PATCH net] tcp: beware of alignments in tcp_get_info()

2016-01-28 Thread David Miller
From: Eric Dumazet Date: Wed, 27 Jan 2016 10:52:43 -0800 > From: Eric Dumazet > > 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_unal

[PATCH net] tcp: beware of alignments in tcp_get_info()

2016-01-27 Thread Eric Dumazet
From: Eric Dumazet 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 trigg