[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160614.234641.244436885110824251.davem@davemloft.net>
Date: Tue, 14 Jun 2016 23:46:41 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ncardwell@...gle.com
Cc: netdev@...r.kernel.org, soheil@...gle.com, edumazet@...gle.com
Subject: Re: [PATCH net-next] tcp: return sizeof tcp_dctcp_info in
dctcp_get_info()
From: Neal Cardwell <ncardwell@...gle.com>
Date: Mon, 13 Jun 2016 11:20:35 -0400
> Make sure that dctcp_get_info() returns only the size of the
> info->dctcp struct that it zeroes out and fills in. Previously it had
> been returning the size of the enclosing tcp_cc_info union,
> sizeof(*info). There is no problem yet, but that union that may one
> day be larger than struct tcp_dctcp_info, in which case the
> TCP_CC_INFO code might accidentally copy uninitialized bytes from the
> stack.
>
> Signed-off-by: Neal Cardwell <ncardwell@...gle.com>
> Signed-off-by: Soheil Hassas Yeganeh <soheil@...gle.com>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied.
Powered by blists - more mailing lists