Unexplainable packet drop starting at v6.4
Subsystems (3)
Hi,
I notice a regression report on Bugzilla [1]. Quoting from it:
Quoted 34 lines
Hi,
After I updated to 6.4 through Archlinux kernel update, suddenly I noticed random packet losses on my routers like nodes. I have these networking relevant config on my nodes
1. Using archlinux
2. Network config through systemd-networkd
3. Using bird2 for BGP routing, but not relevant to this bug.
4. Using nftables for traffic control, but seems not relevant to this bug.
5. Not using fail2ban like dymanic filtering tools, at least at L3/L4 levelAfter I ruled out systemd-networkd, nftables related issues. I tracked down issues to kernel.
Here's the tcpdump I'm seeing on one side of my node ""
``` sudo tcpdump -i fios_wan port 38851 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on fios_wan, link-type EN10MB (Ethernet), snapshot length 262144 bytes 10:33:06.073236 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:11.406607 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:16.739969 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:21.859856 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:27.193176 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 5 packets captured 5 packets received by filter 0 packets dropped by kernel ```But on the other side "[
REDACTED_PUBLIC_IPv4_1]", tcpdump is replying packets in this wireguard stream. So packet is lost somewhere in the link.From the otherside, I can do "mtr" to "[BOS1_NODE]"'s public IP and found the moment the link got lost is right at "[
BOS1_NODE]", that means "[BOS1_NODE]"'s networking stack completely drop the inbound packets from specific ip addresses.Some more digging
Quoted 7 lines
1. This situation began after booting in different delays. Sometimes can trigger after 30 seconds after booting, and sometimes will be after 18 hours or more.
2. It can envolve into worse case that when I do "ip neigh show", the ipv4 ARP table and ipv6 neighbor discovery start to appear as "invalid", meaning the internet is completely loss.
3. When this happened to wan facing interface, it seems OK with lan facing interfaces. WAN interface was using Intel X710-T4L using i40e and lan side was using virtio
4. I tried to bisect in between 6.3 and 6.4, and the first bad commit it reports was "a3efabee5878b8d7b1863debb78cb7129d07a346". But this is not relevant to networking at all, maybe it's the wrong commit to look at. At the meantime, because I haven't found a reproducible way of 100% trigger the issue, it may be the case during bisect some "good" commits are actually bad.
5. I also tried to look at "dmesg", nothing interesting pop up. But I'll make it available upon request.This is my first bug reports. Sorry for any confusion it may lead to and thanks for reading.
See Bugzilla for the full thread.
Thorsten: The reporter had a bad bisect (some bad commits were marked as good instead), hence SoB chain for culprit (unrelated) ipvu commit is in To:
list. I also asked the reporter (also in To:) to provide dmesg and request rerunning bisection, but he doesn't currently have a reliable reproducer. Is it the best I can do?
Anyway, I'm adding this regression to be tracked in regzbot:
#regzbot introduced: a3efabee5878b8 https://bugzilla.kernel.org/show_bug.cgi?id=217678
#regzbot title: packet drop on Intel X710-T4L due to ipvu boot fix
Thanks.
[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217678
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 12 lines · Bagas Sanjaya
I notice a regression report on Bugzilla [1]. Quoting from it:
Quoted 9 lines
After I updated to 6.4 through Archlinux kernel update, suddenly I noticed random packet losses on my routers like nodes. I have these networking relevant config on my nodes
1. Using archlinux
2. Network config through systemd-networkd
3. Using bird2 for BGP routing, but not relevant to this bug.
4. Using nftables for traffic control, but seems not relevant to this bug.
5. Not using fail2ban like dymanic filtering tools, at least at L3/L4 levelAfter I ruled out systemd-networkd, nftables related issues. I tracked down issues to kernel.
Quoted 8 lines
[...]
See Bugzilla for the full thread.Thorsten: The reporter had a bad bisect (some bad commits were marked as good instead), hence SoB chain for culprit (unrelated) ipvu commit is in To:
list. I also asked the reporter (also in To:) to provide dmesg and request rerunning bisection, but he doesn't currently have a reliable reproducer. Is it the best I can do?
When a bisection apparently went sideways it's best to not bother the culprit's developers with it, they most likely will just be annoyed by it (and then they might become annoyed by regression tracking, which we need to avoid).
I'd have forwarded this to the network folks, but in a style along the lines of "FYI, in case somebody has a idea or has heard about something similar and thus can help; if not, no worries, reporter is repeating the bisection".
Quoted 6 lines
Anyway, I'm adding this regression to be tracked in regzbot:
#regzbot introduced:
a3efabee5878b8https://bugzilla.kernel.org/show_bug.cgi?id=217678
#regzbot title: packet drop on Intel X710-T4L due to ipvu boot fix
Side note for the record: Stephen also forwarded this. And let me also clear the commit you specified, as it sounds it's unlikely to be causing this.
#regzbot introduced: v6.3..v6.4
#regzbot monitor:
https://lore.kernel.org/all/[email protected]/
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
Quoted 22 lines · Thorsten Leemhuis
Quoted 12 lines · Bagas Sanjaya
I notice a regression report on Bugzilla [1]. Quoting from it:
Quoted 9 lines
After I updated to 6.4 through Archlinux kernel update, suddenly I noticed random packet losses on my routers like nodes. I have these networking relevant config on my nodes
1. Using archlinux
2. Network config through systemd-networkd
3. Using bird2 for BGP routing, but not relevant to this bug.
4. Using nftables for traffic control, but seems not relevant to this bug.
5. Not using fail2ban like dymanic filtering tools, at least at L3/L4 levelAfter I ruled out systemd-networkd, nftables related issues. I tracked down issues to kernel.
Quoted 8 lines
[...]
See Bugzilla for the full thread.Thorsten: The reporter had a bad bisect (some bad commits were marked as good instead), hence SoB chain for culprit (unrelated) ipvu commit is in To:
list. I also asked the reporter (also in To:) to provide dmesg and request rerunning bisection, but he doesn't currently have a reliable reproducer. Is it the best I can do?
Quoted 5 lines
When a bisection apparently went sideways it's best to not bother the culprit's developers with it, they most likely will just be annoyed by it (and then they might become annoyed by regression tracking, which we need to avoid).
I mean don't Cc: the culprit author in that case?
Quoted 5 lines
I'd have forwarded this to the network folks, but in a style along the lines of "FYI, in case somebody has a idea or has heard about something similar and thus can help; if not, no worries, reporter is repeating the bisection".
Aha! I missed that point. I already have networking folks in To: list.
Thanks!
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 22 lines · Bagas Sanjaya
Quoted 21 lines · Thorsten Leemhuis
Quoted 19 lines · Bagas Sanjaya
I notice a regression report on Bugzilla [1]. Quoting from it:
Quoted 9 lines
After I updated to 6.4 through Archlinux kernel update, suddenly I noticed random packet losses on my routers like nodes. I have these networking relevant config on my nodes
1. Using archlinux
2. Network config through systemd-networkd
3. Using bird2 for BGP routing, but not relevant to this bug.
4. Using nftables for traffic control, but seems not relevant to this bug.
5. Not using fail2ban like dymanic filtering tools, at least at L3/L4 levelAfter I ruled out systemd-networkd, nftables related issues. I tracked down issues to kernel.
[...]
See Bugzilla for the full thread.Thorsten: The reporter had a bad bisect (some bad commits were marked as good instead), hence SoB chain for culprit (unrelated) ipvu commit is in To:
list. I also asked the reporter (also in To:) to provide dmesg and request rerunning bisection, but he doesn't currently have a reliable reproducer. Is it the best I can do?
Quoted 6 lines
Quoted 4 lines
When a bisection apparently went sideways it's best to not bother the culprit's developers with it, they most likely will just be annoyed by it (and then they might become annoyed by regression tracking, which we need to avoid).
I mean don't Cc: the culprit author in that case?
Yes. If a bisection lands on a commit that seems like a pretty unlikely culprit for the problem at hand (which even the reporter admitted in the report), then ask the reporter to verify the result (e.g. ideally by trying to revert it ontop of latest mainline; checking the parent commit again sometimes can do the trick as well) before involving the people that authored and handled said change. Otherwise you just raise a false alarm and then people will be annoyed by our work or if we are unlucky start to ignore us -- and we need to prevent that.
Ciao, Thorsten
Quoted 54 lines · Bagas Sanjaya
Hi,
I notice a regression report on Bugzilla [1]. Quoting from it:
Quoted 34 lines
Hi,
After I updated to 6.4 through Archlinux kernel update, suddenly I noticed random packet losses on my routers like nodes. I have these networking relevant config on my nodes
1. Using archlinux
2. Network config through systemd-networkd
3. Using bird2 for BGP routing, but not relevant to this bug.
4. Using nftables for traffic control, but seems not relevant to this bug.
5. Not using fail2ban like dymanic filtering tools, at least at L3/L4 levelAfter I ruled out systemd-networkd, nftables related issues. I tracked down issues to kernel.
Here's the tcpdump I'm seeing on one side of my node ""
``` sudo tcpdump -i fios_wan port 38851 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on fios_wan, link-type EN10MB (Ethernet), snapshot length 262144 bytes 10:33:06.073236 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:11.406607 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:16.739969 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:21.859856 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:27.193176 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 5 packets captured 5 packets received by filter 0 packets dropped by kernel ```But on the other side "[
REDACTED_PUBLIC_IPv4_1]", tcpdump is replying packets in this wireguard stream. So packet is lost somewhere in the link.From the otherside, I can do "mtr" to "[BOS1_NODE]"'s public IP and found the moment the link got lost is right at "[
BOS1_NODE]", that means "[BOS1_NODE]"'s networking stack completely drop the inbound packets from specific ip addresses.Some more digging
Quoted 7 lines
1. This situation began after booting in different delays. Sometimes can trigger after 30 seconds after booting, and sometimes will be after 18 hours or more.
2. It can envolve into worse case that when I do "ip neigh show", the ipv4 ARP table and ipv6 neighbor discovery start to appear as "invalid", meaning the internet is completely loss.
3. When this happened to wan facing interface, it seems OK with lan facing interfaces. WAN interface was using Intel X710-T4L using i40e and lan side was using virtio
4. I tried to bisect in between 6.3 and 6.4, and the first bad commit it reports was "a3efabee5878b8d7b1863debb78cb7129d07a346". But this is not relevant to networking at all, maybe it's the wrong commit to look at. At the meantime, because I haven't found a reproducible way of 100% trigger the issue, it may be the case during bisect some "good" commits are actually bad.
5. I also tried to look at "dmesg", nothing interesting pop up. But I'll make it available upon request.This is my first bug reports. Sorry for any confusion it may lead to and thanks for reading.
See Bugzilla for the full thread.
Thorsten: The reporter had a bad bisect (some bad commits were marked as good instead), hence SoB chain for culprit (unrelated) ipvu commit is in To:
list. I also asked the reporter (also in To:) to provide dmesg and request rerunning bisection, but he doesn't currently have a reliable reproducer. Is it the best I can do?
Quoted 5 lines
Anyway, I'm adding this regression to be tracked in regzbot:
#regzbot introduced:
a3efabee5878b8https://bugzilla.kernel.org/show_bug.cgi?id=217678
#regzbot title: packet drop on Intel X710-T4L due to ipvu boot fix
This time, the bisection points out to v6.4 networking pull, so:
#regzbot introduced: 6e98b09da931a0
(also Cc: Linus.)
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Jakub Kicinski
maintainerQuoted 3 lines · On Wed, 26 Jul 2023 06:50:52 +0700 Bagas Sanjaya wrote:
This time, the bisection points out to v6.4 networking pull, so:
#regzbot introduced:
6e98b09da931a0
Ask the reporter to test 9b78d919632b, i.e. the tip of net-next before the merge. It seems quite unlikely that the merge itself is the problem.
[replying with a heavily adjust set of recipients]
Quoted 2 lines · Bagas Sanjaya
I notice a regression report on Bugzilla [1]. Quoting from it:
Tirthendu Sarkar, turned out this regressions reported in
https://bugzilla.kernel.org/show_bug.cgi?id=217678 is caused by your change e9031f2da1a ("i40e: introduce next_to_process to i40e_ring") [v6.4-rc1] that Tony applied in March.
Could you (or someone else) please take a look? The bugzilla ticket has details and a comment from a second person that seems to be affected by the same problem. And 6.5 seems to still show the problem.
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
Quoted 50 lines
Quoted 34 lines
Hi,
After I updated to 6.4 through Archlinux kernel update, suddenly I noticed random packet losses on my routers like nodes. I have these networking relevant config on my nodes
1. Using archlinux
2. Network config through systemd-networkd
3. Using bird2 for BGP routing, but not relevant to this bug.
4. Using nftables for traffic control, but seems not relevant to this bug.
5. Not using fail2ban like dymanic filtering tools, at least at L3/L4 levelAfter I ruled out systemd-networkd, nftables related issues. I tracked down issues to kernel.
Here's the tcpdump I'm seeing on one side of my node ""
``` sudo tcpdump -i fios_wan port 38851 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on fios_wan, link-type EN10MB (Ethernet), snapshot length 262144 bytes 10:33:06.073236 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:11.406607 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:16.739969 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:21.859856 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:27.193176 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 5 packets captured 5 packets received by filter 0 packets dropped by kernel ```But on the other side "[
REDACTED_PUBLIC_IPv4_1]", tcpdump is replying packets in this wireguard stream. So packet is lost somewhere in the link.From the otherside, I can do "mtr" to "[BOS1_NODE]"'s public IP and found the moment the link got lost is right at "[
BOS1_NODE]", that means "[BOS1_NODE]"'s networking stack completely drop the inbound packets from specific ip addresses.Some more digging
Quoted 7 lines
1. This situation began after booting in different delays. Sometimes can trigger after 30 seconds after booting, and sometimes will be after 18 hours or more.
2. It can envolve into worse case that when I do "ip neigh show", the ipv4 ARP table and ipv6 neighbor discovery start to appear as "invalid", meaning the internet is completely loss.
3. When this happened to wan facing interface, it seems OK with lan facing interfaces. WAN interface was using Intel X710-T4L using i40e and lan side was using virtio
4. I tried to bisect in between 6.3 and 6.4, and the first bad commit it reports was "a3efabee5878b8d7b1863debb78cb7129d07a346". But this is not relevant to networking at all, maybe it's the wrong commit to look at. At the meantime, because I haven't found a reproducible way of 100% trigger the issue, it may be the case during bisect some "good" commits are actually bad.
5. I also tried to look at "dmesg", nothing interesting pop up. But I'll make it available upon request.This is my first bug reports. Sorry for any confusion it may lead to and thanks for reading.
See Bugzilla for the full thread.
Thorsten: The reporter had a bad bisect (some bad commits were marked as good instead), hence SoB chain for culprit (unrelated) ipvu commit is in To:
list. I also asked the reporter (also in To:) to provide dmesg and request rerunning bisection, but he doesn't currently have a reliable reproducer. Is it the best I can do?
Quoted 9 lines
Anyway, I'm adding this regression to be tracked in regzbot:
#regzbot introduced:
a3efabee5878b8https://bugzilla.kernel.org/show_bug.cgi?id=217678
#regzbot title: packet drop on Intel X710-T4L due to ipvu boot fixThanks.
#regzbot introduced: e9031f2da1a
#regzbot poke
Quoted 6 lines · Linux regression tracking (Thorsten Leemhuis)
[replying with a heavily adjust set of recipients]
Quoted 2 lines · Bagas Sanjaya
I notice a regression report on Bugzilla [1]. Quoting from it:
Quoted 8 lines
Tirthendu Sarkar, turned out this regressions reported in
https://bugzilla.kernel.org/show_bug.cgi?id=217678 is caused by your changee9031f2da1a("i40e: introducenext_to_processtoi40e_ring") [v6.4-rc1] that Tony applied in March.Could you (or someone else) please take a look? The bugzilla ticket has details and a comment from a second person that seems to be affected by the same problem. And 6.5 seems to still show the problem.
Hey i40e developers, did you see that message reg this regression in your driver I sent one and a half week ago? It would be good to get at least some progress here, as this report is around for quite some time already, as it was misdirected first. :-/ Two people are apparently affected by this, one re-confirmed today that this is still happening.
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
#regzbot poke
Quoted 62 lines
Quoted 50 lines
Quoted 34 lines
Hi,
After I updated to 6.4 through Archlinux kernel update, suddenly I noticed random packet losses on my routers like nodes. I have these networking relevant config on my nodes
1. Using archlinux
2. Network config through systemd-networkd
3. Using bird2 for BGP routing, but not relevant to this bug.
4. Using nftables for traffic control, but seems not relevant to this bug.
5. Not using fail2ban like dymanic filtering tools, at least at L3/L4 levelAfter I ruled out systemd-networkd, nftables related issues. I tracked down issues to kernel.
Here's the tcpdump I'm seeing on one side of my node ""
``` sudo tcpdump -i fios_wan port 38851 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on fios_wan, link-type EN10MB (Ethernet), snapshot length 262144 bytes 10:33:06.073236 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:11.406607 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:16.739969 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:21.859856 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 10:33:27.193176 IP [BOS1_NODE].38851 > [REDACTED_PUBLIC_IPv4_1].38851: UDP, length 148 5 packets captured 5 packets received by filter 0 packets dropped by kernel ```But on the other side "[
REDACTED_PUBLIC_IPv4_1]", tcpdump is replying packets in this wireguard stream. So packet is lost somewhere in the link.From the otherside, I can do "mtr" to "[BOS1_NODE]"'s public IP and found the moment the link got lost is right at "[
BOS1_NODE]", that means "[BOS1_NODE]"'s networking stack completely drop the inbound packets from specific ip addresses.Some more digging
Quoted 7 lines
1. This situation began after booting in different delays. Sometimes can trigger after 30 seconds after booting, and sometimes will be after 18 hours or more.
2. It can envolve into worse case that when I do "ip neigh show", the ipv4 ARP table and ipv6 neighbor discovery start to appear as "invalid", meaning the internet is completely loss.
3. When this happened to wan facing interface, it seems OK with lan facing interfaces. WAN interface was using Intel X710-T4L using i40e and lan side was using virtio
4. I tried to bisect in between 6.3 and 6.4, and the first bad commit it reports was "a3efabee5878b8d7b1863debb78cb7129d07a346". But this is not relevant to networking at all, maybe it's the wrong commit to look at. At the meantime, because I haven't found a reproducible way of 100% trigger the issue, it may be the case during bisect some "good" commits are actually bad.
5. I also tried to look at "dmesg", nothing interesting pop up. But I'll make it available upon request.This is my first bug reports. Sorry for any confusion it may lead to and thanks for reading.
See Bugzilla for the full thread.
Thorsten: The reporter had a bad bisect (some bad commits were marked as good instead), hence SoB chain for culprit (unrelated) ipvu commit is in To:
list. I also asked the reporter (also in To:) to provide dmesg and request rerunning bisection, but he doesn't currently have a reliable reproducer. Is it the best I can do?Quoted 9 lines
Anyway, I'm adding this regression to be tracked in regzbot:
#regzbot introduced:
a3efabee5878b8https://bugzilla.kernel.org/show_bug.cgi?id=217678
#regzbot title: packet drop on Intel X710-T4L due to ipvu boot fixThanks.
#regzbot introduced:
e9031f2da1a
#regzbot poke