Thread (15 messages) 15 messages, 3 authors, 2019-05-02

Re: [PATCH net-next 2/3] netlink: set bad attribute also on maxtype check

From: David Ahern <hidden>
Date: 2019-05-02 13:37:31
Also in: lkml

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 <redacted>
---
 lib/nlattr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: David Ahern <redacted>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help