From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) (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 0F56432E69F for ; Mon, 26 Jan 2026 11:06:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769425589; cv=none; b=rEPirJiUFQVx8CCm52Khogd/BzHZDFrdUMV1Bnuhqe7+ghuNuNbtcG69kUtdLlpoLrPqe9MjQGY3LvU7CihmKRSbjp3qVkgQ3meDY3Z7XLSlXLAys/Gud4XdW5RZGwrt70QWR5g+qfnZopwdBRE+fQ/JWqmSSorxqQxyF8UfvWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769425589; c=relaxed/simple; bh=2H0McNSW14YeB8QNJBi9kKZne48lu2V8yMUat775eL0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Z3RPdo06FhxL6TSDHf5PBy6BlkLh0rpZ7SqS5RbkJBbOD03Vzac9guHMpokpSxNxavF/j/KWNBjnrjQDaOfyWCz622Vp2bpE5OkZUNmgOr+UVMkZXmbrhk3rUId0XSG8mo829N4sZxRYw9Dp09FTvLMVMwQ2Pcw1TZpiLsrHAJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.222.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f52.google.com with SMTP id a1e0cc1a2514c-9413e5ee53eso3180216241.0 for ; Mon, 26 Jan 2026 03:06:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769425587; x=1770030387; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6aS98Qbf9sAOaU61dqPi/K2l5V6UxS+EUsC0EMiIZcM=; b=nJ/s1YB4Ji6Ev4HerXNfoB7qZFS0Yli5TykA20AQ/q4AQEYSlLz25c7lYMzUXcPlNy kuxanRHHa72gz3BHTz27ihYtjNMIhHnPDMjgFS+D7lkEn1F4fVkeliKoEsgCpW6suZVC I0w3uJPfLky9IGc5M6VZjuory4p+Y96iW8VS1RHnUjFcdUKHnFfnTmG4vqsvdQUVmw39 5uKvD2+BiIsJbEYNZNyiUKTZNalcFJOJhxptOFA+D1furP4qrVOECfMsN8DNTWhVgwPw wgJs4LXSsUaQJuA0hnAAFdM9Gaed7DQ+/oWsQpNrrVT9aHcYASskpk7apLFG0iliAdXO xNEA== X-Forwarded-Encrypted: i=1; AJvYcCUFIaemBKih13Q2NFnlpk/KRodCz9GoQkJwo8XUuC7RCkozDYDDKeJhimmCl94jdnQ7bPBN9E3SrJ9xskQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyK9v1Nh6wn+g1+NyYjisSCyildIKLs6fCaXdzAj2pD8Eeb5Xt2 f+crxKLpem76lt5W0ibrGtXRQO5R7EyS3/1nbU+pDyAbKFMghAgNB9lR7A2jQby1 X-Gm-Gg: AZuq6aLfsdkoycCef4TX6NCJylPdJTE5t24QZ5ZhIdzKvYn6ZeOZSTWTlfOWEN/j31Q Wz3+iW611MAAK3RaU9w46UD3IcY1sSLnQrbBrUJV3ent1prFIhmq7VWIslwLoNeHywwN2TPfKfj BLG1F6wdZQ/HFCq8+Mv5lO86srI4aPpAiS3RpFEEam1kzS5N6WN0JCEUz0ar6Tq8lNGLIcqvFfv N2QWHFbJ3hfocAEpXOiZ2H/9p2YH6nfyHYYmInK8RYInlcen/VqfQz2kd62GAkBcFBMI/KBRjzN gW+jL8Tm3vzK1Q+OwRec5ahf+OC3z9HK/HKx2WQIWMuOOqnyhegQB3+Oyr8+zVlYgAJIr4h7FFn PiGbFB02hQ5nmaqJkU6327sU8DHrz/IMR7Q/fxFpJtCNaI9MdYl9sEI8Aq4jMrvDeS8O/+rT88I wZXUWgyjnAhauH56ZB7wK4H7dBYaGZx9McqywfkB7HBoESsKOnec6A X-Received: by 2002:a67:e8d2:0:b0:5f5:773e:a555 with SMTP id ada2fe7eead31-5f5773ea67emr1052904137.20.1769425586877; Mon, 26 Jan 2026 03:06:26 -0800 (PST) Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com. [209.85.221.177]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-9484fe51d53sm601742241.12.2026.01.26.03.06.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jan 2026 03:06:26 -0800 (PST) Received: by mail-vk1-f177.google.com with SMTP id 71dfb90a1353d-563497c549cso3772908e0c.3 for ; Mon, 26 Jan 2026 03:06:26 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXE4O64vAWy2EvITIm1hwZ77thKeCEx1iJCx+346DPrqKhkgXJHVq9bMJrGQA/kztCsb2zDTgjU6XAH2ag=@vger.kernel.org X-Received: by 2002:a05:6102:953:b0:5ef:a8da:8b26 with SMTP id ada2fe7eead31-5f576492b87mr1267237137.27.1769425586050; Mon, 26 Jan 2026 03:06:26 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260121232657.155281-1-marek.vasut+renesas@mailbox.org> In-Reply-To: <20260121232657.155281-1-marek.vasut+renesas@mailbox.org> From: Geert Uytterhoeven Date: Mon, 26 Jan 2026 12:06:13 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AZwV_Qj5vhAcK_cpdHEhBGKru4FfHXAD4S81A5Q270vbDRN7RD5_nDM_1mnBenA Message-ID: Subject: Re: [PATCH v3] clk: rs9: Reserve 8 struct clk_hw slots for for 9FGV0841 To: Marek Vasut Cc: linux-clk@vger.kernel.org, stable@vger.kernel.org, Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 22 Jan 2026 at 00:27, Marek Vasut wrote: > The 9FGV0841 has 8 outputs and registers 8 struct clk_hw, make sure > there are 8 slots for those newly registered clk_hw pointers, else > there is going to be out of bounds write when pointers 4..7 are set > into struct rs9_driver_data .clk_dif[4..7] field. > > Since there are other structure members past this struct clk_hw > pointer array, writing to .clk_dif[4..7] fields corrupts both > the struct rs9_driver_data content and data around it, sometimes > without crashing the kernel. However, the kernel does surely > crash when the driver is unbound or during suspend. > > Fix this, increase the struct clk_hw pointer array size to the > maximum output count of 9FGV0841, which is the biggest chip that > is supported by this driver. > > Cc: stable@vger.kernel.org > Fixes: f0e5e1800204 ("clk: rs9: Add support for 9FGV0841") > Reviewed-by: Geert Uytterhoeven > Tested-by: Geert Uytterhoeven > Reported-by: Geert Uytterhoeven > Closes: https://lore.kernel.org/CAMuHMdVyQpOBT+Ho+mXY07fndFN9bKJdaaWGn91WOFnnYErLyg@mail.gmail.com > Signed-off-by: Marek Vasut > --- > Cc: Geert Uytterhoeven > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: linux-clk@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-renesas-soc@vger.kernel.org > --- > V2: - Update the commit message crash paragraph > - Add RB/TB from Geert > V3: Add Closes: It would be good if this would make v6.19 or v6.20-rc1, as it is a hard dependency for adding 9FGV0841 device nodes to DT in v6.21. Thank you! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds