Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2056481pxk; Sat, 3 Oct 2020 06:58:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdQ3NTNlNvkLkFjKxEfEI9z5t9Ux84HZ5AoGZEVEFSfR3l7xdR3uFmyHZvlGAsGGRKxp4A X-Received: by 2002:aa7:cb83:: with SMTP id r3mr8414559edt.35.1601733510566; Sat, 03 Oct 2020 06:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601733510; cv=none; d=google.com; s=arc-20160816; b=cyVWIXwMUBXyAKW41fYPuQDLpFbbkeafdukF59jnbZrtvNy4u4ZOIESROMNmxqP4LK SPB3Xqy43KIBWs7sAa4+2gSO+P8rk0wmwlr+F1DLC0gNba+t/NzP2lv25u+2zn4uQCgL aVyqBZ31iT3cPTRY8XY4vgccbu7FxzLfCiTM1RQXRZKJeFhnKKqJmCjWg6daBkX6RQeu fmgt3I2dj2kqwVjtNl39rUtrvg85pXLDjma0LX83eWRBaNBHUMWmm5xb5+Z/Aqaja8p7 9ix7OS+JIbftMjfpAZqSrnU12905s3A6EycXztsXIbDhT+NdPZLEvQrKp6x2pBBtBCA9 xOgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PKKXTbm5MdkyF1LWew92mNRm+55cZNM3+P6wA5HbKfw=; b=gAvP86Ipyj1BVVvJvM0SHEB6xwBycXFfa/c+uBcdfpedjgaMWObb4/rmhXpI7ijUXA g7a77hYCzGnYKoUGQVfjUn1rpsW953jmlaiZQ5E86e84ttFNMmPkoT1tdUlKvKQst7Oj 3WdFr0XqISvi/Ns2kM0vtGRR4OatFRXy31hCnQA48HNbrR0l7jfL+XfjS1+MhhWm+PH1 szLHKtjJD8hQPZjG0PuAuGjY8HYoUo13zi1SnQARTU1JzuGsE1A/rz/bbag+/GuuwZaB wmB71XozL/eLiny6nzo0hom42savTGenRMq9y5874iEAXtQP2Q/E9SRDFMQQaiTPpvw4 t/Sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si102343edq.494.2020.10.03.06.58.06; Sat, 03 Oct 2020 06:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725828AbgJCN4G (ORCPT + 99 others); Sat, 3 Oct 2020 09:56:06 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:60958 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgJCN4F (ORCPT ); Sat, 3 Oct 2020 09:56:05 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 9ABDB1C0B81; Sat, 3 Oct 2020 15:56:00 +0200 (CEST) Date: Sat, 3 Oct 2020 15:56:00 +0200 From: Pavel Machek To: ultracoolguy@tutanota.com Cc: Dmurphy , Linux Leds , Trivial , linux-kernel@vger.kernel.org, marek.behun@nic.cz Subject: Re: [PATCH] leds: lm3697: Fix out-of-bound access Message-ID: <20201003135600.GA25460@duo.ucw.cz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Signed-off-by: Ultracoolguy I'll need your real name to apply a patch. > Hi, all. This is a patch fixing an out-of-bounds error due to lm3697_init= expecting the device tree to use both control banks.=A0 This fixes it by a= dding a new variable that will hold the number of used banks. >=20 > Panic caused by this bug: > <7>[=A0=A0=A0 3.059893] CPU: 3 PID: 1 Comm: swapper/0 Tainted: G=A0=A0=A0= =A0=A0=A0=A0 W=A0=A0=A0=A0=A0=A0=A0=A0 5.9.0-rc7-postmarketos-qcom-msm8953 = #71 Ok, so I assume this is only problem with certain device trees, and not a problem with dts' in mainline? This is not trivial patch, no need to cc trivial tree. OTOH Ccing Marek who did a lot of cleanups in -next might be useful. Doing that now. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX3iC8AAKCRAw5/Bqldv6 8sa3AJ9JF0aojI2xKqcCGsgNFNF9jNonnACff9gr5JH8H6PkzXYth1TF7HrA/hI= =Vfbg -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--