🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8373

Re: [PATCH net] netfilter: xt_recent: do not call remove_proc_entry() under recent_lock

#8373
From: "Cen Zhang (Microsoft)"
Date: Wed, 28 Oct 2026 22:01
19 lines
9002 bytes
Hi,

This was found by LLM-assisted code review.

We confirmed it in QEMU on mainline f0100363d8c3 with a reproducer:

- With DEBUG_ATOMIC_SLEEP enabled, we see the "sleeping function
  called from invalid context" warning quoted in the commit message.
- On a non-debug build, we see "scheduling while atomic", followed by an
  RCU stall, and the netns workqueue remains stuck.
- After the patch, the same reproducer completes and reads
  return -EIO as expected.

We could not find a syzbot report or an earlier public report. The
reproducer is available on request.

Thanks,
Cen
Technical Details
Message-ID: <20261028220136.50921-1-cenzhang@linux.microsoft.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353051-linux-kernel-netdev=dewy.ru
References: <179322419201.3327.14972314584790214914@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353051-linux-kernel-netdev=dewy.ru
From: cenzhang@linux.microsoft.com ("Cen Zhang (Microsoft)")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] netfilter: xt_recent: do not call remove_proc_entry() under recent_lock
Date: Wed, 28 Oct 2026 18:01:36 -0400
Organization: Usenet Network
Message-ID: <20261028220136.50921-1-cenzhang@linux.microsoft.com>
References: <179322419201.3327.14972314584790214914@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1881081"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:+rTqZsIb+7jgDGI2avJtcGLkkbw= sha256:cPRpWP8Ry/cWzLSbid/GcC5tKXBR4zyj6rr5V22pwz0=
	sha1:ml1VDUNfi5+P1/kAi+E/BE+UXdY= sha256:ypz0sr3GOM6e3S5dr75NslGGsHUGM/K4Mu4ZQlS+UzY=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 00DB4125C4C; Thu, 29 Oct 2026 01:07:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.microsoft.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id NYGS4LwmqTXt;
	Thu, 29 Oct 2026 01:07:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353051-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 59FB4125C44; Thu, 29 Oct 2026 01:07:15 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 15A722B1E6; Wed, 28 Oct 2026 22:02:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1793224920;
	b=45+MAKSv0NRGTo3Fi5koxVr4WIVVhuySMvu7wXfZbGl0pl7qLy0Y1ItGB5RZpRfoZFjm
	 A0rBZQ+++tYo0K/AZVWgetopSE+i+wgd2vFqK36n0ltv83X9wp/iIWTs7z5Iwu3E8urg9
	 GbYJpR9IcYK9cfMQB9zwPxRAQbx4T2IyIMHfEF1Wx2SHuS/wwELFJgCEOUqh1Cu1w7urC
	 wTsPsuwqhq1ZCxW7cM7Kpj0FvMFEYamOOk0G9FF/9b7DcKPD9+xT+k8QFyRLZymaH/a+g
	 Fc/Yji0yrjXC9XLhgsDklnGGuukfWleATUXb7dkvUMkWp008z5yo3C56y8lVGJJ1z8g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793224920;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter:
	 DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=3Rv7tQbRsvuq3WAIi5GyIt3wKvxrSuLpMHj9oOG4vyY=;
	b=wdmVTSnRN9qnCykomQAFAK6WL1NSSc/k2zCLNL9flM/r+2YzSAKrhC4hvvHftylhW4AZ
	 svpmHYB9G3v8IPZmF7r8Tj3+IVWhy+tmD5q5lQxAdbLRvew6D4oYVqB7B4hRBiYKqOsuH
	 aht7pqw22/zurZmVj/CtpV/IEp4zOQKcNA8QknUaCe2IS8FnbgzgaJBgI3qrfUOtFT29T
	 zolgxRAHxZReCGhUp1BvxMx3wRmcgYBXAx83BwtmQpXph5vvPUsjRe2/RB/8ny7BbTD69
	 aQzETe0IrBurbGlWtoT/8YhgALz1mcdc9/a4Z3yUoo6SBtNcf93n5RT5hCSzGnxrNyg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=ktV5xYwt;
	dmarc=pass header.from=linux.microsoft.com;
	spf=pass smtp.mailfrom=linux.microsoft.com;
	arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id A4BBD606A332;
	Wed, 28 Oct 2026 22:02:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=ktV5xYwt
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793224914;
	b=Q0Y14SJ4a0vMpGuejlCm23f//1h0zso1QVvOOwTqMY9RiD6UFoft7RiIUHXPuCHWBA0s
	 Pp2yXnZcvgQN0PbIolcADV0roZDQpfrF34uXTrvQPrBQTFKnD77YugZOENtt3TFsHun7a
	 7a1aDrNiuQCfCKomAC+teoyOTs87CAbobtEioSEHYK6XGXaIXfJjtj3gHbPj5kwqGQ4bU
	 flmkjHoiNmBbuqQnx6IjeY9moczGMyUKuXyt7BKIQVzkCZykM1xFS2sDxy43Bv2JKZakG
	 HAbUWCgXK9E1Q3OiQaN6UuHfotEnsWoB8qk/W22lthlbFFrGgvtroYYAiEARF/ggflA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793224914;
	h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding:X-Spam-Status:X-Spam-Checker-Version;
	bh=3Rv7tQbRsvuq3WAIi5GyIt3wKvxrSuLpMHj9oOG4vyY=;
	b=5CSX7tAgQo3jRCPcrZuiIKetOjLUOUfqiJ0dX+K8C/YeBpbsyoqQoNslouG8Tz381Nxp
	 8Uui3bjT5Cuot2rW7bTd7RrGbW8YaDn86TWkqdMCYHtSRWzsLnSJQU5GQnnPecytqgkPn
	 picf2jjJ//dPCZjsZ2NjiAMLYsW6skGAXrdLEsxp5cHuFMEmxc28cTolhSeGwIu6RbUx9
	 vQN3A57JYFnC0FgRBp8yPBuZcnurT5O5m9dZ1Clq5vgkNuLUJFZRqa7piPCh88iKyIM6P
	 FY1b4BAQo6t4f02m5j4ROA6VLSKZxDKP/5y8xoRs6g3wvkuLu+oQ0aTwdKFy0azQQXA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.microsoft.com;
	spf=pass smtp.mailfrom=linux.microsoft.com;
	dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=ktV5xYwt;
	arc=none smtp.remote-ip=13.77.154.182
