Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: johannes@sipsolutions.net
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH v2 0/3] netlink: allow NLA_BINARY length range validation
Date: Tue, 18 Aug 2020 12:29:11 -0700 (PDT) [thread overview]
Message-ID: <20200818.122911.832794587934053908.davem@davemloft.net> (raw)
In-Reply-To: <20200818081733.10892-1-johannes@sipsolutions.net>
From: Johannes Berg <johannes@sipsolutions.net>
Date: Tue, 18 Aug 2020 10:17:30 +0200
> In quite a few places (perhaps particularly in wireless) we need to
> validation an NLA_BINARY attribute with both a minimum and a maximum
> length. Currently, we can do either of the two, but not both, given
> that we have NLA_MIN_LEN (minimum length) and NLA_BINARY (maximum).
>
> Extend the range mechanisms that we use for integer validation to
> apply to NLA_BINARY as well.
...
Series applied, thanks Johannes.
prev parent reply other threads:[~2020-08-18 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-18 8:17 Johannes Berg
2020-08-18 8:17 ` [PATCH v2 1/3] netlink: consistently use NLA_POLICY_EXACT_LEN() Johannes Berg
2020-08-18 8:53 ` Matthieu Baerts
2020-08-18 8:17 ` [PATCH v2 2/3] netlink: consistently use NLA_POLICY_MIN_LEN() Johannes Berg
2020-08-18 8:17 ` [PATCH v2 3/3] netlink: make NLA_BINARY validation more flexible Johannes Berg
2020-08-18 19:29 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200818.122911.832794587934053908.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=johannes@sipsolutions.net \
--cc=netdev@vger.kernel.org \
--subject='Re: [PATCH v2 0/3] netlink: allow NLA_BINARY length range validation' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).