[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d44a5423-0904-d4ac-e4b5-64a778a8339d@gmail.com>
Date: Thu, 2 May 2019 07:37:26 -0600
From: David Ahern <dsahern@...il.com>
To: Michal Kubecek <mkubecek@...e.cz>,
"David S. Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org, Johannes Berg <johannes.berg@...el.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 2/3] netlink: set bad attribute also on maxtype
check
On 5/2/19 6:48 AM, Michal Kubecek wrote:
> The check that attribute type is within 0...maxtype range in
> __nla_validate_parse() sets only error message but not bad_attr in extack.
> Set also bad_attr to tell userspace which attribute failed validation.
>
> Signed-off-by: Michal Kubecek <mkubecek@...e.cz>
> ---
> lib/nlattr.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Reviewed-by: David Ahern <dsahern@...il.com>
Powered by blists - more mailing lists