Skip to contentSkip to conversation

RCU stalls with wireguard over bonding over igb on Linux 6.3.0+

DISCUSSION Bagas Sanjaya 4 participants 12 messages Jul 2, 2023 – Jul 4, 2023

Subsystems (5)
Networking Network drivers ACPI RCU +1 more subsystems
lore
Share & tools
lore
#0 lore raw

Hi,

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 18 lines

I've spent the last week on debugging a problem with my attempt to upgrade my kernel from 6.2.8 to 6.3.8 (now also with 6.4.0 too).

The lenghty and detailed bug reports with all aspects of git bisect are at
https://bugs.gentoo.org/909066

A summary:
- if I do not configure wg0, the kernel does not hang
- if I use a kernel older than commit fed8d8773b8ea68ad99d9eee8c8343bef9da2c2c, it does not hang

The commit refers to code that seems unrelated to the problem for my naiive eye.

The hardware is a Dell PowerEdge R620 running Gentoo ~amd64.

I have so far excluded:
- dracut for generating the initramfs is the same version over all kernels
- linux-firmware has been the same
- CPU microcode has been the same

Quoted 5 lines

It's been a long time since I seriously involved with software development and I have been even less involved with kernel development.

Gentoo maintainers recommended me to open a bug with upstream, so here I am.

I currently have no idea how to make progress, but I'm willing to try things.

See Bugzilla for the full thread.

Anyway, I'm adding it to regzbot to make sure it doesn't fall through cracks unnoticed:

#regzbot introduced: fed8d8773b8ea6 https://bugzilla.kernel.org/show_bug.cgi?id=217620
#regzbot title: correcting acpi_is_processor_usable() check causes RCU stalls with wireguard over bonding+igb #regzbot link: https://bugs.gentoo.org/909066

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217620

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw

[also Cc: original reporter]

Quoted 28 lines · Bagas Sanjaya

Hi,

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 18 lines

I've spent the last week on debugging a problem with my attempt to upgrade my kernel from 6.2.8 to 6.3.8 (now also with 6.4.0 too).

The lenghty and detailed bug reports with all aspects of git bisect are at
https://bugs.gentoo.org/909066

A summary:
- if I do not configure wg0, the kernel does not hang
- if I use a kernel older than commit fed8d8773b8ea68ad99d9eee8c8343bef9da2c2c, it does not hang

The commit refers to code that seems unrelated to the problem for my naiive eye.

The hardware is a Dell PowerEdge R620 running Gentoo ~amd64.

I have so far excluded:
- dracut for generating the initramfs is the same version over all kernels
- linux-firmware has been the same
- CPU microcode has been the same

Quoted 5 lines

It's been a long time since I seriously involved with software development and I have been even less involved with kernel development.

Gentoo maintainers recommended me to open a bug with upstream, so here I am.

I currently have no idea how to make progress, but I'm willing to try things.

Quoted 9 lines

See Bugzilla for the full thread.

Anyway, I'm adding it to regzbot to make sure it doesn't fall through cracks unnoticed:

#regzbot introduced: fed8d8773b8ea6 https://bugzilla.kernel.org/show_bug.cgi?id=217620
#regzbot title: correcting acpi_is_processor_usable() check causes RCU stalls with wireguard over bonding+igb #regzbot link: https://bugs.gentoo.org/909066

satmd: Can you repeat bisection to confirm that fed8d8773b8ea6 is really the culprit?

Thorsten: It seems like the reporter concluded bisection to the (possibly) incorrect culprit. What can I do in this case besides asking to repeat bisection?

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#2 lore raw
Quoted 1 line · Bagas Sanjaya

[also Cc: original reporter]

BTW: I think you CCed too many developers here. There are situations where this can makes sense, but it's rare. And if you do this too often people might start to not really look into your mails or might even ignore them completely.

Normally it's enough to write the mail to (1) the people in the signed-off-by-chain, (2) the maintainers of the subsystem that merged a commit, and (3) the lists for all affected subsystems; leave it up to developers from the first two groups to CC the maintainers of the third group.

Quoted 10 lines · Bagas Sanjaya
Quoted 3 lines

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 1 line

I've spent the last week on debugging a problem with my attempt to upgrade my kernel from 6.2.8 to 6.3.8 (now also with

[...]

Quoted 5 lines

See Bugzilla for the full thread.

Anyway, I'm adding it to regzbot to make sure it doesn't fall through cracks unnoticed:

Quoted 6 lines
Quoted 3 lines

