Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syz-declextract: support nested netlink policies #5514

Merged
merged 4 commits into from
Nov 18, 2024

Conversation

dvyukov
Copy link
Collaborator

@dvyukov dvyukov commented Nov 15, 2024

  • pkg/compiler: allow recursion via arrays
  • sys/linux: remove nl_generic_attr_nonested hack
  • tools/syz-declextract: don't generate NLA_REJECT/TYPE_MAX attrs
  • tools/syz-declextract: support nested netlink policies

@dvyukov dvyukov changed the title dvyukov declextract more4 syz-declextract: support nested netlink policies Nov 15, 2024
tarasmadan
tarasmadan previously approved these changes Nov 15, 2024
Permit structs to recursively contain itself in arrays.
This is needed for netlink. Amusingly several netlink policies contain itself.
It was needed to work around restriction on recursion via arrays.
Since we permit it now, we can remove the hack.
These are not accepted as inputs (NLA_REJECT is usually used in dump operation).
@dvyukov dvyukov added this pull request to the merge queue Nov 18, 2024
Merged via the queue into google:master with commit e7bb5d6 Nov 18, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants