🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6240

Re: [PATCH net v2] net: cpsw: fix netdev cleanup on probe failure

#6240
From: patchwork-bot+netdevbpf
Date: Thu, 22 Oct 2026 00:10
27 lines
8951 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 19 Oct 2026 08:04:30 +0200 you wrote:
> The legacy CPSW driver registers its netdevs before requesting IRQs. If
> a later IRQ request fails in dual-EMAC mode, the probe error path
> unregisters only the primary netdev. Devres then calls free_netdev() on
> the still-registered secondary netdev, triggering the reg_state BUG_ON.
> 
> Once registered, either interface can queue rx_mode_work through
> dev_set_rx_mode(). The error path does not drain the work before devres
> releases the netdev and its private data, allowing the worker to access
> freed memory.
> 
> [...]

Here is the summary with links:
  - [net,v2] net: cpsw: fix netdev cleanup on probe failure
    https://git.kernel.org/netdev/net-next/c/6acb220312d5

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179262780578.1374404.12449019792107487021.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-350317-linux-kernel-netdev=dewy.ru
References: <20261019060430.33254-1-kmehltretter@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-350317-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] net: cpsw: fix netdev cleanup on probe failure
Date: Thu, 22 Oct 2026 00:10:05 +0000
Organization: Usenet Network
Message-ID: <179262780578.1374404.12449019792107487021.git-patchwork-notify@kernel.org>
References: <20261019060430.33254-1-kmehltretter@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="92305"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Wuxl7Q8ZmyIIIl6oJmNJ2cilT+A= sha256:9uVVLsFlinYnD8g2mBZb6c289yomBIEsLxI+am5zqgg=
	sha1:KowkNeFA5YNkV58dfTTjhMW/fUo= sha256:WG+Bono/yhdSrWqbr8Y2zkB9F9hq0ExtSI0Ggo2IOXw=
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 B617311115E; Thu, 22 Oct 2026 03:10:26 +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 u2THfxs0r_Ur;
	Thu, 22 Oct 2026 03:10:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350317-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 DF3B411114B; Thu, 22 Oct 2026 03:10:13 +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 D67C12D129; Thu, 22 Oct 2026 00:10: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=1792627808;
	b=VowA5dHDIHKojQD1Am8lCaoDBFQO7Sx+YyE1JZIE/F+3dv055hUn6IGLrqQqwLRZSlsl
	 04OfimUtqVuksTJ62CNOhvG3Ct139nbeozI51IyMIGvBoIFHYGBAXf1d+eOwQt0aQTW/e
	 uNMyQIIIhNUz7o67HKiBMlSImk/4BR3mkcHL/fyA9BxPRrf1jkv/jJsvmdSPC7FptLfvi
	 4maESsCByZKwOQBVgEXM3qAwdsogrfPaQx2Xgtlsnu/nZtZsQz0RFZ6DspUXYjYSoT2P8
	 nlwJu4BNT+rBvK3CwHMHp0y79BEEXPqlnsFvhC9MbQXWSBGpNJD5c8JUEfwY22adHwg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792627808;
	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=HHAl1d6Kd+fQ0UdZyUkMWIDkcLOhCJfCqkZkHQ8ES7E=;
	b=TQu7+xUviLExgMr5pLS1imHuepJgglqeUaWJgTIqPsBy3LiWeTMWweyf5QAwi3dKNMWm
	 EALUI42Hy5E91jcI1ZQ12iI/2OkKTBW6yZ2iVfuQ87tRf5z2fGc8LictXzOvBr9OPZgDc
	 0isGG0YlyaOnT8qr/HRrPpYdTS6tw9VeIb6CXPHYni9bdVTjy8j3WgU4c6pq/tpEnF7d5
	 jhp71U0aIW+kdAUoxXh7K+dnloQBuobSBjB0JljsUPWHaMhKoeiNRYiG1/3BPHV27m2/O
	 sppQhrop/bB4QjVTndFXsV0vpexOA/LsZOyh6M2auytwz85kG/1xvmBRib4r4dApw6A==
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=bksz2Na3;
	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 9BBE3606A32A;
	Thu, 22 Oct 2026 00:10: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=bksz2Na3
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=1792627807;
	b=rHaVsYEIkvBGeo13X7EBbznJnN1cfOqQZ3wopTZ+X8Rce9V2zB+njMCklqxlein8yiD+
	 tGYy665X0zubbQ0SNVyVLsThJgTKR2gXAJ3Ly1TOvFSJCi2Nnd7m7gVvTWRO8HjEbcerQ
	 bSCMqad/wYbP9/RpocgMpCWtC9sSGUxIWUHUWBOIkfRvxNSmqECGIsgukbVKdERGplabY
	 p5hm9p1Dc71nHuIHWG9j+xpsJKY0Ays42TLSNdY7dO2+qI01BAHzql5NC4L+LV9ATcEt5
	 0rg4l38nl7g1tZ+oxHNupQ89whN+DUdCjam8jvj6PW2T/pFKpz0V1kyfiXe5Ob7mcoA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792627807;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=HHAl1d6Kd+fQ0UdZyUkMWIDkcLOhCJfCqkZkHQ8ES7E=;
	b=OJQqrjRqoyd6gXPx0v4K92cfgx34rUDFbdSBpNvUZg+BDhgHXag9P999Gxrug7U3Y+xn
	 s3T4BDQN9rq3pS7TpSU6LgkgYPE2/5INIiezBO/NGMxagfbOmv1oRLvkjt3+ZLhhkBM8C
	 eXN0r9weuRq2JkGDH5U0HKWiHgHh5mFW0/wIUUQW6Kzbt0Gw/XoXEHs8FPOP0s7F/1sDD
	 r99pIh7bcmVdvzc3sy8zK6elqP3Je6bHytFvsPw2kJWkeeOSCx8Am79OBmaAJ9XI/Z8BH
	 cHms7g0HibGDh4G2NoyAqOc4MWFd2vFtB35pds8yQpXbJ9LTFG4nmoEvY9GRFZrgxXQ==
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=bksz2Na3;
	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 77D61606A31B;
	Thu, 22 Oct 2026 00:10:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 082A31F000C1;
	Thu, 22 Oct 2026 00:10:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792627807;
	bh=HHAl1d6Kd+fQ0UdZyUkMWIDkcLOhCJfCqkZkHQ8ES7E=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=bksz2Na3KHmMvUfrZxEXMzPCxDEEPdL95+hlZfS6D0Rnori8Eaqr9yurVTD+B8Zg9
	 U/iMdsRUAJlgU6GgHEWnkte69uDttJCTmyb/rXOdnXySOz+wf2bPgsN66CmdMvFT4P
	 6ooYU7oGMYhOPSy5YuSZXO1gAdTaiC46rw3vtPFm9vMgi2DWjvFodPTtYPkWO0aRkF
	 Yl0euvS5mCKo1omWM4Y5Yn9YZ6Pe9W1TGh3MfVepHYHo8Qoh4aUAkpq3Q2ENrexmk2
	 JKueCvM/4CWkaoyGjz3vvdLEHAMeZVovNmYJeZPOZEspZBBoSdLPH6C7adfTtBgWB2
	 pJLp4hQCJbMPg==
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 F1477380A963;
	Thu, 22 Oct 2026 00:10:06 +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: <20261019060430.33254-1-kmehltretter@gmail.com>
X-Cc: netdev@vger.kernel.org, s-vadapalli@ti.com, rogerq@kernel.org,
 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, j-keerthy@ti.com, haokexin@gmail.com,
 alex@sverdlin.org, arnd@arndb.de, linux-omap@vger.kernel.org,
 linux-kernel@vger.kernel.org, stable@vger.kernel.org