#regzbot introduced: fed8d8773b8ea6 https://bugzilla.kernel.org/show_bug.cgi?id=217620
#regzbot title: correcting acpi_is_processor_usable() check causes RCU stalls with wireguard over bonding+igb #regzbot link: https://bugs.gentoo.org/909066

satmd: Can you repeat bisection to confirm that fed8d8773b8ea6 is really the culprit?

I'd be careful to ask people that, as that might mean a lot of work for them. Best to leave things like that to developers, unless it's pretty obvious that something went sideways.

Quoted 2 lines

Thorsten: It seems like the reporter concluded bisection to the (possibly) incorrect culprit.

What makes your think so? I just looked at bugzilla and it (for now) seems reverting fed8d8773b8ea6 ontop of 6.4 fixed things for the reporter, which is a pretty strong indicator that this change really causes the trouble somehow.

/me really wonders what's he's missing

Quoted 2 lines

What can I do in this case besides
asking to repeat bisection?

Not much apart from updating regzbot state (e.g. something like "regzbot introduced v6.3..v6.4") and a reply to your initial report (ideally with a quick apology) to let everyone know it was a false alarm.

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.

#4 lore raw
Quoted 6 lines · Jason A. Donenfeld

I've got an overdue patch that I still need to submit to netdev, which I suspect might actually fix this.

Can you let me know if
https://git.zx2c4.com/wireguard-linux/patch/?id=54d5e4329efe0d1dba8b4a58720d29493926bed0
solves the problem?

satmd, the original reporter, confirmed over on the Gentoo bug report -
https://bugs.gentoo.org/909066 - that this patch fixes the issue.

This patch has been sent into netdev and will presumably hit the various trees and stable in due time.

Jason

#5 lore raw
In reply to Jason A. Donenfeld
Quoted 6 lines · Jason A. Donenfeld

I've got an overdue patch that I still need to submit to netdev, which I suspect might actually fix this.

Can you let me know if
https://git.zx2c4.com/wireguard-linux/patch/?id=54d5e4329efe0d1dba8b4a58720d29493926bed0
solves the problem?

The reporter on Bugzilla [1] said it fixed the regression, so telling regzbot:

#regzbot fix: 54d5e4329efe0d

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217620#c6

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#6 lore raw
Quoted 4 lines · Bagas Sanjaya
Quoted 3 lines · Jason A. Donenfeld

I've got an overdue patch that I still need to submit to netdev, which I suspect might actually fix this.

Quoted 8 lines
Quoted 3 lines

Can you let me know if
https://git.zx2c4.com/wireguard-linux/patch/?id=54d5e4329efe0d1dba8b4a58720d29493926bed0
solves the problem?

The reporter on Bugzilla [1] said it fixed the regression, so telling regzbot:

#regzbot fix: 54d5e4329efe0d

That's not correct. I tend to send patches to netdev@, not pulls, so the commit is going to be different. Just leave this alone for a bit and tidy things up once everything hits the main trees.

#7 lore raw
Quoted 9 lines · Jason A. Donenfeld
Quoted 8 lines · Bagas Sanjaya
Quoted 6 lines · Jason A. Donenfeld

I've got an overdue patch that I still need to submit to netdev, which I suspect might actually fix this.

Can you let me know if
https://git.zx2c4.com/wireguard-linux/patch/?id=54d5e4329efe0d1dba8b4a58720d29493926bed0
solves the problem?

Quoted 6 lines
Quoted 4 lines

The reporter on Bugzilla [1] said it fixed the regression, so telling regzbot:

#regzbot fix: 54d5e4329efe0d

That's not correct.

Yeah, the gitsha will only work when it's stable.

Quoted 3 lines

I tend to send patches to netdev@, not pulls, so the commit is going to be different. Just leave this alone for a bit and tidy things up once everything hits the main trees.

Kinda right, but otoh this makes things this slightly annoying bit harder for regression tracking. But as the patch subject rarely changes, this can usually be avoided by using:

#regzbot fix: wireguard: queueing: use saner cpu selection wrapping

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.

#8 lore raw
Quoted 25 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 9 lines · Jason A. Donenfeld
Quoted 8 lines · Bagas Sanjaya
Quoted 6 lines · Jason A. Donenfeld

I've got an overdue patch that I still need to submit to netdev, which I suspect might actually fix this.

Can you let me know if
https://git.zx2c4.com/wireguard-linux/patch/?id=54d5e4329efe0d1dba8b4a58720d29493926bed0
solves the problem?

Quoted 6 lines
Quoted 4 lines

The reporter on Bugzilla [1] said it fixed the regression, so telling regzbot:

#regzbot fix: 54d5e4329efe0d

