diff options
| author | Quentin Armitage <quentin@armitage.org.uk> | 2026-09-15 22:33:21 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-18 18:22:59 -0700 |
| commit | 6c096bb08de97cdca051fecddad22cac6a1fd275 (patch) | |
| tree | a29825018894b096861c826cb1bd9e88d5c0b91a /tools/perf/scripts/python | |
| parent | 4581c3d2adc3c73a019bc38db64ca11f28bbd7fd (diff) | |
| download | linux-6c096bb08de97cdca051fecddad22cac6a1fd275.tar.gz linux-6c096bb08de97cdca051fecddad22cac6a1fd275.zip | |
net: allow IFLA_INET_CONF messages when NLA_F_NESTED unset
Commit fa8fca88714c ("ipv4: validate IPV4_DEVCONF attributes properly")
added validation of IFLA_INET_CONF attributes, and in the process
changed the call of nla_for_each_nested() to nla_parse_nested(). A
side effect of this change is that the IFLA_INET_CONF option is now
tested for NLA_F_NESTED being set, and fails if it is not. Prior to the
commit there was no check of NLA_F_NESTED.
Change nla_parse_nested() to nla_parse(). This restores the previous
functionality of not checking NLA_F_NESTED, thereby allowing code that
(incorrectly) doesn't set NLA_F_NESTED to continue to work.
This issue was identified because keepalived started logging errors when
it was configuring macvlans that it created.
Fixes: fa8fca88714c ("ipv4: validate IPV4_DEVCONF attributes properly")
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260915213320.1527029-2-quentin@armitage.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
