[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190118100010.24150d0f@cakuba.netronome.com>
Date:   Fri, 18 Jan 2019 10:00:10 -0800
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc:     davem@...emloft.net, dsahern@...il.com, netdev@...r.kernel.org,
        oss-drivers@...ronome.com, ktkhai@...tuozzo.com
Subject: Re: [PATCH net-next 06/13] net: namespace: perform strict checks
 also for doit handlers
On Fri, 18 Jan 2019 09:17:46 +0100, Nicolas Dichtel wrote:
> > +static int rtnl_net_valid_getid_req(struct sk_buff *skb,
> > +				    const struct nlmsghdr *nlh,
> > +				    struct nlattr **tb,
> > +				    struct netlink_ext_ack *extack)
> > +{
> > +	int i, err;
> > +
> > +	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct rtgenmsg))) {  
> This is not possible, the check is already done in rtnetlink_rcv_msg().
Good point, thanks!
Powered by blists - more mailing lists
 