That's not correct.

Yeah, the gitsha will only work when it's stable.

Quoted 3 lines

I tend to send patches to netdev@, not pulls, so the commit is going to be different. Just leave this alone for a bit and tidy things up once everything hits the main trees.

Quoted 5 lines

Kinda right, but otoh this makes things this slightly annoying bit harder for regression tracking. But as the patch subject rarely changes, this can usually be avoided by using:

#regzbot fix: wireguard: queueing: use saner cpu selection wrapping

Here's the final sha:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7387943fa35516f6f8017a3b0e9ce48a3bef9faa

#9 lore raw
Quoted 26 lines · Jason A. Donenfeld
Quoted 25 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 9 lines · Jason A. Donenfeld
Quoted 8 lines · Bagas Sanjaya
Quoted 6 lines · Jason A. Donenfeld

I've got an overdue patch that I still need to submit to netdev, which I suspect might actually fix this.

Can you let me know if
https://git.zx2c4.com/wireguard-linux/patch/?id=54d5e4329efe0d1dba8b4a58720d29493926bed0
solves the problem?

Quoted 6 lines
Quoted 4 lines

The reporter on Bugzilla [1] said it fixed the regression, so telling regzbot:

#regzbot fix: 54d5e4329efe0d

That's not correct.

Yeah, the gitsha will only work when it's stable.

Quoted 3 lines

I tend to send patches to netdev@, not pulls, so the commit is going to be different. Just leave this alone for a bit and tidy things up once everything hits the main trees.

Quoted 8 lines
Quoted 5 lines

Kinda right, but otoh this makes things this slightly annoying bit harder for regression tracking. But as the patch subject rarely changes, this can usually be avoided by using:

#regzbot fix: wireguard: queueing: use saner cpu selection wrapping

Here's the final sha:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7387943fa35516f6f8017a3b0e9ce48a3bef9faa

OK, thanks for the appropriate sha! And I'm sorry for all noises and inconveniences during tracking this regression.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#11 lore raw
In reply to Linux regression tracking (Thorsten Leemhuis)
Quoted 8 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 1 line · Bagas Sanjaya

[also Cc: original reporter]

BTW: I think you CCed too many developers here. There are situations where this can makes sense, but it's rare. And if you do this too often people might start to not really look into your mails or might even ignore them completely.

Quoted 6 lines

Normally it's enough to write the mail to (1) the people in the signed-off-by-chain, (2) the maintainers of the subsystem that merged a commit, and (3) the lists for all affected subsystems; leave it up to developers from the first two groups to CC the maintainers of the third group.

Hi,

In this case I had to also Cc: wireguard, bonding, RCU, and x86 people, since this issue spans these subsystems (I naively thought). Anyway, thanks for detailed tip (honestly /me wonder if I forgot this later, as is often the case).

Quoted 14 lines
Quoted 13 lines · Bagas Sanjaya
Quoted 3 lines

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 1 line

I've spent the last week on debugging a problem with my attempt to upgrade my kernel from 6.2.8 to 6.3.8 (now also with

[...]

Quoted 8 lines

See Bugzilla for the full thread.

Anyway, I'm adding it to regzbot to make sure it doesn't fall through cracks unnoticed:

#regzbot introduced: fed8d8773b8ea6 https://bugzilla.kernel.org/show_bug.cgi?id=217620
#regzbot title: correcting acpi_is_processor_usable() check causes RCU stalls with wireguard over bonding+igb #regzbot link: https://bugs.gentoo.org/909066

Quoted 7 lines
Quoted 2 lines

satmd: Can you repeat bisection to confirm that fed8d8773b8ea6 is really the culprit?

I'd be careful to ask people that, as that might mean a lot of work for them. Best to leave things like that to developers, unless it's pretty obvious that something went sideways.

OK.

Quoted 8 lines
Quoted 2 lines

Thorsten: It seems like the reporter concluded bisection to the (possibly) incorrect culprit.

What makes your think so? I just looked at bugzilla and it (for now) seems reverting fed8d8773b8ea6 ontop of 6.4 fixed things for the reporter, which is a pretty strong indicator that this change really causes the trouble somehow.

OK too.

Quoted 9 lines

/me really wonders what's he's missing

Quoted 2 lines

What can I do in this case besides
asking to repeat bisection?

Not much apart from updating regzbot state (e.g. something like "regzbot introduced v6.3..v6.4") and a reply to your initial report (ideally with a quick apology) to let everyone know it was a false alarm.

OK.

Signature · 1 line
An old man doll... just what I always wanted! - Clara