[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211012144616.48df57e4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 12 Oct 2021 14:46:16 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: davem@...emloft.net, roopa@...dia.com, dsahern@...nel.org,
m@...bda.lt, john.fastabend@...il.com, netdev@...r.kernel.org,
bpf@...r.kernel.org
Subject: Re: [PATCH net-next 3/4] net, neigh: Extend neigh->flags to 32 bit
to allow for extensions
On Mon, 11 Oct 2021 14:12:37 +0200 Daniel Borkmann wrote:
> + if (ext & ~0) {
> + NL_SET_ERR_MSG(extack, "Invalid extended flags");
> + goto out;
> + }
Could you also follow up and use NLA_POLICY_MASK() instead of
validating in the code? It's probably less important for non-genl
but still a good best practice.
Powered by blists - more mailing lists