Article View: linux.kernel.netdev
Article #6248Re: [PATCH net] net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference
From: patchwork-bot+netdevbpf
Date: Thu, 22 Oct 2026 00:30
Date: Thu, 22 Oct 2026 00:30
24 lines
8880 bytes
8880 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 16 Oct 2026 19:04:21 +0800 you wrote:
> The driver assigns netdev_ops after hbg_init(), but hbg_init() calls
> hbg_mdio_init() -> hbg_phy_connect() -> phy_connect_direct() ->
> phy_attach_direct() -> phy_link_topo_add_phy(), which invokes
> netdev_need_ops_lock(). With CONFIG_NET_SHAPER enabled, this function
> dereferences dev->netdev_ops->net_shaper_ops. Since netdev_ops is still
> NULL at this point, a NULL pointer dereference occurs.
>
> [...]
Here is the summary with links:
- [net] net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference
https://git.kernel.org/netdev/net/c/9b8ae9aaa1b8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179262901677.1378903.766655502279729876.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-350323-linux-kernel-netdev=dewy.ruReferences:
<20261016110421.2288670-1-shaojijie@huawei.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-350323-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference Date: Thu, 22 Oct 2026 00:30:16 +0000 Organization: Usenet Network Message-ID: <179262901677.1378903.766655502279729876.git-patchwork-notify@kernel.org> References: <20261016110421.2288670-1-shaojijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="95672"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:pgBzC4FrhmX73DmNLnmo+mdFu5I= sha256:pWrxH+HT8k3VTe+p/hOKliH/Zo1SVpwyAWhVDHQDVuc= sha1:NcYuvsp+hZU9EGDd3AXPyRBe0H0= sha256:IUJBs1rUEe6h2FuHaHcsn55v56dF41d8hdO0AKgb764= 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 1EB78111169; Thu, 22 Oct 2026 03:33:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 EVl6v56sMtMl; Thu, 22 Oct 2026 03:33:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350323-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id CB7AE111167; Thu, 22 Oct 2026 03:33:36 +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 BACB73F4F7; Thu, 22 Oct 2026 00:30:19 +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=1792629019; b=qRArD/he3717WOwZFnhUvIDLzqmKryAsmvHXNoU6sc9W2gNgzZD3Q5yCtB+5aF7wu7kB HnKwxQ7t5Th8wcc8H8rcC1fQ++aknQxGBAZgQ0lAYaYkiIZ0PqfiKBvBMBkPKmvnYIhbp /p9ohmm7q5nvTZKiDWchI6rhwxXep7GrP1f+HOmhtNJVAdHj5rWgF2cW+Y1p9EhqYEO10 iQypI3Ur2U1T8PskGvOiQPXJOIbJvCVqeW/aIPT7++YudQroFzeVpQNdIRt8U0LOcm0ot lV7ji2gx5fBKto9VYb8wYPWLJ4swrm8vGoV1s+mrsoxp7Y6W4rzxV5EKHPbAlD2cMyA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792629019; 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=bAiMTnVAiAf3Kz4ElubQPcKVGYEkRh7RA+Bbz6fnqOw=; b=asGVoFz8ocAoZF/v0Gjmg90E7FfaD7ZHl0V/fRgNGNHaZgBD06ngrLiRx1dsMSAIDFTx VCV0AWne/uHqnt2PyscwDZSs1wJ9AGyw0d9PBN2PmW6rCY4hWVCaihc5FqZx7FSRurt8T UHErhzJd3G3uPTa0TnJ6Tz8gJHpfqiR3R2GAoCmsVTfvVZ3ntwXMO8HMw+XSz5inDdzwu PcUOKOWz4MH1RV17SpT+/Z2YvRMSAFkSalrIoEydt1EaDof+LcdACRL8EPia52A9h0JuQ +JpCy7eHdJK5xFhNAb0x/3t6RzwAxiA8Cuiep+vobuGSXl1sj/U9DxJKyCaxmz+Fxlg== 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=bGPo3AUx; 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 8E957606A31D; Thu, 22 Oct 2026 00:30:19 +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=bGPo3AUx 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=1792629018; b=trjLr/assD/ZQSEDZOuY+VO6PItdejObp7D4sUfGENB72QVu1mz3HsIg3BIXh9s19pzt Cl1yyE8+sonbIQ0ImM/t+oqxSJdR+a5KtcEtI5Y2bqEhyrQS3bSG+Z7KQ9S1o2Vw8km65 ZisNJNceVp3aj+Nh1bGLxp/d4RB5KzIb5UEk5jWiW9GR+KE6fl+b8G55ASC5kswhkI0uU 9pF5s4s6AF3opbDtyhSKg89I69AyeVzPopCDVWBx3GhFkum731BFS1utMnc1GJOk3TuGr go2KGKB7TEn8JKCLv195uuHxFGpXVvfKw4s+tdVz97vclLArguwX76lNrI/G6mMgMXA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792629018; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=bAiMTnVAiAf3Kz4ElubQPcKVGYEkRh7RA+Bbz6fnqOw=; b=lvCOJp3901rsvleJhVXSMzuoRY5GxOaqjCIUOvS70WAxEFPRz1xLRu1RzrV7aNYakuHK O+jmaKyYit8EcgszumNGJr4+xc5WTawgrYbi5iiXx+TxzHGrgGrYBZ6Q20OnMLl9pCGjk CkEAQVBWoTP5hyaNrYncItSFY5zA8aN7rtf4jdQaPqfeUXZetIPRPv44XbAQ2aB0UJfwV IQ/IoR/jjQVg0uxavJHaov3/aTbVmSI7sgBtD8OuSkEseR1eM/gRvRZ3NgwsjDfobJbsh 5IL2l5EarCkkrMDq1vg0kB4qZoR1q9sJ8wLIhcUsfxIz5ZyXK9HFLGo/6RI8pG1eJ4g== 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=bGPo3AUx; 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 68CC2606A333; Thu, 22 Oct 2026 00:30:18 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43BC81F000C9; Thu, 22 Oct 2026 00:30:18 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792629018; bh=bAiMTnVAiAf3Kz4ElubQPcKVGYEkRh7RA+Bbz6fnqOw=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=bGPo3AUxBAHqjOjMengyLm8bEJrfbRD21LkofqwB/zJj/ZHUELhewWgVJ32IGs3tw aoxPupmqQqzCDdi9KvQI8CsqPaiIpmqD1B0g1zjhZuNN2caAiulRIhNkzF/tJafxaP Yuw7bPr/5WIly479xpYyMctgROuxN9GHYlWCFlQZGodKohFD7htbRpl276Q/pnZaf7 1mMIbugmGyndG031WS86p4fM65vaqOX59XmnjxVeeZL0UsTZYrMhJSOFuGBvY1z563 vGbZHInw6iV4pjjTGoZakFfFjpmS9jfEQi4n3giyQWYm1KdbCUp3eHyO1+1KhM+zLG JDjudorVamj9Q== 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 3A1C4380A963; Thu, 22 Oct 2026 00:30:18 +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: <20261016110421.2288670-1-shaojijie@huawei.com> X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, andrew+netdev@lunn.ch, shenjian15@huawei.com, liuyonglong@huawei.com, chenhao418@huawei.com, yangshuaisong@h-partners.com, ningwei15@huawei.com, shiyongbang@huawei.com, fengzheng6@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org