Re: [PATCH v2 0/3] netlink: allow NLA_BINARY length range validation

2020-08-18 Thread David Miller
From: Johannes Berg 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 (

[PATCH v2 0/3] netlink: allow NLA_BINARY length range validation

2020-08-18 Thread Johannes Berg
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 mechanis