[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140722091441.GN18338@mwanda>
Date: Tue, 22 Jul 2014 12:14:41 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Julian Anastasov <ja@....bg>
Cc: Andrey Utkin <andrey.krieger.utkin@...il.com>,
"linux-kernel@...r.kernel.org" <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, dcb314@...mail.com,
David Miller <davem@...emloft.net>, kadlec@...ckhole.kfki.hu,
Patrick McHardy <kaber@...sh.net>, pablo@...filter.org,
Simon Horman <horms@...ge.net.au>, wensong@...ux-vs.org
Subject: Re: [PATCH 3/5] net/netfilter/ipvs/ip_vs_ctl.c: drop argument range
check just before the check for equality
On Tue, Jul 22, 2014 at 11:52:02AM +0300, Julian Anastasov wrote:
> > > - if (copylen > 128)
> > > + if (*len < (int) copylen || *len < 0) {
> > > + pr_err("get_ctl: len %d < %u\n", *len, copylen);
> >
> > Don't let users flood dmesg. Just return an error. (This can be
> > triggered by non-root as well).
>
> For now both set and get are privileged operations,
> so we can keep it, it can catch if something wrong happens
> with the structure sizes.
If you have namespaces enabled then it's not *that* privaleged.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists