Article View: linux.kernel.netdev
Article #11655Re: [PATCH] netfilter: nf_tables: fix pernet use-after-free on UNREGISTER rebroadcast
From: Florian Westphal
Date: Thu, 05 Nov 2026 11:58
Date: Thu, 05 Nov 2026 11:58
14 lines
7385 bytes
7385 bytes
Henry Martin <bsdhenrymartin@gmail.com> wrote: > > + /* netdev_wait_allrefs_any() rebroadcasts NETDEV_UNREGISTER > + * while waiting for the last references to be dropped; the > + * netns and its nftables pernet storage may already be torn > + * down by then. > + */ > + if (event == NETDEV_UNREGISTER && > + READ_ONCE(dev->reg_state) == NETREG_UNREGISTERED) > + return NOTIFY_DONE; > + 3x copypaste of same arbitrary conditional :-(
Technical Details
Message-ID:
<auxvTfxdTgYnZ0Wn@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-357295-linux-kernel-netdev=dewy.ruReferences:
<20261105114817.3033625-1-bsdhenrymartin@gmail.com>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-357295-linux-kernel-netdev=dewy.ru From: fw@strlen.de (Florian Westphal) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] netfilter: nf_tables: fix pernet use-after-free on UNREGISTER rebroadcast Date: Thu, 5 Nov 2026 12:58:05 +0100 Organization: Usenet Network Message-ID: <auxvTfxdTgYnZ0Wn@strlen.de> References: <20261105114817.3033625-1-bsdhenrymartin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3631818"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ONlqEwAn/Y5vLNDTA/bVKPniWbQ= sha256:i+R+t7T/psIeUrXKPQaMRU3l9gKoi/7DRqVaa+4peEg= sha1:pnh5T4mmH7tSDqvt9Y14s+hbbJc= sha256:g+dpwbgf031UF2trE+QSUvG7ywFk38cIftTTApO7fEo= 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 05047112F5D; Thu, 5 Nov 2026 15:08:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.951 X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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-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 A2oZi66BHPpL; Thu, 5 Nov 2026 15:08:12 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357295-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 42286112F5B; Thu, 5 Nov 2026 15:08:09 +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 C9BA73C3C8; Thu, 5 Nov 2026 11:58:41 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793879901; b=OHPBqr8CUS6q4Z9QTwyI2c8WpUovQrtSPP3jWq1TgM6d9k/e2UNgH3sLLC4uAj3fgIQI JAiUI4yqmzlxgUW2EtO34UQTfqW5ZKUj07nZH/yE92y3kSQUdEo9yDk9cv6mZ/Vgpwf4m ASFAC/CCOAdAXDZrDE1peatx0EEEkkzeceUSNhYuD3Ug7dUHalc6s2+1KqMxeNl5Asw5Z kHBXs9f1a8zf90uOHQKMjbkDsxUrAnxReKf3h9tgkYLnVY37xCbCZYPzrqUduO5d/wWyQ OCu7GvzJa69mrNd6FusDg/OvhuY0TafTvh0LBMN4pKdFoEL3odUntL1HCY+MMwNcn5w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793879901; h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject: Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=SpfLuW96ysa+N5RDQ9Bs8I6IRaYlyOe+7/4nH7BbGf8=; b=b0qlOgBYTPIRVXPMqpb4oQNkNEBcnI8IWU+rkaoEVnJykFJ1PMnlFazjinj9pEJ80wIT E0oT/zcHjxeRUEjvPNI+dd7l4OTaGivW/lztzEGNS2ih+vE9cEuHeufuNRxe2Wg3Q0hDK 04U9XqQoD02yHMX1KPy1uZyIjsiMbkVkpL0s8CJdLrHckuHDxopHTiLBJ8uNRo6EXD4Jz Z6/SIm4N0CKMw8Cd53aXS6oglzQZUXS83QXnRD2McrR68FdJPioxHzLrhpgXDc8GwJilD h9p+5vy79fscwKVapiosJ+e9YzH1Sfv8dcy9s3cx7M9/TbAcoiOgJjN8hbrFhQTbSXQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=pass header.oldest-pass=0 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 3D9FD606D832; Thu, 5 Nov 2026 11:58:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.216.245.30 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793879900; b=VpajqGtURlvglb09UZL1Bus6RgM8qGFhpViXmY4Zeg6NjzIRZhy0t8gsd6Mr5ccC0dXD noMz3RcG3ZoqiXUm6UcpdsVwOuid7gJLupLp3Tpj0EoOi7URVbCvzNYSHNjNNh5li/4kJ 4sMbfKFtewOU4pT2GDLZOQPhCm0cDRffZrIwB+Kzh/2Z5ksSniE49b3I3KUECeGx2wXAC 7ToesWjie6hw09h6jwOtRAAqdXr/J3M8R2bf6stAojDP3BwAstk9R3f0X6gKszBNbPbdO 9t0bZqRDSCzxsGfwLqh0WSh+jCbqU/BBkAWlXzK95hhreqZL1eJW9ASCVqorjMGfDxQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793879900; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=SpfLuW96ysa+N5RDQ9Bs8I6IRaYlyOe+7/4nH7BbGf8=; b=F63On7d2iFmAJfUVzcglSBLeZV+7MCv0ZhoF1icki3JEwcdE0/Niu108srhkwyelA/EY k0d+z4NIPKtGHA+jYUwOA+romT23LSug1Dn++EBn/1p6nNrloybaRbfSYoLGWbfESaPpK 7QmrokeyYwRjujXjqNECl8vhDHN+FM1LBi2VNzQk/1TQ1QaOBfT+VZ2xJZPF9gBYx4pnJ ez+dhMyIzG7N6RzdIIkPbpDOIm+4T/U/qqnKZyt6YnStyVLYKDK7FUS2Bcwd3YNfkMZ1K ecWjC8UoVen7jr8haFmoHyACIis171k9jPioIvnsdugXQeU/dKqJfnhqU46RdViYUOg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.remote-ip=91.216.245.30 X-Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24168606D816; Thu, 5 Nov 2026 11:58:18 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 24168606D816 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 A893760293; Thu, 05 Nov 2026 12:58:10 +0100 (CET) X-Cc: pablo@netfilter.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, stable@vger.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 X-In-Reply-To: <20261105114817.3033625-1-bsdhenrymartin@gmail.com>