Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1124964pxv; Fri, 25 Jun 2021 06:05:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjAt2JOQcsqOtQ1mZr8ePGDejzIMTQYQNqCtcPLkc0o/jzbqJGYXe7PkCtot56Ek2VTOSa X-Received: by 2002:a05:6402:1508:: with SMTP id f8mr14212510edw.172.1624626344368; Fri, 25 Jun 2021 06:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624626344; cv=none; d=google.com; s=arc-20160816; b=X/8EHrcD0n4PRwf2CPkWAdOKhrrWT/7nXv8q7n+uEzW6Q26WGa1HRC5Va2Jbg0yTBg ApP7hy8GMFz8DoHg01eqXGUz1wSQDUyhnNElcHZTDnGmHf78CiOoA5vrK2OwXLfY64qo Oluk9P2Ymwho/Uc1PpvIwFYBDXC5gWOtrDmLpVpMDZ5FbFK7ysVQqs/Os7el6tdc5m7b KgfMsuoHzpTTCaHCGPA6giUbII4y/GNIFLLQeskiRZuuHW49p1NL93kr286IItnXt8Qg PZhYKwkVnScM0XRyG+ubKACwjKhmrZB/n/FYDU0mmM3tGdZ3WU/Y89ijic0SqKMkSOg2 O6aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Rtsnu8VD33EKMaZf3cpQ8efCBZxp+xhAKR5JoGpX5Eo=; b=sjGdEH1c/LHhYUrWCmJgAAh2P99iXRjK9HL7Rh5fpenxRKKUfDO3KEODXOBbo97+4j j9iw8szA7axOjtTdya9CssOKuCAx5+KWVC0j0B7W8b9cvbusuVz2iFZYu5SC63+VHORR wl1a3pUv+3fKFVybenSWVwD4SOhqoQsRdoHTfTONaLPYqyHlaIP5Y3VgxW3AAjr/IDNx /Ng1FfldDD6RWWoXNAVqKXw4ZLMTxMHbrizvRz1ZD+udoIXafe2JUckTDfDCs5VUcfyt Yd7ub+56+5Y5RU56MhWl856rU7sTlt+OIVk0SDYgr5S0xUt0KHdDf6Mwd5mAuK2zgix6 hCvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QyicnVxC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yl15si5783315ejb.231.2021.06.25.06.05.08; Fri, 25 Jun 2021 06:05:44 -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; dkim=pass header.i=@linaro.org header.s=google header.b=QyicnVxC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbhFYNGN (ORCPT + 99 others); Fri, 25 Jun 2021 09:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbhFYNGM (ORCPT ); Fri, 25 Jun 2021 09:06:12 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9719BC061767 for ; Fri, 25 Jun 2021 06:03:51 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id h4so7532387pgp.5 for ; Fri, 25 Jun 2021 06:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Rtsnu8VD33EKMaZf3cpQ8efCBZxp+xhAKR5JoGpX5Eo=; b=QyicnVxC5A1fEGp5XtFu3wD2OgDufaG+KE0JJ9KpzGa7lNZMm/POMik2AXOxX1zkTG 3J1IUFt9eeLSs/W1TxbtnzkxWiHFHRoseNrxBhaRZHMOz6MBCT6fQt7ROrqIOUqttUZw QU8itF6xaMwH0rMf7sAxh58f2tTPEKeert6XLTeTlx+kPxk4jBP6NSAlQUCkl/f4Rl/o tvN7rnm43Rwy6RxxZbZnRGq2tHOSGNX4NtjwUxcvJixa4Efap/fpKanlZ1kQGKEU1pLX z1blAIpYshe2WZpwUDCgSw2TaFR3hgGkF+y0iIHjiodOYRZzn+PQyEuiGu3LF/YpNVya xC6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Rtsnu8VD33EKMaZf3cpQ8efCBZxp+xhAKR5JoGpX5Eo=; b=W1g80D/zyjinI6P/btPGn+/126jk137LYS/0U0fWkQ7mxnpdXmdLgYnKaYqLJZJL81 /1f01fdmBDxaBi13RiAkg+YgC7hocmmnYrEwdLPzCrdDrrY1sqgbstDp6KaMqzQ8XemT C9MnbITUYhsUutuS8HC82oQzDbQW0vFPFcKAaUTEEef1GRsxgbP5uM6oYjoAmvSoTm0z D01qJYcVojN0sKFLfIa3RN6hUnqyoq63ywe0HsRS98x//YTWD5S5RxY7atSWvEe795E5 V9AOXzws+ebumWJAxrmEIwdsBj5tnU6mcne/MoLA3HS1elxDRxRDbju0EKAy/TZ3WHlC aneA== X-Gm-Message-State: AOAM532f4G/e2F7h5Jr08mn3a9Cg2HU0JcRv/w7GEGxO7e/KWeG8N+v7 BqzRZPxWGZbKjlvXUfE34rQ2t9NpY0op X-Received: by 2002:a63:185b:: with SMTP id 27mr9809644pgy.164.1624626231083; Fri, 25 Jun 2021 06:03:51 -0700 (PDT) Received: from thinkpad ([2409:4072:600b:2a0:ed5d:53e7:c64e:1bac]) by smtp.gmail.com with ESMTPSA id e4sm5903958pfa.29.2021.06.25.06.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 06:03:50 -0700 (PDT) Date: Fri, 25 Jun 2021 18:33:43 +0530 From: Manivannan Sadhasivam To: Greg KH Cc: hemantk@codeaurora.org, bbhatt@codeaurora.org, linux-arm-msm@vger.kernel.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org, kvalo@codeaurora.org, ath11k@lists.infradead.org, stable@vger.kernel.org, Jeffrey Hugo Subject: Re: [PATCH 06/10] bus: mhi: core: Set BHI and BHIe pointers to NULL in clean-up Message-ID: <20210625130343.GA13833@thinkpad> References: <20210625123355.11578-1-manivannan.sadhasivam@linaro.org> <20210625123355.11578-7-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 25, 2021 at 02:38:58PM +0200, Greg KH wrote: > On Fri, Jun 25, 2021 at 06:03:51PM +0530, Manivannan Sadhasivam wrote: > > From: Bhaumik Bhatt > > > > Set the BHI and BHIe pointers to NULL as part of clean-up. This > > makes sure that stale pointers are not accessed after powering > > MHI down. > > > > Cc: stable@vger.kernel.org > > Why is this needed for stable, but patch 5/10 is not? > Shoot! This one relies on 5/10 and fixes a corner case where the BHI/BHIe pointers might be used after MHI powerdown. But this requires backporting the patches 5-10 cleanly (a series). So I guess the stable tag should be removed for this patch. We will test this series on stable kernels (on how far) and make sure this doesn't break anything. Then we can share the commit IDs to be backported with details? Thanks, Mani > And what commit does this fix? How far back should it go? > > And is this really fixing anything? > > thanks, > > greg k-h