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

Specified IFLA_INET6_STATS NLA attribute holds more #140

Open
pronebird opened this issue Dec 19, 2024 · 8 comments
Open

Specified IFLA_INET6_STATS NLA attribute holds more #140

pronebird opened this issue Dec 19, 2024 · 8 comments

Comments

@pronebird
Copy link

pronebird commented Dec 19, 2024

There is this warning and error that I see on my ubuntu 22.04 machine around time of removing the routes. Do you have any clue what can be the cause of this and what is message type 17?

2024-12-19T09:01:14.805010Z  WARN netlink_packet_route::link::buffer_tool: Specified IFLA_INET6_STATS NLA attribute holds more(most likely new kernel) data which is unknown to netlink-packet-route crate, expecting 288, got 296    

2024-12-19T09:01:14.805264Z ERROR netlink_proto::codecs: failed to decode packet b"T\x02\0\0\x11\0\0\0\0\0\0\0\0\0\0\0\0\0\xfe\xff\x0b\0\0\0\x90\x10\0\0\xff\xff\xff\xff\t\0\x03\0tun1\0\0\0\0\x08\0\r\0\xf4\x01\0\0\x05\0\x10\0\x02\0\0\0\x05\0\x11\0\0\0\0\0\x08\0\x04\0<\x05\0\0\x08\02\0D\0\0\0\x08\03\0\xff\xff\0\0\x08\0\x1b\0\0\0\0\0\x08\0\x1e\0\0\0\0\0\x08\0\x1f\0\x01\0\0\0\x08\0(\0\xff\xff\0\0\x08\0)\0\0\0\x01\0\x08\0 \0\x01\0\0\0\x05\0!\0\0\0\0\0\t\0\x06\0noop\0\0\0\0\x08\0#\0\x01\0\0\0\x08\0/\0\0\0\0\0\x08\00\0\x01\0\0\0\x05\0'\0\0\0\0\0$\0\x0e\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xc4\0\x17\0~\0\0\0\0\0\0\0\xe0\0\0\0\0\0\0\0\xb3X\0\0\0\0\0\0]S\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0d\0\x07\0~\0\0\0\xe0\0\0\0\xb3X\0\0]S\0\0\0\0\0\0\0\0\0\0F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x0c\0+\0\x05\0\x02\0\0\0\0\08\0\x12\0\x08\0\x01\0tun\0,\0\x02\0\x05\0\x03\0\x01\0\0\0\x05\0\x04\0\0\0\0\0\x05\0\x05\0\0\0\0\0\x05\0\x06\0\0\0\0\0\x05\0\x07\0\0\0\0\0\x04\0\x1a\0": Decode error occurred: Failed to parse message with type 17
@cathay4t
Copy link
Member

any reproducer?

@pronebird
Copy link
Author

I am trying to create a reproducible case.

I have seen very few issues like that, for example here in logs to instruction.

It looks to me that it's somehow tight to running wireguard and/or using tun adapter because these warnings pop up around time when we create/destroy tunnel adapter and start/stop wireguard-go.

I'll let you know when I have something useful for you.

@cathay4t
Copy link
Member

We have expand_buffer_if_small() which will pad the buffer to correct size for IFLA_INET6_STATS.

@cathay4t
Copy link
Member

The Specified IFLA_INET6_STATS NLA attribute holds more log line indicate the crate version you are using is outdated. Could you try again using latest version (0.21) ?

@pronebird
Copy link
Author

The Specified IFLA_INET6_STATS NLA attribute holds more log line indicate the crate version you are using is outdated. Could you try again using latest version (0.21) ?

Still seeing it with netlink-packet-route v0.21.0 on Ubuntu 22.04.2 arm64 🤷‍♂

Image

@pronebird
Copy link
Author

Updated my VM to Ubuntu 24.04 and I can confirm that this warning is no longer emitted. I assume that this issue is bound to 22.04.2 for unknown to me reason.

@pronebird
Copy link
Author

pronebird commented Jan 21, 2025

Errrm so around time of disconnecting wireguard and removing routes, the following is emitted:

