linux/tools/net/ynl
Jakub Kicinski 57e7dedf2b tools: ynl-gen: make sure we validate subtype of array-nest
ArrayNest AKA indexed-array support currently skips inner type
validation. We count the attributes and then we parse them,
make sure we call validate, too. Otherwise buggy / unexpected
kernel response may lead to crashes.

Fixes: be5bea1cc0 ("net: add basic C code generators for Netlink")
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250414211851.602096-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-04-16 18:09:41 -07:00
..
generated tools: ynl: add install target for generated content 2025-01-09 12:53:27 -08:00
lib tools: ynl: c: correct reverse decode of empty attrs 2025-01-27 14:30:23 -08:00
pyynl tools: ynl-gen: make sure we validate subtype of array-nest 2025-04-16 18:09:41 -07:00
samples ynl: samples: Fix the wrong format specifier 2024-11-13 18:48:15 -08:00
Makefile tools: ynl: add main install target 2025-01-09 12:53:27 -08:00
Makefile.deps netlink: specs: wireless: add a spec for nl80211 2025-02-12 19:32:26 -08:00
pyproject.toml tools: ynl: add initial pyproject.toml for packaging 2025-01-09 12:53:27 -08:00
requirements.txt tools: ynl: add the Python requirements.txt file 2023-03-24 19:11:02 -07:00
ynl-regen.sh tools: ynl: move python code to separate sub-directory 2025-01-09 12:53:27 -08:00