🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19148

Re:Re: [PATCH net 1/2] net: altera: Fix potential use-after-free on removal

#19148
From: 李广硕
Date: Thu, 19 Nov 2026 12:45
20 lines
10508 bytes

Hi Andrew,

Thanks for the review.

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-11-18 02:05:30
To:  Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
Cc:  Boon Khai Ng <boon.khai.ng@altera.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>,Michal Simek <michal.simek@amd.com>,netdev@vger.kernel.org,linux-kernel@vger.kernel.org,linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH net 1/2] net: altera: Fix potential use-after-free on removal>> Fixes: bbd2190ce96d ("Altera TSE: Add main and header file for Altera Ethernet Driver")
>
>The usual question: Does this bother anybody?
>
>If not, net-next, no Fixes:
>
>    Andrew
>
>---
>pw-bot: cr
>

I found this by reading the remove path. I don't have a user report
or a reproduction on Altera hardware.

Given that, would you prefer the Altera patch on its own for net-next,
without the Fixes tag? If so, I'll resend it that way.

Thanks,
Guangshuo
Technical Details
Message-ID: <AAEA*wA8LCG4Zr0pjYZ8NKo8.3.1795092340086.Hmail.202321181@mail.sdu.edu.cn>
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-367015-linux-kernel-netdev=dewy.ru
References: <20261117-571e631490-net-0@mail.sdu.edu.cn> <20261117-571e631490-net-1@mail.sdu.edu.cn> <b8f3c9d0-47e6-4949-bb17-477f8a4e52c9@lunn.ch>

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-367015-linux-kernel-netdev=dewy.ru
From: liguangshuo@mail.sdu.edu.cn (李广硕)
Newsgroups: linux.kernel.netdev
Subject: Re:Re: [PATCH net 1/2] net: altera: Fix potential use-after-free on removal
Date: Thu, 19 Nov 2026 20:45:40 +0800 (GMT+08:00)
Organization: Usenet Network
Message-ID: <AAEA*wA8LCG4Zr0pjYZ8NKo8.3.1795092340086.Hmail.202321181@mail.sdu.edu.cn>
References: <20261117-571e631490-net-0@mail.sdu.edu.cn> <20261117-571e631490-net-1@mail.sdu.edu.cn> <b8f3c9d0-47e6-4949-bb17-477f8a4e52c9@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
Injection-Info: usenet.network;
	logging-data="2872611"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:g5l/rL9U29BFHQFqfdbEkMBiCd4= sha256:BZDC1orOY9jjV7G/JlAAcHH2KGbtumTiv9+cjkyk2+k=
	sha1:AArX9nyTU3j+KDcOJnlcO/eWsPI= sha256:eCvjXcw0V7aeC+aFX2dDkgBnRPNCMyhx2dBmokW4qTM=
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 09600115645; Thu, 19 Nov 2026 15:46:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_MED=-2.3,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=mail.sdu.edu.cn
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 p021A4S9gUSw;
	Thu, 19 Nov 2026 15:46:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-367015-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=mail.sdu.edu.cn
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 6A1AB11563B; Thu, 19 Nov 2026 15:45:55 +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 D11196A89AC; Thu, 19 Nov 2026 12:45:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1795092351;
	b=pFAfSzvSqGPCMiZ7z4mbIb62YnZCuHKOUkHDfSizDzQ2F6wqfowh9DGtAzANiV1//WHI
	 nJYr4gtXSRhYQ0QICOG19DJCP3bJlLhOW3tLxVCOgSB1q+zErBIhuy3A30MLj/IhnKl00
	 dpWoTzbzWoYzVRjLA/5Ku5iP9aakdOuLQnxStkhJosrFzZhEgfst6mzeKBQs/FrWTzNPI
	 p6Bf5hjDdR6ZflTdNy9XEQKsl2cy/KixziiEPETNSCIasdAdlcbrM7DGrlPcJtk1v9CEs
	 anu6NdoZ4sUx3tlO0Pg81pMz8twdqdMtLnADXzy3gVAYxZ+F7MBuQ0kIgCk8bn4VDWg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795092351;
	h=X-Original-To:Received:DMARC-Filter:Content-Type:
	 Content-Transfer-Encoding:Message-ID:To:Cc:Subject:X-Priority:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Received:From:Date:X-HM-Tid:X-HM-MType:X-HM-NTES-SC:
	 X-HM-Spam-Status:DKIM-Signature;
	bh=Wi03TWgTP7S39IPDFwHnr5HmwCqL92fnjVPr4/ZOhTg=;
	b=uWtvdu/LXvgpCvHAHqMAQC+jXRDRNUdHXupfEpNgI3fBqUze5oYAtDSA4XW+xR1z8lS1
	 WpBOW7guL1/G0rmt1KukISyVwvlKlgRqfxG4ytOjKdijV6kIzdb5oGZC/f5I5ds9zM5mX
	 AzJB1MkXXLN3WFSEFMF+13ZODKha2P7dG6JGhUXWNBzd/6y8pFWefCZHKIFf4RW4uBdBD
	 bRQVcbJaKMJt8z49G3WRvuqbo6lI0bAbrarqaK8qtv8Zplw3pzxe1zB/wRcXopOe86NHg
	 xrTOv8jMpWz1PEUXWcXB+vx31qB0jd7MKcnr6K2K0GMopcr6iUcwKJYD9XGA9UbIx+Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=mail.sdu.edu.cn header.i=@mail.sdu.edu.cn header.a=rsa-sha256 header.s=default header.b=L4V4W9Lk;
	dmarc=pass header.from=mail.sdu.edu.cn;
	spf=pass smtp.mailfrom=mail.sdu.edu.cn;
	arc=fail 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 94B53606A33E;
	Thu, 19 Nov 2026 12:45:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=mail.sdu.edu.cn header.i=@mail.sdu.edu.cn header.a=rsa-sha256 header.s=default header.b=L4V4W9Lk
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.209.128.2
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795092350;
	b=hGZohFaQGJm9vp6bP1EVJdBjXkTvnLSjxMTnm8TCi6n7bLr/E7vPkpfd5LTfrMnfO1a7
	 cM6K7lXgyQNl9Gdhs/S6+YmFse+XJlvOzWHSwYCK8vQB+Jyg8oJXe9mQoa55/Bm/3/EFU
	 71q1Db2SQUte7qZ8ONElOlPs2kjEQJJXz2unYfwiqI5o0Yd8R/nWysyEFnue3ILmmEqfk
	 QA3X+PaVu5Ppzwv6j54JyIET5rIksJO5cfYtu85mdHtgDuCTmkVvpQRhiYxFkguhS0QEP
	 1w4PuPQAHH2rf2TS1gicFE4i36vBVHfDBUX8ZJmR43Vk2UXeBNtWUpVKpbgU3jBj9Qg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795092350;
	h=DMARC-Filter:Content-Type:Content-Transfer-Encoding:Message-ID:To:Cc:
	 Subject:X-Priority:X-Mailer:X-Originating-IP:In-Reply-To:References:
	 MIME-Version:Received:From:Date:X-HM-Tid:X-HM-MType:X-HM-NTES-SC:
	 X-HM-Spam-Status:DKIM-Signature;
	bh=Wi03TWgTP7S39IPDFwHnr5HmwCqL92fnjVPr4/ZOhTg=;
	b=f1ePxQqLJaiP0BjehTWSWKiggUHEdLDOuX8evAhCsMltniMGPjiJH9sJKDhKfjG1dc5r
	 yk37dFhSLsmqlY/mtBWOWo5Qp+SJKMAZHWj6z5Wt6n94IB42ghUp5Wg4GlCmgQB5j7oDE
	 FhvK40nUHYGVlQYfFo7ki+aTj5MpILaxXTKBxlBDuc9EfSXbNfeeEVgDkJY1b5pmEfyoy
	 qg7WClVO1RPvtCdIIR3gyg10xFi2XKFXYLOtYYnq7Yqvc/tESxDhixwgYZshGOlWM0BbB
	 h3UpFZEYqoSNeIgltQr8niyIK2x39JE1I/cHQR1UCVI51LXcu308fZ5bqy9cWply30g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=mail.sdu.edu.cn;
	spf=pass smtp.mailfrom=mail.sdu.edu.cn;
	dkim=pass header.d=mail.sdu.edu.cn header.i=@mail.sdu.edu.cn header.a=rsa-sha256 header.s=default header.b=L4V4W9Lk;
	arc=none smtp.remote-ip=103.209.128.2
