inet: frags: fix ip6frag_low_thresh boundary
commit 3d234012 upstream. 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: 6e00f7dd ("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> Signed-off-by:
Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- net/ieee802154/6lowpan/reassembly.c 0 additions, 2 deletionsnet/ieee802154/6lowpan/reassembly.c
- net/ipv4/ip_fragment.c 16 additions, 24 deletionsnet/ipv4/ip_fragment.c
- net/ipv6/netfilter/nf_conntrack_reasm.c 0 additions, 2 deletionsnet/ipv6/netfilter/nf_conntrack_reasm.c
- net/ipv6/reassembly.c 1 addition, 3 deletionsnet/ipv6/reassembly.c
Loading
Please register or sign in to comment