From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 512043CF664 for ; Fri, 27 Mar 2026 09:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774605381; cv=none; b=fQdvgioUOWWp/yYLGZ6z0WWOMmWU1/y/qaLRvzvnMKRz8yoyCrubtQ3yyc0YRE+Ft1yMAr6MtiKL2icygVAV4JP1xOQfohMLGjBx9aZhcmngK0wc7bKHVWUjYQAO4AHGMvtBiFKNjHlra+dP/DPkhtlH+1Vml2xFDglA+EOw3KU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774605381; c=relaxed/simple; bh=dlPj8lkdaAOtDjEZON3jMZ9wX1o6CwcZo+Yix425nAI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XqWBE+4mPyhgwx3oUKW1jay8iZ/wSDv9m1FesG1B4uIwM9iQsKl39O3vFwVhE4eTLzkuQcM9snLClXaz7FIZBF4wd+ypt/ejcVN0oV1pMUxKtI6ZzV6r2FCyIrAHFlGpHmD6j9jeJ7avfn25NZEmBnC/jKza5ELh78XhYrT0+RU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=WLAuJu+8; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="WLAuJu+8" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D99451764; Fri, 27 Mar 2026 02:56:13 -0700 (PDT) Received: from localhost (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6121B3F915; Fri, 27 Mar 2026 02:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1774605379; bh=dlPj8lkdaAOtDjEZON3jMZ9wX1o6CwcZo+Yix425nAI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WLAuJu+8Fy5CSKcVsuClKcjT9b1lXKDb/w41XoC445CkUM0JAS3rQgSmujM5f82zG qsonYpFWcxUs0VzbZPQZ3o5r+6Q20dSxV+VLawvAfjFoW/jZH+DcjbE4GXDgCsIrrm bZ+b5xn/3GY14YWs1aF9BfxTVy4LC1Tn4QS354Iw= Date: Fri, 27 Mar 2026 09:56:17 +0000 From: Leo Yan To: Jie Gan Cc: Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , Mathieu Poirier , Greg Kroah-Hartman , Tingwei Zhang , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] coresight: cti: fix the check condition in inout_sel_store Message-ID: <20260327095617.GC356832@e132581.arm.com> References: <20260327-fix-cti-issue-v1-1-2c8921e21fc8@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260327-fix-cti-issue-v1-1-2c8921e21fc8@oss.qualcomm.com> On Fri, Mar 27, 2026 at 02:24:14PM +0800, Jie Gan wrote: > Correct the upper bound from CTIINOUTEN_MAX to config->nr_trig_max, > since nr_trig_max varies across CTI devices. An out-of-bounds issue > occurs when a value greater than config->nr_trig_max is provided, > leading to unexpected errors. > > Fixes: b5213376c240 ("coresight: cti: Add sysfs access to program function registers") > Signed-off-by: Jie Gan Reviewed-by: Leo Yan