X-Received: from mail-m1282.netease.com (mail-m1282.netease.com [103.209.128.2])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 822BB606A324;
	Thu, 19 Nov 2026 12:45:48 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 822BB606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mail.sdu.edu.cn
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mail.sdu.edu.cn
X-Cc: Boon Khai Ng <boon.khai.ng@altera.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>, Michal Simek <michal.simek@amd.com>, 
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 
	linux-arm-kernel@lists.infradead.org
X-Priority: 3
X-Mailer: HMail Webmail Server V2.0 Copyright (c) 2016-163.com web
X-In-Reply-To: <b8f3c9d0-47e6-4949-bb17-477f8a4e52c9@lunn.ch>
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-Received: from 202321181@mail.sdu.edu.cn( [101.76.249.61] ) by ajax-webmail ( [127.0.0.1] ) ; Thu, 19 Nov 2026 20:45:40 +0800 (GMT+08:00)
X-HM-Tid: 0aa1f3d6e57ad0cdkusy0c757bdb16017
X-HM-MType: 1
X-HM-NTES-SC: AL0_4z5B86Wr4Tz9jdMF+bhXMVHpP02bZAKsMEiErRSAekjx+ys+KNZNl0PLwl
	f2MeqR5lbiqKsoq8sm3hZVy9q3VVBNOjIUwfWq1GfV2NBR9WJV5pp9Gwt04oeFjraKOA9zdjwmFX
	MDdZv6bOmTPK2b/NjUfESiX3Ehf/s1YYomK2g=
X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly
	tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVkZGRlNVkIZHxpKS0MeHh1NGVYVFA
	kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlKS0pVTE1VSU9CVU1KWVdZFhoPEhUdFFlBWU9LSFVCQk
	lOS1VKS0tVSkJLQlkG
X-DKIM-Signature: a=rsa-sha256;
	b=L4V4W9LkNybYZZvTVk3ld99rdG0wsNfNE4OKl+LfqlKsFVBy9doKSbRPlfY+2oZJPfpOpWm7EjBr4mzG3a3XYRv8827GBaeVtQOmeAAfwJw/r1Fktw+LIuHhRBfrumcMzjHQB4Wjy+lmu7woWB4aB+Kbg3cWOgTJMGH77BqTQTM=; c=relaxed/relaxed; s=default; d=mail.sdu.edu.cn; v=1;
	bh=Wi03TWgTP7S39IPDFwHnr5HmwCqL92fnjVPr4/ZOhTg=;
	h=date:mime-version:subject:message-id:from;