Article View: linux.kernel.netdev
Article #12312Re: [PATCH net] netlink: Do not call the unbind callback with the table locked
From: patchwork-bot+netdevbpf
Date: Fri, 06 Nov 2026 21:00
Date: Fri, 06 Nov 2026 21:00
30 lines
8905 bytes
8905 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 2 Nov 2026 12:09:29 +0000 you wrote:
> When netlink_bind() fails to insert the socket, it calls
> netlink_undo_bind() with the table locked. genl_unbind() then takes
> cb_lock, while genl_unregister_family() and genl_register_family() take
> cb_lock for writing and then wait in netlink_table_grab() for the table
> users to go away:
>
> netlink_bind() genl_unregister_family()
> netlink_lock_table() down_write(&cb_lock)
> netlink_insert() fails
> netlink_undo_bind() netlink_table_grab()
> genl_unbind() waits for nl_table_users == 0
> down_read(&cb_lock)
>
> [...]
Here is the summary with links:
- [net] netlink: Do not call the unbind callback with the table locked
https://git.kernel.org/netdev/net/c/a36b9e205cb3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179399880568.868572.9395837242230797060.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358167-linux-kernel-netdev=dewy.ruReferences:
<20261102120929.4077030-1-anilkaushikwireless@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-358167-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] netlink: Do not call the unbind callback with the table locked Date: Fri, 06 Nov 2026 21:00:05 +0000 Organization: Usenet Network Message-ID: <179399880568.868572.9395837242230797060.git-patchwork-notify@kernel.org> References: <20261102120929.4077030-1-anilkaushikwireless@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3973939"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Hut7SijV5xNAp1I5OQ+WYh4eryo= sha256:FHFOVJYLwE2W0698fWpM+twDJddBv0Ce0BoYDQ54CT0= sha1:suT63hEdeW291uP+am3WqX4rr7c= sha256:lR0kAqf0sQmLptBTAqHjU8/twxhEiPoQ5k+W9ISSlBs= 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 50956113326; Sat, 7 Nov 2026 00:00:28 +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 rAksYLCoFrJ3; Sat, 7 Nov 2026 00:00:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-358167-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 179C7113320; Sat, 7 Nov 2026 00:00:13 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 43298601BC7; Fri, 6 Nov 2026 21:00:09 +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=1793998808; b=cnicKerzTxWrmujwnO5bZfxTWxDX1hrqYbsGZkV4IeTOlz6NtX7EWYjWBIBbyQZ2M8Do n92FVSuVw+LuykC7tv7XfI/j8JqH/hccQElzVWtax2/JEkJn400XSPAqpLjnESJBKa0AR 3K9B5a0tqSnc+anxQ2yOXEA8aTmJ+icrq2dh+xAfUY0ej63UL6hq5hwOrGiMv2H7OWYzq Bwe+70Jmu4hLaW7uEiC3osN6uOE0g2FhActGgzpMaKsi0LRHoElgnLJp+YBQLUuyILok3 q1BXc/vq18h+aEqsvRHD8zKLUztcx1pzcqiYcqub11lHCTGlLIj6gsWPzQB3N+80sAw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793998808; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=VZPLtbjG956BLbDUCM34QjUZeBu6jMBP0p7YG8UyO2Q=; b=Cl8EkwJimD2BqbemwXLPcrrDBPxqroZK24I0UVMe2qL0Hg2DR54A2U565rOuUuZMPhPO x3LxsHVxGrjoYlUlpPyJzGrhCQ581H3SGQfbHx7D15Gue5mCtYJEgYkwmzo992qfEfhox LeSf5U1thVkaC3NXIc3pv2U9ZfTkzCImlCvIrY21THvHXrE6MY1gynmb0VLeiP3QWpgft oXTBawB90jqMbQ3ZPxcSuU+rPMozbc9U8XbPZTWzPdJlxjDLCk83ofi/V3iIvKT1vWYmd FjaxRqvSpHSyjjfEibVs6s+xyVqxFhhB4zVa3+xXS8wIxGXjNZZBwO9PqQb4Lcuk5Pg== 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=GBgHSWVt; 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 B8183606A333; Fri, 6 Nov 2026 21:00:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GBgHSWVt 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=1793998807; b=sjLHWD4GanUaALKFjYUJvy17cVQI9tW8A4yEd7c4rHnT3xoTExEI9TPt5uwkureKMTpc oFGeyXIWSrDJPs0nqF0G4Xrj4XmMcEp1jn/epLJbhQnOuw3+i6d3l/rtnB6IbnLyt2hkT +h4V8FfLR+ADqIw8oA9wCvD+PP2jtsbYMYUMaCXuCnSGDsJi3JQGTrrOT6lRlPC9yZswb nZcWg4LlDIn/aoBpBG0+29MUNxSeyew2oQO9noG5UqO+RbP38/Pmxin0g0fIMO5N+uUfN rGrowL9tgGoPMgPqqsT55aUwbzyT1uFs4lW1htXZcvf56MKl22xINJLdSpoKwLv118A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793998807; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=VZPLtbjG956BLbDUCM34QjUZeBu6jMBP0p7YG8UyO2Q=; b=gM8+jNyWaX4e60T+5i4GBsm9if9QHKWF00CCllmCBkxfhMyRQSrxkRbFXqYk3xLEsuVy GvJZHKwWzwLxnhzqKlHMKK21CP0CId/QMxGBc1/IahaUna4qkJyR5vZgX4LE6fGs8Bese QCZaRKzwRJou8/z+Mb7rHDBxhw2XxP+HLeNdiHht2SkawJkQuGKAt8kHkb26VaSumxb0d PSMXVv3I0BskmoCK2taR4JBbZ9LdbT6pv9jS5XOxKDbGCLK/upQM7tjXwRkfW2WL2/rT9 yOum3QsBY7gSpogAI4YwhhCTeJ6LHIqzGs+bf1uer28C04xQlGy5CZeudPWcx8WPzog== 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=GBgHSWVt; 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 9A106606A334; Fri, 6 Nov 2026 21:00:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 363691F0089F; Fri, 6 Nov 2026 21:00:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793998807; bh=VZPLtbjG956BLbDUCM34QjUZeBu6jMBP0p7YG8UyO2Q=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=GBgHSWVtRM5OjnwcOu+fr7fbDr/83x4gUDzrUdt/McmdvpdNE02l9X78pJIceVxrD POi8HUJ7bbY1TX56VunTQ4yotbavYrWh5q67kylklbrEDCjec2cZ8QARjz6kLrw1dd rcZ4gW4kZg8wjU1ZZoryn4Ep0e5yR87aL/njDmxAm648cWEb77MWY8VVAUmWWe/Jnw 3lfT9AHKXOEZsbWDrZ2pKyVfjQMQol2Ln3vBN66HClmR8wDRRzeQjgpAdlBIBWJeQk KPasrEbNxfbEze7OZ9Xvfo2Cv008IIR26oHT7AklSJgwimh+mNm46Zck7q+IpxasVs MRiLBnzQTSZKg== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 210C73A549A5; Fri, 6 Nov 2026 21:00:07 +0000 (UTC) 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: <20261102120929.4077030-1-anilkaushikwireless@gmail.com> X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, nicolas.dichtel@6wind.com, linux-kernel@vger.kernel.org