diff options
| author | Eiichi Tsukata <[email protected]> | 2019-06-28 02:37:14 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-07-02 02:04:48 +0000 |
| commit | 00dc3307c0f7a8bdc79409e0a00d86efea93e0ea (patch) | |
| tree | 4ed34e2ec4e7f81b2f5be2a2bd8c83b1f3b972c2 /net/ipv6/sysctl_net_ipv6.c | |
| parent | net: link_watch: prevent starvation when processing linkwatch wq (diff) | |
| download | kernel-00dc3307c0f7a8bdc79409e0a00d86efea93e0ea.tar.gz kernel-00dc3307c0f7a8bdc79409e0a00d86efea93e0ea.zip | |
net/ipv6: Fix misuse of proc_dointvec "flowlabel_reflect"
/proc/sys/net/ipv6/flowlabel_reflect assumes written value to be in the
range of 0 to 3. Use proc_dointvec_minmax instead of proc_dointvec.
Fixes: 323a53c41292 ("ipv6: tcp: enable flowlabel reflection in some RST packets")
Signed-off-by: Eiichi Tsukata <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/sysctl_net_ipv6.c')
| -rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 8b3fe81783ed..dc4c91e0bfb8 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c @@ -114,7 +114,7 @@ static struct ctl_table ipv6_table_template[] = { .data = &init_net.ipv6.sysctl.flowlabel_reflect, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec, + .proc_handler = proc_dointvec_minmax, .extra1 = &zero, .extra2 = &flowlabel_reflect_max, }, |
