Re: [PATCH net-next 3/3] netlink: add validation of NLA_F_NESTED flag

From: Johannes Berg
Date: Thu May 02 2019 - 11:08:16 EST


On Thu, 2019-05-02 at 15:14 +0200, Michal Kubecek wrote:
>
> > > @@ -415,7 +418,8 @@ enum netlink_validation {
> > > #define NL_VALIDATE_STRICT (NL_VALIDATE_TRAILING |\
> > > NL_VALIDATE_MAXTYPE |\
> > > NL_VALIDATE_UNSPEC |\
> > > - NL_VALIDATE_STRICT_ATTRS)
> > > + NL_VALIDATE_STRICT_ATTRS |\
> > > + NL_VALIDATE_NESTED)
> >
> > This is fine _right now_, but in general we cannot keep adding here
> > after the next release :-)
>
> Right, that's why I would like to get this into the same cycle as your
> series.

Yeah, I know you know, just wanted state it again :-)

> How about "NLA_F_NESTED is missing" and "NLA_F_NESTED not expected"?

Looks good to me.

johannes