From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.231.137 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796248586; b=uVXhNxdevqJ3FNFAhPWeqEohy07FpVppksDqnSjDUOK9MItHoHU1QBcPfP8fn/yJro77 cPAN/ybeKsjVQPoXHk2zPXAiK2RkT/A+rjvdMUufQJFu5JIa+wv7JwMbBW0cELRS1aPzO czwA9osgpAJZmTJORzYHCc9erML/L4AhuPak/LGbzNQI+QJWHK56p8RlFez2LH5ZwPOp5 huoacAMQOPgiKZ0m43PX50J2E6MWtcuPzCtnv2UgM1ru0/Td2+oF70l1/zat/H86BktHr Wq5uWKmCPaQhrZ9PHYXLX5UTV6QfGISY3Yrn41Vk3O6C7/eHZ2/r7pj3emEJ1xf3ujQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796248586; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:To:Cc:References:Subject: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=sw6KKTAcyb12U7tOig3ybOsepTtfDMS4wTfSqLwElkM=; b=xUExEQCM/Ki4bVn+1T6KxISl+3YemuYDjRUMxj5O/sxjEjFvJ6oN8Xx6ks2uiGrnj3Fp kvpf/iu9Vvo/V3Eqrkkw7xQ29Vi1dmIKql8NCuFYcp7m5wVkBcm9p1VkdjDQP9EjbWKrM ZOTV26sdQWtoUY7j2zU3tVPailU9CI4l93kli8dKYx9tuvP0hUzywTY9VBMcpBhygu44q 0+OrXn4bGfhFtVJgvXfOecYXsUGcQe6hZTscHBmUswKfOlZpw6IJsAYtcVVvcEBiATw7i oUcjQR0d60FzF+P6thRrABOblDrYLc5TMBT/5BftMmuXJWH08iHRuPwtbmkau8LSXdg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=lAUFHHXZ; arc=none smtp.remote-ip=74.125.231.137 Received: from mail-oo2-f9.google.com (mail-oo2-f9.google.com [74.125.231.137]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6568A606A322 for ; Wed, 2 Dec 2026 21:56:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6568A606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=lAUFHHXZ Received: by mail-oo2-f9.google.com with SMTP id 006d021491bc7-71bc47a6759so766246eaf.0 for ; Wed, 02 Dec 2026 13:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796248585; x=1796853385; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:subject:references:cc:to:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=sw6KKTAcyb12U7tOig3ybOsepTtfDMS4wTfSqLwElkM=; b=lAUFHHXZulwopmbuFciuVYFpc6Y8Feq8ezqb07du2By1d7jWL2EFEq90T9QV67kjCO gwRQECersW+rmcJ6o5yNjvJOYMCnj0f1UuWv1aQHOciYjJ0oLtuJNiA1sWDmSU/0h1Rb og0tq/SBQ6ssI/qcp7xhPSpMrsgOB73wt+vysbhTruEk0PQayHE/5quLgy/MfgAcuPYJ E4ZxzPPbckkhqtBe5R8irEBI0VABE4DeFhwi+eeyHG9Vb02mhcIicJvyPOoxdPGk0JIy JRMfi6sxmfa06CfPb2reliddbMNMGcxx2oEBWZ92+c0J4FVwfxpGUZZ5QIKCyqJj1KOK qzyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796248585; x=1796853385; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:subject:references:cc:to:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=sw6KKTAcyb12U7tOig3ybOsepTtfDMS4wTfSqLwElkM=; b=W8Li2INC+60IlQDJkVzKU8JnuuM8PcJ4UqZW1bU3/1UNuXa1/EAY5LOWijvjzWo35Y t1CrnQfbJgS1uGkknmdZ9bEd/3f8jlNtBW0HE/xs8LsRvff1U2g/V0jU0n9Sm/YlpZ4p w8aM3NEBUNZTFmDhvUfAdJpeyxgHvnXUqaAGEG11XUL6E1BrLyqU1jFXLR1LDZU5YwXh XHBsfDDghOMqht/RESM9J8QWBUvmVp8mK4xUC2js8q+vFnrfyJW5YK/TxmFbeJ19Hy1N ANf6IiiTjPdq5QpxoClQ71o0vB9y11L+p3P6/aWLrkmtZtVxaokiOyucmHUkPLlsm6VD iwOw== X-Forwarded-Encrypted: i=1; AL+hErEpIepp5a63ki2dbr2cWwKO2lF9UMkRWB/UBkxnP8M4gUn3MDtNTOHlaDFr+MzcORhmVUf3HeJTjXCo@vger.kernel.org X-Gm-Message-State: APuU4Z/jHUci5bAWkS6iyot1CEX8V8whBSriieupS2w3njqtJfy7K9yS jCBnYDB6AoZsY5Zz/COay0t2sGg3qK5pNMO2ac1thAteKIMuh6ug3lrP X-Gm-Gg: AZFdTZdqqwCCC+BVhv/NMZBYbSAxQ/Sm7df95nONbsHKqfi6Obl5jRJ9mjlrK4D0nxL uhuoBMRubVd5rSChVXgQ4IBAdot2Zw2uyMSRVE9K4uriVJyT22cqpVIzyXtQzRMOI8b1d7frmV3 pQCjLAXM/9k24dKotPw5YHa6efYnhPJlyhafUMbWpEGdKModSi3KKzoJLSBxXnCLwy5etddxNNY p+gbn3yPOlWKlt3htDT3CSRClVon7b1gbK1lsJlGwZ8wncEPwuent5NJxNXXqFxmSyquW9A5fkA HQcKzYyEuUKKF0qpRwZu+nmDo5hoZ0RGxtZW1KvHJ290fJs/XkhC3I0KgX1Iip8wudroJPkXqOF 7NP5rX2wAmNPYHfjZuaV6IyqyfS5Kgyi0bpK5ol5E4i9nXHpcW0uCLTl8kMnFXwsZQkvLUEbtt3 iFDzC5hdsjHi11x38oJt5rp6ugZEdH0NRjf3UJoIXIvQA0N9vHtLa1q0+0eI6yWbXkDi6/OK/Li RBcRMQd03yjlYX1qGtVDbpOFNBC4Uae+xcW6TTvmtpm82CYTH69MDxG16dgI4CRMedKaMYahswC HroeaYy/p2JKXZwr/3zaXZAzD/eakJJThOfx2Xs5IsPpZ/Mt74wvAnH14QINisG8DZGqvOO+u49 lc+ls9rrseJjlf+JM+Q== X-Received: by 2002:a05:6820:1c93:b0:71b:d05d:6a43 with SMTP id 006d021491bc7-71bd05d7e58mr4195659eaf.7.1796248585352; Wed, 02 Dec 2026 13:56:25 -0800 (PST) Received: from [10.10.18.223] (wsip-64-207-253-118.tu.ok.cox.net. [64.207.253.118]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4bc5b07d57csm35672249fac.1.2026.12.02.13.56.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 13:56:23 -0800 (PST) Message-ID: Date: Wed, 2 Dec 2026 15:56:21 -0600 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: akkun11.open@gmail.com Cc: angelogioacchino.delregno@collabora.com, bmasney+clk@redhat.com, conor+dt@kernel.org, devicetree@vger.kernel.org, jbrunet+clk@baylibre.com, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, miles.chen@mediatek.com, robh@kernel.org, sboyd@kernel.org, wenst@chromium.org References: <20261129014745.3375923-15-akkun11.open@gmail.com> Subject: Re: [PATCH linux-next 14/33] clk: mediatek: Fix MT8173 onecell IDs after common probe migration Content-Language: en-US From: Ryan Brue In-Reply-To: <20261129014745.3375923-15-akkun11.open@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On Sun, Nov 29, 2026 at 10:47:26AM +0900, Akari Tsuyukusa wrote: > Migrating the MT8173 infracfg clock driver to the common probe/remove > helpers stopped using CLK_*_NR for onecell data allocation, causing > a out-of-bounds registration due to an missing dummy slot for ID 0. Tested on MT8173 (Amazon Fire HD 10 2017): v7.4-rc5 with board patches and the mtk-clk-for-v7.5 tag merged in, KASAN on, two boots each way. Without this patch, KASAN reports an 8-byte out-of-bounds read and write in mtk_clk_register_cpumuxes() at boot, just past the 120-byte clk_data. The A72 clock can't be looked up ("of_clk_hw_onecell_get: invalid index 14"), so mtk-cpufreq fails to probe and there is no cpufreq on any CPU. The A72 cores stay at 851.5 MHz. With the patch there are no KASAN reports, both cpufreq policies come up, and the A72 cluster goes up to 1.807 GHz under load, the same as on 7.4-rc5 without the tag. 8c9dacbf42f1 is in the mtk-clk-for-v7.5 pull, so without this fix MT8173 boards will lose cpufreq in 7.5. Tested-by: Ryan Brue # MT8173, amazon-suez