Re: [PATCH net v2 2/2] wireguard: selftests: remove a peer under load

From: Andrii Pasichnyk

Date: Fri Nov 27 2026 - 05:00:02 EST


Sashiko AI review wrote:
> [Severity: Medium]
> Does 1 MiB leave enough headroom for what the new loop can log?

In the runs I made it stayed well below that: about 217 lines per
removal on average over 200 removals, and 340-400 KB for the busiest ten
in a row. But the worst case is what you computed, so v3 raises
CONFIG_LOG_BUF_SHIFT to 21.

> Would setting a non-zero message_cost while the loop runs avoid relying
> on such a thin margin?

No: the "Keypair N created/destroyed" lines are rate limited by the same
setting, and the object check at the end needs all of them.

> [Severity: Low]
> Could the commit message give the detection rate with the default
> NR_CPUS? Or it could say that NR_CPUS=1 is needed to reproduce the
> regression reliably.

I only have single unpatched runs there: one with 2 CPUs failed, one
with 4 CPUs passed. v3 says that NR_CPUS=1 is the configuration that
checks for this.

> [Severity: Low]
> Does anything confirm that the peer is actually under load when it is
> removed?

Not in the script. In the runs above every iteration had an accepted
iperf3 connection before the removal (10 of 10 and 200 of 200), on KVM;
I have not run it under TCG. I kept the loop minimal as Jason asked, and
can add a transfer check if that is preferred.

Thanks,
Andrii