netlink: add range checks for network byte integers
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | netlink: introduce NLA_POLICY_MAX_BEinclude/ lib/ | +36 | 6 replies | Applied |
| 2/2 | netfilter: nft_payload: reject out-of-range attributes via policynet/ | +3 | 0 replies | Applied |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Jakub Kicinski |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/2] netlink: add range checks for network byte integers
NLA_POLICY_MAX() can be used to let netlink core validate that the given integer attribute is within the given min-max interval.
Add NLA_POLICY_MAX_BE to allow similar range check on unsigned integers when those are in network byte order (big endian).
First patch adds the netlink change, second patch adds one user.
Florian Westphal (2):
netlink: introduce NLA_POLICY_MAX_BE
netfilter: nft_payload: reject out-of-range attributes via policy
include/net/netlink.h | 9 +++++++++ lib/nlattr.c | 31 +++++++++++++++++++++++++++---- net/netfilter/nft_payload.c | 6 +++--- 3 files changed, 39 insertions(+), 7 deletions(-)
Signature · 1 line
2.35.1