From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85DB6338937 for ; Wed, 26 Nov 2025 15:33:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764171207; cv=none; b=PCF9p5viqmwA2p+4Cb6/i8JWPjBVrQVoXI6S01pslYQpID3KDO/vVEs6AJs6dExFwJUVwUcnIC9cjQLshzM9qplGpTOvhPd6k/z+S8Q5r1wdtTKadc5+XAm53VeIueWXbilG+oV+iCLw+V6H2RD2ROph1DlQ91U8ZfksGUpEhTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764171207; c=relaxed/simple; bh=oxo8thwQLiURRcxxyqxy0nPFgDDQl5WIi3YIn3gs5FQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ooRiYHiN966V0VxSqErc+VcQxttAHdnqeZj3kZjIo6hqX+bFzqd+V175iX3xsr95fxcXBrQicU5wCNFl+UN20T3erGRaeOh5HMxe8lx/huvYCCP0bTNK7xxmvFqjCBTs6mOzOWBCR28qEqFRvz9NyfcybnOoXlJJMWrFkt00ToE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Y9Mvu2Bn; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Y9Mvu2Bn" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4775895d69cso28834615e9.0 for ; Wed, 26 Nov 2025 07:33:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1764171204; x=1764776004; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cdUO88eikIW9795WfMiemGo+56r2Q4h30VDAVu+3NnY=; b=Y9Mvu2Bni5TSLZyUgVr3gzaCb4laqD8sIkqMRXZeGy19n/WHDlFgFaNE1HxRr9qd12 vFlqEbAPCO+KptNdG6dg9+dxmjq9Ek4M/WlDkf/xQxbiEqRP0wMF13gxDIGTcbLpIyqk x7iZKaX6jC7klEcA8iFEvD2oSDViF5wZH1w4OKFEM9BX8WzFvj7HakN5Xlyc9036aqzO a5RqbdZ21xG+E7aNWfUS4b0hcKlPuDyGoN/DvZD1w3COEEqy0sAT7Ly0C295rsN/XM6E T1cG1BLGP9N40OA6Uo/pOFPjqtPnmI95InGXso1lj8igdPE2Go8N00dCAlki5KgIi8+N 3E9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764171204; x=1764776004; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cdUO88eikIW9795WfMiemGo+56r2Q4h30VDAVu+3NnY=; b=FKw478qVaXSM/HQZxYMuz72E6yQEBL3bnZ19WY4bhnoYmvFWlTzTja4NwkMmYiNTnG jJxPK4z+TW2m9v9S94pfcWD+tr/gjVjNP6I+OIZ/jbgOVpOncUXpapAb/QnQB8KsFMhG ZA7s9M/Nk+OLQjiQpeOwxBEqwhs5aD5qvOSsIdXHbVDRyvIoVgotuQGx3ukphXqctvPN DlD7bTlQy3IugRxdYPL/i3KxYU9nQ6RS+rXnkflvdd7udEa0LjxAT1M72VvBAyj7jpTb ptLubjwFbUV5GDr8x2ZwJyl+ZoBXD98XwwXl3/nMDaXprAmlptr9r/n2fm+hjtfmxLf6 Qoxw== X-Forwarded-Encrypted: i=1; AJvYcCVdwhDqipzG7itKeYF+AN6SWTmdu9e2c3hCZGaQFSYODx9espss3XkK1TEqny/hbyisGeAFNDzfcYi9Sw0=@vger.kernel.org X-Gm-Message-State: AOJu0Yyqd+6zxZ1KW57/nYirJlj+kewLJbzsSA7w4dLuFIjLShBh4rN3 8Ft6sSyDeCZ37Fpr77ETHSPupaxUZ0DGmJe/BZ13G0y+K/xYyD8/Bn2/35qS64qEI0Y= X-Gm-Gg: ASbGncu0SD6Qif2LDpMaTCa+8M/Q6Wm+tj71EHGR4Jur2usgJ4lY3cxgYW7bKe7F+D0 sN+YS+7KZHN4X32X/SwnK3PKMbY9meraX9AEVFJFvAfgaCHytnhRxIsYGaadKao+QJmZoK9jIKp Xmw110NnD9MUI/7MOLoOP47NqBBChiNsZB3/pSXoWQp/MEf2F41OKFrzpT0RPjvz1zRtuIPmBFb 9Mf5Rdx/7217PDcielZYw1vdDk71sKWVHvq2yjNH//oqBf9kyRl79/Vff/+cAuvHNwFiR/eFe+m WahdeV/8Wh9f4yvVcVaBCo26szf7dQXog/oeqyi5rSpx0qF4HfnuXgRhy950bKijSgcWU0h0oQI QRKpq+kdwEJS27p/lgYv3TRawgZRi8p7O9t9HJjdldgbTDSvDC9vPuttqUX8LNngEPobw1n+HQn VW8/3/H1ltpAEwPbrh X-Google-Smtp-Source: AGHT+IGF8bP97JkKg3xI/45hwPHmV/IZkaV8z/cEcedjhdjCGLpD1Us8WMmpJazVJOH1POXHY4my7Q== X-Received: by 2002:a05:600c:1551:b0:477:7d94:5d0e with SMTP id 5b1f17b1804b1-47904b23c43mr66925455e9.27.1764171203692; Wed, 26 Nov 2025 07:33:23 -0800 (PST) Received: from [192.168.1.3] ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7f2e432sm40399877f8f.9.2025.11.26.07.33.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Nov 2025 07:33:23 -0800 (PST) Message-ID: <15d536f2-0829-4f3f-b111-b15b14236bd2@linaro.org> Date: Wed, 26 Nov 2025 15:33:22 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] coresight: etm3x: Fix buffer overwrite in cntr_val_show() To: Mike Leach , Leo Yan Cc: Kuan-Wei Chiu , suzuki.poulose@arm.com, alexander.shishkin@linux.intel.com, pratikp@codeaurora.org, mathieu.poirier@linaro.org, gregkh@linuxfoundation.org, jserv@ccns.ncku.edu.tw, marscheng@google.com, ericchancf@google.com, milesjiang@google.com, nickpan@google.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20251121002350.1166758-1-visitorckw@gmail.com> <20251126120914.GH724103@e132581.arm.com> <20251126123147.GI724103@e132581.arm.com> Content-Language: en-US From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 26/11/2025 1:42 pm, Mike Leach wrote: > Hi, > > On Wed, 26 Nov 2025 at 12:31, Leo Yan wrote: >> >> On Wed, Nov 26, 2025 at 12:11:05PM +0000, James Clark wrote: >> >> [...] >> >>>> This fix can still be applied to older kernels, but seems to me that >>>> now might be an appropriate time to consider removing the ETMv3 driver >>>> from the mainline kernel? >>> >>> Yeah, if anyone is using it it would be on an old kernel surely? >> >> We can confirm this in another way: if I don't miss anything, over the >> past several years (since 2017), we have not received any questions or >> bug reports based on hands-on practice regarding ETMv3 on the Coresight >> or perf mailing lists. >> >> Thanks, >> Leo > > The key to this is not the questions we are asked, but which platforms > are still supported by the linux kernel. > > The ETMv3 driver supports both ETMv3 and PTM trace (the programming > model is the same, even if the trace decode is vastly different). > > So as long as there are platforms supported that use either of those, > we need to keep the driver in. > > Mike > We're not running tests though, so if we find out it's fundamentally broken somehow it could be another justification to remove it, even if the kernel supports the devices. Do you have a board that you can test on Mike? Maintenance hasn't been zero cost either, even build testing for arm32 is annoying enough.