🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13783

Re: [PATCH net] net: tn40xx: fix swnode use-after-free on probe failure

#13783
From: Johan Hovold
Date: Tue, 10 Nov 2026 10:12
22 lines
8904 bytes
On Tue, Nov 10, 2026 at 10:06:52AM +0000, netdev-bot+sinfo@kernel.org wrote:

> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
> 
>  - How the issue was discovered, e.g. hit in production, hit during
>    development, syzbot report, manual code inspection, LLM or static
>    analysis tool scan.
>
>  - Whether the issue was actually triggered, or is only theoretical
>    (e.g. found by code inspection). If it was triggered please include
>    the symptoms, like the stack trace or error messages.
>
>  - What hardware the change was tested on. For driver fixes please
>    mention the device (and if relevant firmware version) used for
>    testing, or say that the change was not tested on real hardware.

This was found through inspection when reviewing users of
device_set_software_node() and has only been compile tested.

Johan
Technical Details
Message-ID: <avLuG_1eQJ-tAyC5@hovoldconsulting.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360059-linux-kernel-netdev=dewy.ru
References: <20261110100051.2567443-1-johan@kernel.org> <179430521299.488859.1743918211448248351@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360059-linux-kernel-netdev=dewy.ru
From: johan@kernel.org (Johan Hovold)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: tn40xx: fix swnode use-after-free on probe
 failure
