Re: [RFC 0/4] netlink: binary attribute range validation

2020-08-08 Thread David Miller
From: Johannes Berg Date: Wed, 5 Aug 2020 16:03:20 +0200 > This is something I'd been thinking about for a while; we already > have NLA_MIN_LEN, NLA_BINARY (with a max len), and NLA_EXACT_LEN, > but in quite a few places (as you can see in the last patch here) > we need a range, and we already h

[RFC 0/4] netlink: binary attribute range validation

2020-08-05 Thread Johannes Berg
Hi, This is something I'd been thinking about for a while; we already have NLA_MIN_LEN, NLA_BINARY (with a max len), and NLA_EXACT_LEN, but in quite a few places (as you can see in the last patch here) we need a range, and we already have a way to encode ranges for integer ranges, so it's pretty e