X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 50D66606A322;
	Wed, 28 Oct 2026 22:01:54 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 50D66606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com
X-Received: from mac.lan (unknown [4.194.122.170])
	by linux.microsoft.com (Postfix) with ESMTPSA id DFD2020B7167;
	Wed, 28 Oct 2026 15:01:32 -0700 (PDT)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DFD2020B7167
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;
	s=default; t=1793224902;
	bh=3Rv7tQbRsvuq3WAIi5GyIt3wKvxrSuLpMHj9oOG4vyY=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=ktV5xYwtlIvls/LNLrf7a+eEGSve62NydD225Q+Xq0stHH+N8u5g9QcJY1H2mlAhN
	 2eF0I8FWVp2MKrCR10ckmacldRzPiFbQzDKpXruD1l3P4eZ8jf2fhgfkeKTeclbXq2
	 qjNUWkdVCA5jsvwh1N0rU43LYLxzaCNujELEZjCc=
X-Cc: Pablo Neira Ayuso <pablo@netfilter.org>,
	Florian Westphal <fw@strlen.de>,
	Phil Sutter <phil@nwl.cc>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	"Vitaly E. Lavrov" <lve@guap.ru>,
	netfilter-devel@vger.kernel.org,
	coreteam@netfilter.org,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	stable@vger.kernel.org,
	AutonomousCodeSecurity@microsoft.com,
	tgopinath@linux.microsoft.com,
	Cen Zhang <cenzhang@linux.microsoft.com>
X-Mailer: git-send-email 2.55.0
X-In-Reply-To: <179322419201.3327.14972314584790214914@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list