diff options
author | Jakub Kicinski <[email protected]> | 2022-09-29 07:28:09 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-09-30 17:43:09 -0700 |
commit | cff2d762cde669023f345157f875b7ea6658992a (patch) | |
tree | e86e6a63dfb3a73cfd8ede815601e719044c51f8 /scripts/generate_rust_analyzer.py | |
parent | 915b96c52763e2988e6368b538b487a7138b8fa4 (diff) |
genetlink: reject use of nlmsg_flags for new commands
Commit 9c5d03d36251 ("genetlink: start to validate reserved header bytes")
introduced extra validation for genetlink headers. We had to gate it
to only apply to new commands, to maintain bug-wards compatibility.
Use this opportunity (before the new checks make it to Linus's tree)
to add more conditions.
Validate that Generic Netlink families do not use nlmsg_flags outside
of the well-understood set.
Link: https://lore.kernel.org/all/[email protected]/
Reviewed-by: Johannes Berg <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Reviewed-by: Nicolas Dichtel <[email protected]>
Reviewed-by: Guillaume Nault <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions