🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23664

Re: [PATCH 6.18.y] netlink: do not free nlk->groups while lockless readers can use it

#23664
From: Sasha Levin
Date: Fri, 27 Nov 2026 17:00
10 lines
7814 bytes
> netlink_realloc_groups() uses krealloc() under netlink_table_grab().
> Whenever NLGRPSZ(groups) lands in a different kmalloc bucket, the old
> bitmap is freed immediately.

Queued for 6.18, thanks.

-- 
Thanks,
Sasha
Technical Details
Message-ID: <2026-11-26-1-daily-reply-0007@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372867-linux-kernel-netdev=dewy.ru
References: <20261125192338.48141-1-artem@trailofbits.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372867-linux-kernel-netdev=dewy.ru
From: sashal@kernel.org (Sasha Levin)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 6.18.y] netlink: do not free nlk->groups while lockless readers can use it
Date: Fri, 27 Nov 2026 12:00:55 -0500
Organization: Usenet Network
Message-ID: <2026-11-26-1-daily-reply-0007@kernel.org>
References: <20261125192338.48141-1-artem@trailofbits.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="778251"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:uZWAMFcY+XxP8ta85AFo0KXxIxI= sha256:TXDOiQg6sqG3zqH9WIluWPd0gtSs5MNUl7u+LpM9tok=
	sha1:D9Z97n1STcpEBYiyzzaAUiO0UV4= sha256:TElfDySc+JG9b1apc5sqZOzP70UWCIa40hkZ8ySAki8=
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 D2172125F61; Fri, 27 Nov 2026 20:02:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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 (2048-bit key)
	header.d=kernel.org
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 vA1Ly3EbDQrt;
	Fri, 27 Nov 2026 20:02:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-372867-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 4E28B125F62; Fri, 27 Nov 2026 20:01:50 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 7C93C29B35; Fri, 27 Nov 2026 17:01:46 +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=1795798906;
	b=2z9b+3dwtnAoPAanTH2GRnxlCEID574Ru8hXfUViAR+lJKDhP/vCE5QZEAjcrvqImTKJ
	 FFPrMrbmnKgmE0XQ4MGfT5z+xcyLntCss5xCrLMUCEzx9LckeHCGGOwgOeFYe0p3X9Tu3
	 eBqEr/P4gdLCqgJrZPL6mkFZnR3Pa9m3Vbz74ZhyRz5sm+yBECD1aXZGc9lm+Wk9vZljI
	 I/ZFD7DvH0xmL80YEmSMy9arKZyY7UeMKY3FGnks1BZ2QVtaTFYPCRGLXvYbTV5d9qXMl
	 lnuXQgT96bKS/imrFmq1GyEMTNgglp3P+fa/P/7ZHAnRxG/zbjMiZ++TyoeXJUvdYzQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795798906;
	h=X-Original-To:Received:Received: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=gmDBznwXkxDqv5A0rN/N1rTTmTG+4Cws3rW7DxhgFTc=;
	b=MRDGQqRXpHJTiLpDUN5inJxr0AfPk7L/41z/Ga8zRRZfdkZa5poUBigThVWIHta5YMKc
	 ia0RQ5swnRwXrUmbUxkXh2k0V64YbT4yDrc6onHbkBPGbR4P1xX26IMkxw5m+1GgUP3ce
	 idGF3kzt9bAbCqpJ7VJZKRsPZKQoEP5uMmPZX5GuSmzuYuN2G3Sjq1SHLwjRDfK8fkZih
	 yhlOjZ5CfgxU7jTHIet6NbbKmABrbyYX9KRB+05E26Q8D8WUdgQw5Je/8c7/Q18kHkqkb
	 bnUtQASKsN7BOUsbsaeL/wWLn5nyX0mMBCfuXBHBbHcDN2xYUv+CBCL2jaItODIfHgw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hY8qt++w;
	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 3D2F7606A31E;
	Fri, 27 Nov 2026 17:01:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hY8qt++w
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795798905;
	b=ZsVHOYL7efHJj2xFxPHtuhVFweC9TohfCr/gD1NfbGaqY5Hg2s0R7l0B+GVhXhOFhnww
	 q6jLhPtSijyL4dil9roAP77kvICY3fnY75uvK0+eDNvR+e2CmFHXlV3lKT9JyrVzG4+Jp
	 HBFxa/1z3xCSP4oPgBLWNQwzPwizaeyvV1Bl7U0cKdo2tznBIIcKToBcm8LNVePNvawqR
	 GaKZOSCX6gDbaqqJ33m2PvyNNbcZYZP2R08mzqa9af6JjKQ/C0lbZroDmMjM29jZ/bcO1
	 g16NFO8vd36aMr6+t4hS1/o40ApbMSexj+tlWdMGlzgldE1XKtIbMzmkQhHa0ILVIGw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795798905;
	h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Transfer-Encoding;
	bh=gmDBznwXkxDqv5A0rN/N1rTTmTG+4Cws3rW7DxhgFTc=;
	b=TmDBH0L+8DgWSrl6kwyAOKJntTTge8+7HCcflb3lK/EC0zT+Ia6l4Jl+owNKPkwGklWD
	 Woy5gchEl9ATZfMlwLfOJpz+7YLd13V++S/rg2DXCy4fzydq7O3tSKovcUxI5huUh0J20
	 CnA2Lt038E5gnvAmhhCnkk6oFgWQe5U+oceOTX3SXpgf0q7aGxtVCSyJXStGUbI3Ji06s
	 a4nw229ifNRnVwQnqCKxX/1V2m3c1dyGMq3jkX9iXJVMy2D/9yrAa8u+U4S3FckYwGWim
	 b4SnMro1a44S4u8g+2EUH0TiSf9MKDXwQk+ijSUh9ukYwx6cwV/etcJowxJHewQgo/g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hY8qt++w;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EC8C606A331;
	Fri, 27 Nov 2026 17:01:45 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D55B1F00897;
	Fri, 27 Nov 2026 17:01:43 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795798904;
	bh=gmDBznwXkxDqv5A0rN/N1rTTmTG+4Cws3rW7DxhgFTc=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References;
	b=hY8qt++wozYsI/i58rJEucUjZdHw2uPO07CMyoO9HTLBYp+RrXuPtPqNY7jT0qEz7
	 LCJvFY9tE2VGu4mSj7XVlNS5j0aIl3lHf6mqPLZxGmH0tMs9MEifwG8ByYQRn+3wZm
	 L5nL8mLEPHEhpAemFmr7SyExiUCZfapU30baz/UJFon+7xetADEBsVpystDsMimByU
	 d8lDKV3ykGHdHfmltXlhHG6smRrKx4WR6FgzAbL7nUSppQZczqhvDkLBy7BhWEcaFb
	 AqUGYbEZ7l74ouwbi62PEQLKgsyusbw+Ij1tPtw4WBZP+4oMjwtv6rXPJlO9PKxBrh
	 hkbB7wt5x4Q0Q==
X-Cc: Sasha Levin <sashal@kernel.org>,
	davem@davemloft.net,
	edumazet@kernel.org,
	horms@kernel.org,
	jamesburton@meta.com,
	kuba@kernel.org,
	netdev@vger.kernel.org,
	pabeni@redhat.com,
	Artem Dinaburg <artem@trailofbits.com>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <20261125192338.48141-1-artem@trailofbits.com>
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