From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 910BB30F7FB for ; Sun, 2 Aug 2026 09:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785662542; cv=none; b=F0Jnkc5VNcKGcG3Ad4GQU8PEkBi0zoCOwhXFkB9jN2JJrdS9f/s735ariCgPIu2aZamNgdskVWDBf9w6hSmPvYSGJGWceiR6MsKRxtt643UI4K31pvKzxc0VTNHfYwpy5N7pP2E/6sxjyt0xYTbWtHEIvHWVhPNTOH9enMBVuc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785662542; c=relaxed/simple; bh=JPht6IbmqdGhMwsg4LE43O7ZpEPPU4Ew82HaEdhclO4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ebzIB/KoPidHjZKaRjbSwpQ2eTStnlmDvMry6bfS8bhcZVDLZPHBlQMHg/zk/bsceiBTYZu1k+aO8BgX3nCjAv25Kt69NLRq8uUFDIgFx0bRxuAyVcasoG9M35gtYUOlHUoKBCvzX2MeQnggxgEPhmI34+e3D+aE2qZSltKwEzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=BtOK0mvl; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="BtOK0mvl" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1785662528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JPht6IbmqdGhMwsg4LE43O7ZpEPPU4Ew82HaEdhclO4=; b=BtOK0mvlQntcu34tc0DDqy6DFCuP7iE1ZTaeu+BFLDocJJL3KX/H1AupmOm2yvyjeWvjnS 1tSDrlNShOckL/M89XY8pE0ahwRkXlHuXQ3FWzj2hljBR0aw6hbqwmHmzQev6oTsPPa7dL geZfnppG7thKdLAxE0WwJ2Ec6HyKzm0= Date: Sun, 2 Aug 2026 17:21:53 +0800 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net v1] net: ravb: fix use-after-free in ravb_get_ts_info To: =?UTF-8?Q?Niklas_S=C3=B6derlund?= Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, paul@pbarker.dev, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, masaru.nagai.vx@renesas.com, sergei.shtylyov@cogentembedded.com, Xuanqiang Luo , stable@vger.kernel.org References: <20260731063254.71260-1-xuanqiang.luo@linux.dev> <20260731182550.GA3091634@ragnatech.se> <4f8e09bb-b6b0-4036-af0c-89306b48493d@linux.dev> <20260801093532.GC3091634@ragnatech.se> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: luoxuanqiang In-Reply-To: <20260801093532.GC3091634@ragnatech.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 2026/8/1 17:35, Niklas Söderlund 写道: > Ahh, yes you are correct. Clearing priv->ptp.clock after the clock have > been unregistered, and checking it before use, is not introduced in that > series. And as you do here that should be fixed. > > I have no strong opinion if this is done before or after the PTP rework > series. If you want to send a v2 and have it go in before I will rebase > on top of your work. Else adding this on-top of the rework is trivial as > the locations where it needs to be checked are abstracted out to > callbacks. > Hello Niklas, Thanks for confirming. I have sent v2 separately. Best regards, Xuanqiang