diff options
author | 2022-09-29 07:28:09 -0700 | |
---|---|---|
committer | 2022-09-30 17:43:09 -0700 | |
commit | cff2d762cde669023f345157f875b7ea6658992a (patch) | |
tree | e86e6a63dfb3a73cfd8ede815601e719044c51f8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Merge tag 'wireless-next-2022-09-30' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next (diff) | |
download | wireguard-linux-cff2d762cde669023f345157f875b7ea6658992a.tar.xz wireguard-linux-cff2d762cde669023f345157f875b7ea6658992a.zip |
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/20220928073709.1b93b74a@kernel.org/
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20220929142809.1167546-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions