linux/net/netlink
Jiri Pirko 5766946ea5 genetlink: add explicit ordering break check for split ops
Currently, if cmd in the split ops array is of lower value than the
previous one, genl_validate_ops() continues to do the checks as if
the values are equal. This may result in non-obvious WARN_ON() hit in
these check.

Instead, check the incorrect ordering explicitly and put a WARN_ON()
in case it is broken.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20230720111354.562242-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-21 18:49:12 -07:00
..
af_netlink.c netlink: Make use of __assign_bit() API 2023-07-11 12:23:15 +02:00
af_netlink.h netlink: remove unused 'compare' function 2023-03-09 23:11:09 -08:00
diag.c netlink: Add __sock_i_ino() for __netlink_diag_dump(). 2023-06-27 09:37:41 -07:00
genetlink.c genetlink: add explicit ordering break check for split ops 2023-07-21 18:49:12 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile netlink: add infrastructure to expose policies to userspace 2020-04-30 17:51:42 -07:00
policy.c net: genl: fix error path memory leak in policy dumping 2022-08-18 10:20:48 -07:00