Re: [PATCH net] tcp: zero ca_priv area when switching cc algorithms

2016-11-21 Thread David Miller
From: Florian Westphal Date: Mon, 21 Nov 2016 10:08:37 +0100 > We need to zero out the private data area when application switches > connection to different algorithm (TCP_CONGESTION setsockopt). > > When congestion ops get assigned at connect time everything is already > zeroed because sk_alloc

[PATCH net] tcp: zero ca_priv area when switching cc algorithms

2016-11-21 Thread Florian Westphal
We need to zero out the private data area when application switches connection to different algorithm (TCP_CONGESTION setsockopt). When congestion ops get assigned at connect time everything is already zeroed because sk_alloc uses GFP_ZERO flag. But in the setsockopt case this contains whatever p