Article View: linux.kernel.netdev
Article #996Re: [PATCH nf v3 1/1] netfilter: x_tables: avoid holding mutex over faultable user copies
From: Florian Westphal
Date: Fri, 09 Oct 2026 00:07
Date: Fri, 09 Oct 2026 00:07
19 lines
5478 bytes
5478 bytes
Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > The ebtables GET paths use a separate ebt_mutex and are outside this
> > IPv4/IPv6/ARP series.
>
> I keep spinning on this, and I am not sure this fix is the right thing
> to do. There is no single caller of this pagefault_disable/enable() mm
> subsystem function in the net folder.
See:
https://lore.kernel.org/all/CAL4Wiir+CBGE=hXxHEBkyk0Au9B6G3=AdHFd5botrC-FF5BM5w@mail.gmail.com/raw
Quote:
| We have many places where copy_{from,to}_user() runs while a mutex or
| a socket lock is held, and some of these locks are global.
So I would not spend too much time on this, especially not for the
xtables get/setsockopt APIs.
Technical Details
Message-ID:
<asgwR9LsGCEMolQX@strlen.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343367-linux-kernel-netdev=dewy.ruReferences:
<cover.1789885804.git.zihanx@nebusec.ai> <f88fc502b17b4022105a99eea407525807ee573e.1789885804.git.zihanx@nebusec.ai> <asgtQ3E2LVWqfV8D@chamomile>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-343367-linux-kernel-netdev=dewy.ru From: fw@strlen.de (Florian Westphal) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH nf v3 1/1] netfilter: x_tables: avoid holding mutex over faultable user copies Date: Fri, 9 Oct 2026 02:07:35 +0200 Organization: Usenet Network Message-ID: <asgwR9LsGCEMolQX@strlen.de> References: <cover.1789885804.git.zihanx@nebusec.ai> <f88fc502b17b4022105a99eea407525807ee573e.1789885804.git.zihanx@nebusec.ai> <asgtQ3E2LVWqfV8D@chamomile> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1000871"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:xUKBEskxvDQooMKArLo2ReTFedA= sha256:QKSOrM4HKuWE7RDaFcZ+2Y4k5REFgOuD5dRT7pj9lms= sha1:4cN+1XR2UMrSPuxVpRAtT60ITTM= sha256:Dt4Z5ONBKrtrgfu3mgY1K8A/x2rxhxrchmzSVy87zcU= Content-Disposition: inline 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 C5CB510F578; Fri, 9 Oct 2026 03:07:59 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.651 X-Spam-Status: No, score=-0.651 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no 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 yCFgtHnOJkPy; Fri, 9 Oct 2026 03:07:51 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-343367-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=strlen.de X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 40D6B10F56F; Fri, 9 Oct 2026 03:07:47 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id C051928FDF; Fri, 9 Oct 2026 00:07:42 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C04D3D3B3; Fri, 9 Oct 2026 00:07:42 +0000 (UTC) X-Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90320DF76; Fri, 9 Oct 2026 00:07:40 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791504461; cv=none; b=SZcJatLGkVulmmErl76aWIAmdyxmVdyJjXLx91QekFR5zWsP99jbl3HkmJuxMhNOWdrmSynm3+r57rrT2jZetP084+46XNDukVSwtu1ux3z2crVc1QxZw4uCPYpdcXyZBE3XMyLJO25+L0FtzQ9V9g8INARwALsuyEq9bfLVRpI= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791504461; c=relaxed/simple; bh=rRMl1pE8djftn9sW+5YV9g2vC/AZMg9rSDmuR8ruISs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PI8Df35dbyLdZBvRHt39EHCoNGQsilqptUo7pVvlXSvO6Uzm3U+8HyCjaJNGLVJeT/gq3il3/YEY7r+LoMvyQ0p4ZwLmqKrXh35OdNoLSzPHh2xfAZ1iZ8Dah9TwQ7jittCdGyGSf8FnqGKjulB/o9N5mmp+HRJqOEK4v7of+Xg= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.client-ip=91.216.245.30 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de X-Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id E969A604C4; Fri, 09 Oct 2026 02:07:37 +0200 (CEST) X-Cc: Zihan Xi <zihanx@nebusec.ai>, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, phil@nwl.cc, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <asgtQ3E2LVWqfV8D@chamomile>