Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp212314lqm; Tue, 30 Apr 2024 19:20:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXR/YIMs3786xjs7Ouocwz0hqawmuBvqf5u38wV5kIIJPss4n49CROrGhToUBHeElkcDz6MpPOp6MfdC/U2sQBUdVl2KOwDv0vY2Jcjxg== X-Google-Smtp-Source: AGHT+IHtXOt064e8Wtpr97Klp/9SLKNXr5aV1fZfiPMfglGN5zUytu+B1J646u/CiZcmEXMqAvA6 X-Received: by 2002:ac2:5453:0:b0:51a:d7c7:769f with SMTP id d19-20020ac25453000000b0051ad7c7769fmr574771lfn.65.1714530006279; Tue, 30 Apr 2024 19:20:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714530006; cv=pass; d=google.com; s=arc-20160816; b=BK7blLKs/Pg1ksjnAMF78HLKG01sCXyryub6RxwmMAwPQLDW4sg4uMGhtuLRwTuDxu l2NulQLNQr3Q8XYJ3vYlYRdKsTrDGQevTD/4OWfCH+ka7jGxsaPdnNTvZGuIItTnApFo wVQtU27FXaOztR9FPSqo6iDc4avaCO+Ar+ycV5Q1nIG6H5oxHqyDhOTj69m9xL/9SET/ b7vOP4y2cTmunCKEFxGqrzHqr8LRvAEbrEMEZrPpQh8RO8ubmG5cxD4QeOLe2pPNNoMj DYaBhSayWwpxrYgzEL0tBlf98cM4MWZHdgnCRKPv8xdInEOtREuTMukgwmUaf7HGMf1+ wyEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d4l0plIEwSkOSPfsbpj0KDgwPaucxoLBhI3GOdwITVQ=; fh=QGJXzpbnQoRTf+//Ljm+sVRZbG1G7pRrM5SsEzhz0+s=; b=LJhaGQi5sMu3aSWOjW94qFjIc9q8SUkIwqH7uyz3N9b7ifKVK6xj8GFQ/r65MNpDqN pXM6fRe+lZqpxSVEGCghAtlzY/+R5DAoyKns8wIyz7u9na9xWoegJUtsYpD5ZaAAqHXc OzLt5Hp5hla4gEkXQ90afENEaRzgmZDNtcar0BEN8rekUG8gh1Do/eLxaGwo0v3dEpvh Riw8WxXpk40YoT+72NvbQRPOaKtCwlmxhfjCzPS4dIlLiKmEJV4pw9vbqqnttf0GC+bO PRus6IMckJi0DUiMEfKUSxHNGC5E1A6MNj3e6gOyNmzAkT1Fij4uKP7bsQpT3zcKPy7W aQEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m/i4naH3"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x6-20020a1709064a8600b00a5232586dbesi16048779eju.397.2024.04.30.19.20.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 19:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m/i4naH3"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D12831F23968 for ; Wed, 1 May 2024 02:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 321A411CBD; Wed, 1 May 2024 02:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m/i4naH3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5004610A03 for ; Wed, 1 May 2024 02:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714529999; cv=none; b=CILjFEXAEiBL8kFQCHqwWEOO5k+EGKRAS7Xy1Yij92jRhubRJSNtjZhsrMJCCu/hs/jU1Zru4w2Qan0P4eU36pC7saHvd7u0yIPXaXP9/Temo7psa2PfGBDyH4hsmhd9lyIVgFvU3IMVg81Ng19RI61eT8yOabYcifvjbh1Ym50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714529999; c=relaxed/simple; bh=d4l0plIEwSkOSPfsbpj0KDgwPaucxoLBhI3GOdwITVQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M3wUMpSBDwY1jiVyzPlfEIpkPPCVWqt633qrEirymWbjT5dFlR4ufBzXDVrusEB7cCVg07DeL1vGSZPhI8/SK3mYAVEyqa7xu+sJmmkk4DQJ3uasVvGbK5v/NUyBvRMTIgXFBVvZBHMo2szZ9I2Ovla3ZMj6MzScK3hL34aZwWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m/i4naH3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A8ABC2BBFC; Wed, 1 May 2024 02:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714529998; bh=d4l0plIEwSkOSPfsbpj0KDgwPaucxoLBhI3GOdwITVQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m/i4naH31BD0sip+9LManrjFKNs3L+U4Xx2fb50ojN/VNqeR3O6wcecYSmGj4ThYi TR5gUIBub0hmXVAS43OvbqRi3rxaEercQyO3fFuGwqBBeo0YqvI7zg2m7HJL7jm4ms 3FGIaIi2IULERRtc/bbfHZFrAG8Pv2xpFEG2IH1jAvduttHw2q6dUy7QUBBRRi4rcb zFPhcwxCyM4wiwS5x+Geo9TuWo7SXm9bkD26TP+xtMshWC9o/nyFOX+lUoGEXoiXyn noGgBmlb9DrHWcnv+NqBtJCxCkgs/ARIo4ilavG2q6WyVGa47NT7RjhEBLya3WCGRA hGUkiL0EGvcZw== Date: Wed, 1 May 2024 11:19:56 +0900 From: Mark Brown To: Alina Yu Cc: lgirdwood@gmail.com, linux-kernel@vger.kernel.org, johnny_lai@richtek.com, cy_huang@richtek.com Subject: Re: [PATCH v2 3/4] regulator: rtq2208: Fix invalid memory access when devm_of_regulator_put_matches is called Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="czeicd9U4V0WsrTG" Content-Disposition: inline In-Reply-To: X-Cookie: lisp, v.: --czeicd9U4V0WsrTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 30, 2024 at 05:58:26PM +0800, Alina Yu wrote: > In this patch, a software bug has been fixed. > rtq2208_ldo_match is no longer a local variable. > It prevents invalid memory access when devm_of_regulator_put_matches > is called. Fixes should generally go at the start of the series, that way they can be merged without any spurious dependencies on later work. --czeicd9U4V0WsrTG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYxpswACgkQJNaLcl1U h9D+Nwf/W0bujO/uX7pH6B7EJosDpE+x/XUnqgwxFQ/xP8YtOya9ujF1OPvdXKE8 ApWgcbbJdO9H8qQorNq8Lxn2F0islbbzUS5Z4+WqVrHCRFLghC6R/mI6eQzwatCH FmtOWh0h5asynsAH7kRmc4aBPSOk4wKhcfHHXbMHafubbWMYHBckhn0DSgFcbr4A mXDvB497KviRA71lGJszSBhtbpKE6gviiuEwOj2XnNs+pC0FFwCpDfr81gU4wFeo tjJgCk6pJAUfjGKY1V0m6S+ode+dqzjJucnCB6sUPcu+gPlhLTVHf3UZ8b5uhdt4 d14fojTh8JiqXPc+HOgt3d9INevTdA== =1jA+ -----END PGP SIGNATURE----- --czeicd9U4V0WsrTG--