025-01-21T15:24:43.331622Z ERROR netlink_proto::codecs: failed to decode packet b"\x94\x02\0\0\x11\0\0\0\0\0\0\0\0\0\0\0\0\0\xfe\xff\x17\0\0\0\x90\x10\0\0\xff\xff\xff\xff\t\0\x03\0tun1\0\0\0\0\x08\0\r\0\xf4\x01\0\0\x05\0\x10\0\x02\0\0\0\x05\0\x11\0\0\0\0\0\x08\0\x04\0<\x05\0\0\x08\02\0D\0\0\0\x08\03\0\xff\xff\0\0\x08\0\x1b\0\0\0\0\0\x08\0\x1e\0\0\0\0\0\x08\0=\0\0\0\0\0\x08\0\x1f\0\x01\0\0\0\x08\0(\0\xff\xff\0\0\x08\0)\0\0\0\x01\0\x08\0:\0\0\0\x01\0\x08\0?\0\0\0\x01\0\x08\0@\0\0\0\x01\0\x08\0;\0\0\0\x01\0\x08\0<\0\xff\xff\0\0\x08\0 \0\x01\0\0\0\x05\0!\0\0\0\0\0\t\0\x06\0noop\0\0\0\0\x08\0#\0\x01\0\0\0\x08\0/\0\0\0\0\0\x08\00\0\x01\0\0\0\x05\0'\0\0\0\0\0$\0\x0e\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xcc\0\x17\0F\0\0\0\0\0\0\0x\0\0\0\0\0\0\0K!\0\0\0\0\0\0X$\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\00\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0d\0\x07\0F\0\0\0x\0\0\0K!\0\0X$\0\0\0\0\0\0\0\0\0\00\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x0c\0+\0\x05\0\x02\0\0\0\0\08\0\x12\0\x08\0\x01\0tun\0,\0\x02\0\x05\0\x03\0\x01\0\0\0\x05\0\x04\0\0\0\0\0\x05\0\x05\0\0\0\0\0\x05\0\x06\0\0\0\0\0\x05\0\x07\0\0\0\0\0\x04\0\x1a\0\x04\0>\x80\x04\0A\x80": Decode error occurred: Failed to parse message with type 17    
2025-01-21T15:24:43.331942Z  WARN netlink_packet_route::link::buffer_tool: Specified IFLA_INET6_STATS NLA attribute holds more(most likely new kernel) data which is unknown to netlink-packet-route crate, expecting 288, got 304    
2025-01-21T15:24:43.332054Z  WARN netlink_packet_route::link::buffer_tool: Specified IFLA_INET6_ICMP6STATS NLA attribute holds more(most likely new kernel) data which is unknown to netlink-packet-route crate, expecting 48, got 56  

@thomaseizinger
Copy link

We are also seeing this after the update to 0.21. We are using netlink to set IPs and routes on a TUN device. Here are the logs:

2025-01-28T06:01:51.467Z  WARN netlink_packet_route::link::buffer_tool: Specified IFLA_INET6_STATS NLA attribute holds more(most likely new kernel) data which is unknown to netlink-packet-route crate, expecting 288, got 304
2025-01-28T06:01:51.468Z  WARN netlink_packet_route::link::buffer_tool: Specified IFLA_INET6_ICMP6STATS NLA attribute holds more(most likely new kernel) data which is unknown to netlink-packet-route crate, expecting 48, got 56
2025-01-28T06:01:51.471Z DEBUG firezone_bin_shared::tun_device_manager::linux: Successfully created ip rule for ipv4
2025-01-28T06:01:51.472Z DEBUG firezone_bin_shared::tun_device_manager::linux: Successfully created ip rule for ipv6
2025-01-28T06:01:51.472Z  INFO firezone_bin_shared::tun_device_manager::linux: Setting new routes new_routes={V4(Ipv4Network { network_address: 100.96.0.0, netmask: 11 }), V4(Ipv4Network { network_address: 100.100.111.0, netmask: 24 }), V4(Ipv4Network { network_address: 10.0.32.101, netmask: 32 }), V6(Ipv6Network { network_address: fd00:2021:1111:8000:100:100:111:0, netmask: 120 }), V6(Ipv6Network { network_address: fd00:2021:1111:8000::, netmask: 107 })}
2025-01-28T06:01:51.472Z  WARN netlink_packet_route::link::buffer_tool: Specified IFLA_INET6_STATS NLA attribute holds more(most likely new kernel) data which is unknown to netlink-packet-route crate, expecting 288, got 304
2025-01-28T06:01:51.472Z  WARN netlink_packet_route::link::buffer_tool: Specified IFLA_INET6_ICMP6STATS NLA attribute holds more(most likely new kernel) data which is unknown to netlink-packet-route crate, expecting 48, got 56
2025-01-28T06:01:51.473Z DEBUG firezone_bin_shared::tun_device_manager::linux: Created new route route=100.96.0.0/11 iface_idx=25
2025-01-28T06:01:51.473Z DEBUG firezone_bin_shared::tun_device_manager::linux: Created new route route=100.100.111.0/24 iface_idx=25
2025-01-28T06:01:51.474Z DEBUG firezone_bin_shared::tun_device_manager::linux: Created new route route=10.0.32.101/32 iface_idx=25
2025-01-28T06:01:51.474Z DEBUG firezone_bin_shared::tun_device_manager::linux: Created new route route=fd00:2021:1111:8000:100:100:111:0/120 iface_idx=25
2025-01-28T06:01:51.475Z DEBUG firezone_bin_shared::tun_device_manager::linux: Created new route route=fd00:2021:1111:8000::/107 iface_idx=25

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

No branches or pull requests

3 participants