From d at ilvokhin.com Wed Nov 4 11:22:08 2026 From: d at ilvokhin.com (Dmitry Ilvokhin) Date: Wed, 4 Nov 2026 11:22:08 +0000 Subject: [PATCH RESEND] wg-quick: darwin: fix set_dns() and del_dns() race Message-ID: <20261104112208.46921-1-d@ilvokhin.com> The monitor deamon restores the DNS servers by running del_dns() from its INT, TERM and EXIT trap. Every route event also schedules an ALRM 2 seconds later, and the ALRM trap runs set_dns(). If ALRM arrives during cleanup, set_dns() can run in the middle of del_dns(), and the DNS servers may not be restored after the WireGuard interface is removed. Ignore ALRM in cleanup signal handler to avoid this race. Signed-off-by: Dmitry Ilvokhin --- src/wg-quick/darwin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index 0179afb..20a21ce 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -323,7 +323,7 @@ del_dns() { monitor_daemon() { echo "[+] Backgrounding route monitor" >&2 - (trap 'del_routes; del_dns; exit 0' INT TERM EXIT + (trap 'trap "" ALRM; del_routes; del_dns; exit 0' INT TERM EXIT exec >/dev/null 2>&1 exec 19< <(exec route -n monitor) local event bpid=$BASHPID mpid=$! -- 2.54.0 (Apple Git-157) From netdev-bot+sinfo at kernel.org Thu Nov 5 14:14:42 2026 From: netdev-bot+sinfo at kernel.org (netdev-bot+sinfo at kernel.org) Date: Thu, 05 Nov 2026 14:14:42 +0000 Subject: [PATCH net 0/2] wireguard: memcg accounting and initiation race fix In-Reply-To: <20261105141006.95083-1-alex@badcode.im> References: <20261105141006.95083-1-alex@badcode.im> Message-ID: <179388808273.488859.7701559647747958374@kernel.org> Hi! This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information: - How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan. Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then. The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.