Date: Tue, 10 Nov 2026 11:12:43 +0100
Organization: Usenet Network
Message-ID: <avLuG_1eQJ-tAyC5@hovoldconsulting.com>
References: <20261110100051.2567443-1-johan@kernel.org>
 <179430521299.488859.1743918211448248351@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="580319"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:T8PHtsdPeOLVW06NKHUlYm+VY5Y= sha256:0Ni+gYDJV1ir6f1RDDKnVpYE0eHW9o/sIFsr9AFxn68=
	sha1:QrAiD6uPFzYPGTT0qi8fzXuma6Y= sha256:clKTaEaTSJnLRCoNEJuk2tNSfBfUo+kkTHDEZImjtg8=
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 4848B113AEC; Tue, 10 Nov 2026 13:24:50 +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 mr4aVaqEgWY4;
	Tue, 10 Nov 2026 13:24:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-360059-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 20A26113AD9; Tue, 10 Nov 2026 13:24:38 +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 50E8312747A; Tue, 10 Nov 2026 10:14:21 +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=1794305568;
	b=anSTaLPrIfOONjwfnZuOcDhZ2ollzQD549Dg2vzZ6muKjSzFO9Gva3O7tCWaPKVzoIDh
	 F0mFqGVpixNQErP/5mh6vE47IQk5lnV2pI9GzSJXB6RPVLlImp18tnjrMRmj2FhsR1GJw
	 +E5qoIOrNNqYYgcW66f9bfb4sSjdWVxxQV0z/KwxKPIaxIQBk3rB9ZtQLKcdlyGQuVVAr
	 5UuBU6wq5Cs8SMSZhsSjmphh/YOeyNvzlueqhniyIO1p26O/8J09qJ1Y7ekVSHyFokbp9
	 antBwXxvDY5kYuLICUxix/2/46VLdl1Wajezk7E5wJ7mNRw0h66dZyDFxAKp9ODbytA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794305568;
	h=X-Original-To:Received:Received:DKIM-Signature: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=KTQTZgEIbgkQxpYkxWc3fbV0n3H+XOSJdQT5Ddmwlzc=;
	b=mcDdoDmA8QoOFeuXKSaXGsqB35437lHXOzxNuSHgPkLr5VKqNKWh9u0gjrZyFJ6AZnoR
	 NSpj+Q+KH68/iQNPZGTMgTjLDU+1tbJ3fccopS6bDamuHwe8TRYcewgSUJsOL53kSfiL9
	 THR/CQWVCHldoaZV0Wx2oBTcjS7OM43JkFkM1FHWAWc2kFVX1QCYubDS9xciGzh3YhH/V
	 LaLZRHVBht5CNKPYYu1kKIhfZTqYooaC9FvC+dFiZFGFa6IgYvTGQq5+Zz+NTgYgiFPq0
	 AECFSpAuEHHAAlLF5JYGqLiFYDH30xTt7fT6Rp5+QyA80RVg98WcPrt8J4T6QA6Ndww==
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=Cp1O3eps;
	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 DE826606C5E4;
	Tue, 10 Nov 2026 10:12:47 +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=Cp1O3eps
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=1794305567;
	b=EAO0M0+/AFX9sXJXC7m65iU88fD6J5NGVdr29MNY/bUUr5a4YU9DWN4+wbI6RsT8jzl6
	 H+9LB33CrfFx4QKj6aCu6JX8E0wv2HagTxd8zujpZnXaXIc6uNLRdAubDckznqO312Fbk
	 QxmP8qhHtouyS11cqJTcvxofdpLFrwgLcAjaUoAdmjfZ/zV1fYQnWNCj8cJfusnTv2/B6
	 HrHHRUfbblGSzzAAzQaztxQRvK2r6hoQu+AbsZLXvZMpQv1O8nStp9lhp6IPuCuHpUvhn
	 qnSH8I8r04AhaO/aQRmHeyeQn4Gdn8A1SZt/FF02TAWzaa4IStapnWuYmzJAOvAYYqw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794305567;
	h=Received:DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=KTQTZgEIbgkQxpYkxWc3fbV0n3H+XOSJdQT5Ddmwlzc=;
	b=Y9oUOUHBlD8eBGMEk3H5AGXVoZ8DcTDbXTPzzhzeqH3naBeuIPAXVRtzZJ7CeTPhHFaE
	 yCZudW6X141lnhoMZQ49SHN1sn+lojXmz53E447FIcWbvtrb2KUTSlnIGZWwW8EcDxccf
	 dB9oszFwbeeOe2fDbbDffqEqlPys/n1LGzfWpctzqDn+t+cNfO8BbHSdmUStTUxlDosfw
	 DKgTX8Dti9g14igmCeJByYWXzL3CERYF70aMK+hl38wPzl0pyOvkGnuz0/c+qtQb22FDp
	 40HzZAd0GgaA+ZwmHdDIAPHmZEfkZGR+dhtN36EFLSog99DmoNoe9hUtkTChFml8rKg==
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=Cp1O3eps;
	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 C7736606A321;
	Tue, 10 Nov 2026 10:12:46 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B8BF1F0089F;
	Tue, 10 Nov 2026 10:12:46 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794305566;
	bh=KTQTZgEIbgkQxpYkxWc3fbV0n3H+XOSJdQT5Ddmwlzc=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=Cp1O3eps3MGQe8xL50/0U0R929vw4vD6ILDZJxc6eqo3xD0te5c4wxdCR635jl6vF
	 mhUgcpnvgOrrAsybOgBUBkK4vR9aFzyCqYbI71TZ1XokIu/Lr8brBe9JvZmLDFTL3j
	 BFDXOms0akUY4GPjAclY5xKY0YpeHnkoi+7g2BLNQi37ixX0ffF2rw8U9RB08t57vk
	 JMA3ejvvX/ei1JvEqCbQXrj+LVlMDyJU0gE+DkHwVocAc05kJCqcTfrfHXXjEY195O
	 myc5rjexsfiVM17C/Atk8GryyFo/WjNiOvUMlg+TBVRjQJGTYp1X41iCqCTJQO/W+m
	 XhlvCek6yYdQw==
X-Received: from johan by xi.lan with local (Exim 4.100.1)
	(envelope-from <johan@kernel.org>)
	id 1xQiqJ-0000000AmBB-2xHc;
	Tue, 10 Nov 2026 11:12:43 +0100
X-Cc: FUJITA Tomonori <fujita.tomonori@gmail.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, stable@vger.kernel.org,
	Hans-Frieder Vogt <hfdevel@gmx.net>
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: <179430521299.488859.1743918211448248351@kernel.org>