FAILED: patch "[PATCH] platform/x86: ISST: Validate parameter for frequency and" failed to apply to 6.6-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.6-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
git checkout FETCH_HEAD
git cherry-pick -x 574b59bb4b6bfcfd1f639d02f1041b314d43a2e6
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026090329-hypnotic-unaware-0736@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 574b59bb4b6bfcfd1f639d02f1041b314d43a2e6 Mon Sep 17 00:00:00 2001
From: Srinivas Pandruvada <[email protected]>
Date: Tue, 11 Aug 2026 15:15:12 -0700
Subject: [PATCH] platform/x86: ISST: Validate parameter for frequency and
priority
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Validate range for frequency and proportional priority while setting CLOS parameters.
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +12 -0
@@ -658,6 +658,9 @@ static long isst_if_core_power_state(void __user *argp)#define SST_MAX_CLOS 3 +#define SST_MAX_FREQ 0xff +#define SST_CLOS_MAX_PRIORITY 0x0f +static long isst_if_clos_param (void __user *argp) {struct tpmi_per_power_domain_info *power_domain_info;
@@ -677,6 +680,15 @@ static long isst_if_clos_param(void __user *argp)if (power_domain_info->write_blocked || !capable (CAP_SYS_ADMIN ))return -EPERM ; +if (!in_range (clos_param.min_freq_mhz /SST_MUL_FACTOR_FREQ ,0 ,SST_MAX_FREQ +1 )) +return -EINVAL ; + +if (!in_range (clos_param.max_freq_mhz /SST_MUL_FACTOR_FREQ ,0 ,SST_MAX_FREQ +1 )) +return -EINVAL ; + +if (!in_range (clos_param.prop_prio,0 ,SST_CLOS_MAX_PRIORITY +1 )) +return -EINVAL ; + _write_cp_info("clos.min_freq", clos_param.min_freq_mhz, (SST_CLOS_CONFIG_0_OFFSET + clos_param.clos * SST_REG_SIZE), SST_CLOS_CONFIG_MIN_START, SST_CLOS_CONFIG_MIN_WIDTH,
Sasha Levin
maintainerPATCH 1/1 platform/x86: ISST: Validate parameter for frequency and priority
From: Srinivas Pandruvada <[email protected]>
[ Upstream commit 574b59bb4b6bfcfd1f639d02f1041b314d43a2e6 ]
Validate range for frequency and proportional priority while setting CLOS parameters.
--- .../x86/intel/speed_select_if/isst_tpmi_core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +12 -0
@@ -497,6 +497,9 @@ static long isst_if_core_power_state(void __user *argp)#define SST_CLOS_CONFIG_MAX_START 16#define SST_CLOS_CONFIG_MAX_WIDTH 8 +#define SST_MAX_FREQ 0xff +#define SST_CLOS_MAX_PRIORITY 0x0f +static long isst_if_clos_param (void __user *argp) {struct tpmi_per_power_domain_info *power_domain_info;
@@ -510,6 +513,15 @@ static long isst_if_clos_param(void __user *argp)return -EINVAL ;if (clos_param.get_set) { +if (!in_range (clos_param.min_freq_mhz /SST_MUL_FACTOR_FREQ ,0 ,SST_MAX_FREQ +1 )) +return -EINVAL ; + +if (!in_range (clos_param.max_freq_mhz /SST_MUL_FACTOR_FREQ ,0 ,SST_MAX_FREQ +1 )) +return -EINVAL ; + +if (!in_range (clos_param.prop_prio,0 ,SST_CLOS_MAX_PRIORITY +1 )) +return -EINVAL ; + _write_cp_info("clos.min_freq", clos_param.min_freq_mhz, (SST_CLOS_CONFIG_0_OFFSET + clos_param.clos * SST_REG_SIZE), SST_CLOS_CONFIG_MIN_START, SST_CLOS_CONFIG_MIN_WIDTH,
Signature · 1 line
2.53.0