The mainline kernel v5.2 commit b424e432e770
("netlink: add validation of NLA_F_NESTED flag") imposes strict validation
against nested attribute as follow.
"
Add new validation flag NL_VALIDATE_NESTED which adds three consistency
checks of NLA_F_NESTED_FLAG:
the flag is set on attributes with NLA_NESTED{,_ARRAY} policy
the flag is not set on attributes with other policies except NLA_UNSPEC
the flag is set on attribute passed to nla_parse_nested()
"
Sending messages with nested attribute without NLA_F_NESTED would cause failed
validation. For example,
$ drbdsetup new-resource r0
Invalid argument
This patch adds NLA_F_NESTED flag to all nested attributes.
The mainline kernel v5.2 commit b424e432e770 ("netlink: add validation of NLA_F_NESTED flag") imposes strict validation against nested attribute as follow.
" Add new validation flag NL_VALIDATE_NESTED which adds three consistency checks of NLA_F_NESTED_FLAG:
Sending messages with nested attribute without NLA_F_NESTED would cause failed validation. For example,
$ drbdsetup new-resource r0 Invalid argument
This patch adds NLA_F_NESTED flag to all nested attributes.
Signed-off-by: He Zhe zhe.he@windriver.com