From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next 2/2] inet: frags: fix ip6frag_low_thresh boundary Date: Wed, 04 Apr 2018 12:05:14 -0400 (EDT) Message-ID: <20180404.120514.410994398329574075.davem@davemloft.net> References: <20180404153510.213392-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-2 Content-Transfer-Encoding: 8BIT Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:40820 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbeDDQFP (ORCPT ); Wed, 4 Apr 2018 12:05:15 -0400 In-Reply-To: <20180404153510.213392-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Wed, 4 Apr 2018 08:35:10 -0700 > Giving an integer to proc_doulongvec_minmax() is dangerous on 64bit arches, > since linker might place next to it a non zero value preventing a change > to ip6frag_low_thresh. > > ip6frag_low_thresh is not used anymore in the kernel, but we do not > want to prematuraly break user scripts wanting to change it. > > Since specifying a minimal value of 0 for proc_doulongvec_minmax() > is moot, let's remove these zero values in all defrag units. > > Fixes: 6e00f7dd5e4e ("ipv6: frags: fix /proc/sys/net/ipv6/ip6frag_low_thresh") > Signed-off-by: Eric Dumazet > Reported-by: Maciej Żenczykowski Applied, thanks Eric.