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

netlink plugin: Handle new counter from Linux kernel version 4.6+. #2767

Merged
merged 2 commits into from May 7, 2018

Conversation

rpv-tomsk
Copy link
Contributor

@rpv-tomsk rpv-tomsk commented May 7, 2018

mnl_attr_validate2() function implements strict equality check of kernel and
userspace structures size. Additional counters was added to 4.6 Linux kernel,
sizes was changed and mismatch can occur.

This patch weakened validation.
Now Collectd just checks if structures, received from kernel space, has enough
data.

Closes: collectd#2510
Added metric for new counter from Linux kernel version 4.6+.

Issue: collectd#2510
@rubenk
Copy link
Contributor

rubenk commented May 7, 2018

Looks good, thanks @rpv-tomsk!

@rubenk rubenk merged commit 5627fea into collectd:master May 7, 2018
@rpv-tomsk rpv-tomsk deleted the tmpfix branch May 8, 2018 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants