]> git.baikalelectronics.ru Git - kernel.git/commit
inet: frags: fix ip6frag_low_thresh boundary
authorEric Dumazet <edumazet@google.com>
Wed, 4 Apr 2018 15:35:10 +0000 (08:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2018 16:04:59 +0000 (12:04 -0400)
commitc63aeba8dd3d344fcb6893f34f5b303e43d55593
treea07bee3cbc8781374c747f6cbb20c51d6a650aad
parente03f7b83eed30f9d4507d19612ae98dcf5cec621
inet: frags: fix ip6frag_low_thresh boundary

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: 31aa5b0f0d2d ("ipv6: frags: fix /proc/sys/net/ipv6/ip6frag_low_thresh")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan/reassembly.c
net/ipv4/ip_fragment.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c