From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796535231; b=mZY4lrmtN5RqCUYSAGOJg94/S3kg8roNv14YO7y2c9pyYKH/zz8B3l0yIjjysDZY5lhz mOb+kxs9yUFQNguS5Tt+iA9uQoJeD9ebjfRfh/vG35CYPCw/bLZwVu71YgoQum8a7wG8v s65FRO7F4PbbMG2MTe6cLvTjg7f1d9Dtw1IPx3V52CPMk9AZjxe/daNgySsWoDe3MklgA a0D8vlhL9HbfsJUaTu+W8s/7olaDrBHlijoPe5CFQteH2xzbpvUQ8c2MktVDKOP7CXUlZ tpjq5cXekhXEb2k1ZKMfzqX2RR77twVMo8LFNMXFN7XhyC8aB6SNWTRKmyqK2NuMZsw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796535231; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ax3VwVoNzRgjzFBnqh/RTDXTa8xZ5EZh/txfrDaKalE=; b=zVb4KUIoVLlZ2TQ79QoycWPN+yJJxcJIb5DobA5TL33OlOVHUee878HbceFypWRmdvKb 9YMVCMyoN19zhfGZZgcq8k2N31HfCmexfMbW2pTtu4lu0V8lKkKijurgM9+OeU+o6Uzvq ANyoXUuWBY+xx2Tst6VYamdqf6BQqoUudQNZQ26UPJzP3Xw9l1kortaCpDdp+yzfLg/aD W+jPn/H0OACpcWR5T3CPKrUcfNZpJeXMnY77IX/kgFXWNvIRgGQDv9B4zxVq7YDdx2S9e kle3LnQ+2VY/R4qfmtcBbZfZPnvUHPt4D60reH27o1b3h2EyrwrenxCzJ7mVp0ZtUVg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jG3GEhyO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC05B606A31F; Sun, 6 Dec 2026 05:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jG3GEhyO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A7AB1F0092B; Sun, 6 Dec 2026 05:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796535231; bh=ax3VwVoNzRgjzFBnqh/RTDXTa8xZ5EZh/txfrDaKalE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=jG3GEhyOWs905TrMDZjQpLmWgoe64jq6umeu5pDFDsylGA8DDd/wV7lf0omJ8m7Fi BFWA4mNFfXnkt9dTdiuEQNzFoDt6l59Nh8WcPVe720/QAgumgxR5QHp6Mi8KSY+ByS k3ciGzPOPhCBRsmlJLzR/6+7yyJsnfY4SwAd5bi7K0d1P9CqUe7pCgytVMMdTwjUR9 0/K9fK1URcwctHubbNBOa7bcMsnet3zh2hS/Twgn8N0jZrCLhLXC0ssUO3dv2KaBby zt9/2fM07rMnPAqIw21MsV1BIW1G60cbfjZVKlelvQV2imbyUnnevmy6G4HSfaUXmW 6q2SueCc+/dWQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v18 8/8] arm64: dts: qcom: Add SM7250 devicetree file Reply-To: sashiko-reviews@lists.linux.dev To: "Sreeshankar K" Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261206-sm7250-v18-8-954befb935bb@gmail.com> References: <20261206-sm7250-v18-0-954befb935bb@gmail.com> <20261206-sm7250-v18-8-954befb935bb@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2026 05:33:50 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] cpufreq: qcom-hw: partial init, leak, and UAF on SM7250 without LMh - [Low] arm64: dts: qcom: confirm SM7250 GICv3 maintenance interrupt PPI -- commit cb376f816df13b1a2189685d1e1a3775d709b831 Author: Sreeshankar K arm64: dts: qcom: Add SM7250 devicetree file This commit adds the base devicetree file for the Qualcomm SM7250 SoC, including CPUs, PSCI, reserved memory, clocks, interrupts, and serial console support. > diff --git a/arch/arm64/boot/dts/qcom/sm7250.dtsi b/arch/arm64/boot/dts/q= com/sm7250.dtsi > new file mode 100644 > index 0000000000000..e02ca97e5167e > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sm7250.dtsi [ ... ] > + intc: interrupt-controller@17a00000 { > + compatible =3D "arm,gic-v3"; > + reg =3D <0x0 0x17a00000 0x0 0x10000>, /* GICD */ > + <0x0 0x17a60000 0x0 0x100000>; /* GICR * 8 */ > + #interrupt-cells =3D <3>; > + interrupt-controller; > + interrupts =3D ; > + }; [Severity: Low] Does SM7250 wire the GICv3 virtual CPU interface maintenance interrupt to GIC_PPI 9 (INTID 25) rather than GIC_PPI 8 (INTID 24)? This rests on an SoC integration detail that cannot be confirmed from the kernel source alone. Sibling Kryo 4xx devicetrees such as sm8150.dtsi and sc7180.dtsi specify GIC_PPI 9, matching DEFAULT_MI_INTID (25) in arch/arm64/kvm/vgic/vgic-init.c. Because gic_of_setup_kvm_info() maps the first interrupt of this node as gic_v3_kvm_info.maint_irq, KVM will register its handler on the wrong PPI and miss VGIC maintenance interrupts if the hardware actually uses PPI 9. [ ... ] > + cpufreq_hw: cpufreq@18323000 { > + compatible =3D "qcom,sm7250-cpufreq-hw", "qcom,cpufreq-hw"; > + reg =3D <0 0x18323000 0 0x1000>, > + <0 0x18325800 0 0x1000>, > + <0 0x18327800 0 0x1000>; > + reg-names =3D "freq-domain0", > + "freq-domain1", > + "freq-domain2"; > + interrupts-extended =3D <&lmh_cluster0 0>, > + <&lmh_cluster1 0>; > + interrupt-names =3D "dcvsh-irq-0", > + "dcvsh-irq-1"; > + clocks =3D <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>; > + clock-names =3D "xo", "alternate"; > + #freq-domain-cells =3D <1>; > + #clock-cells =3D <1>; > + }; [Severity: Medium] Can having two interrupts-extended entries for three frequency domains cause a use-after-free on data->policy when the LMh driver is not bound? With CONFIG_QCOM_LMH=3Dn (or if lmh_cluster0/lmh_cluster1 are not yet registered), qcom_cpufreq_hw_cpu_init() sets data->policy and allocates policy->freq_table and OPPs before qcom_cpufreq_hw_lmh_init() fails with -EPROBE_DEFER on domains 0 and 1. cpufreq_policy_online() skips cpufreq_driver->exit() on init failure and cpufreq_online() frees policy, leaving data->policy dangling and leaking the frequency tables and OPPs for CPUs 0..6. Domain 2 (CPU 7) has no third interrupt entry, so platform_get_irq_optional() returns -ENXIO, which qcom_cpufreq_hw_lmh_init() treats as success. cpufreq_register_driver() then returns 0 instead of deferring, leaving CPUs 0..6 without cpufreq. Because qcom_cpufreq0 and qcom_cpufreq1 remain registered, any later rate query hits a use-after-free in qcom_cpufreq_hw_recalc_rate() -> __qcom_cpufreq_hw_get(data->policy). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206-sm7250-v18= -0-954befb935bb@gmail.com?part=3D8