[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1405697638-23767-1-git-send-email-andrey.krieger.utkin@gmail.com>
Date: Fri, 18 Jul 2014 18:33:58 +0300
From: Andrey Utkin <andrey.krieger.utkin@...il.com>
To: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
coreteam@...filter.org, netfilter-devel@...r.kernel.org,
lvs-devel@...r.kernel.org, netdev@...r.kernel.org
Cc: dcb314@...mail.com, davem@...emloft.net, kadlec@...ckhole.kfki.hu,
kaber@...sh.net, pablo@...filter.org, ja@....bg,
horms@...ge.net.au, wensong@...ux-vs.org,
Andrey Utkin <andrey.krieger.utkin@...il.com>
Subject: [PATCH 3/5] net/netfilter/ipvs/ip_vs_ctl.c: drop argument range check just before the check for equality
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80601
Reported-by: David Binderman <dcb314@...mail.com>
Signed-off-by: Andrey Utkin <andrey.krieger.utkin@...il.com>
---
net/netfilter/ipvs/ip_vs_ctl.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 581a658..4ed7b59 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -2338,8 +2338,6 @@ do_ip_vs_set_ctl(struct sock *sk, int cmd, void __user *user, unsigned int len)
if (cmd < IP_VS_BASE_CTL || cmd > IP_VS_SO_SET_MAX)
return -EINVAL;
- if (len < 0 || len > MAX_ARG_LEN)
- return -EINVAL;
if (len != set_arglen[SET_CMDID(cmd)]) {
pr_err("set_ctl: len %u != %u\n",
len, set_arglen[SET_CMDID(cmd)]);
--
1.8.5.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists