Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3394211rwe; Mon, 29 Aug 2022 10:47:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR5m+loh9StTGXCtriMtq4FAC8kl2gHn8Uy5IgOCr4N16vFAWtQm+aHnsZ4ozpnpna5BuYBv X-Received: by 2002:a63:698a:0:b0:41c:8dfb:29cb with SMTP id e132-20020a63698a000000b0041c8dfb29cbmr14840805pgc.170.1661795263017; Mon, 29 Aug 2022 10:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661795263; cv=none; d=google.com; s=arc-20160816; b=j/Bu+Houi4XUY7OX0vfxBhZumiqQcePP3eX7DnEqRoXWqp6N/O+YD8HzthkESjZezW MCVjtyebMxcEbp8t6ge2iWhnnTfgMqttv6ZGTu27/FdWikSd7FQJg4F/tChvf8EaSjZr 48Rb4EvJSbxNm6oDYyZBtVIL82tR3Th0fNICxiMgMN7Q5+OvJTQHzrCd2jD2TOo1NnPg w12FyvT6r6kYXrjDTMnnLMU5DCpQyFAzm2rb1Kng5w8pdgqKCHzXL1naTK+2V2/vemx+ sCAORoHxJ8yUCY1YGqJ/zYc2mEV+llgE5lUMNx3uNaRPqIxLnR+62PrjAHbfS1fwgsJB w0bw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QmlEAMQT7vq/lVv+H1pflMQB6baSE59YJvFy4uguTaY=; b=deG3MmHz1nM5hJ6Hvw65u94WgUV6ex9DdUXAO2NH24DyvfM+X7W1epeP2dWrXD0Ve8 OOiv+opjFJui0902BVaU7GLEdFK6Zij7379MOMrbipgdt+Henl41qOKmhbHmSO8xv1y2 gL9Rldtg47ipmmERclxm3IqxBR1s7oCk9Q2x5nTCZVGg+1Hqxy5wLXHszcszZol5CEdM tQT9RfdNGHNt9OV9kd7opPggqnDhi487DoXwN7uUV5xhzoiRM+uwKD+OVfRvxQH23Bja tJx6q578DoPsjF6tFnlWsDW755qrUeG8GUkhHg1BpQTtSWKVgt9+zvJqPulrsyr05pIp wiZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JnRPX5hG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a65670b000000b0042a39b56e98si10099204pgf.389.2022.08.29.10.47.31; Mon, 29 Aug 2022 10:47:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JnRPX5hG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbiH2R1M (ORCPT + 99 others); Mon, 29 Aug 2022 13:27:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbiH2R1K (ORCPT ); Mon, 29 Aug 2022 13:27:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B78B8E0FA; Mon, 29 Aug 2022 10:27:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DF263B8119C; Mon, 29 Aug 2022 17:27:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1C3FC433C1; Mon, 29 Aug 2022 17:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661794026; bh=LngYf8P+LI6UrANiDYF1odyCTinChzauYVwqE9jZYEk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JnRPX5hGG/m2kiEPTmqWQY6QvgVVXyPU+eqjZ5agyPQQsKK/io9g7B/AvQtz+lCWz WVq2GV+8lgaASRcL9+bJx3+eLbPu577683lRTJblVXNFKm5HMT3ClCSrLxO8bSsMg/ qZ4enOxWahqgcMobW+Wg1Q6JelWe1Fc+bsUMKPC8ikwv4y7RMdAW0cS7gBxVQivfLd TkBudKMcPDibwIOgu0m2d6ccR8x3vxTuTvTWhJjpCqpiI+qDh+/6VfzGzdtUJEjXDq yz4Et2enr5+rLrzo8WH75UqHVmRGgebfu9NXqI+JYY0zBMnYLXtYkVgzbB1PowQSbe yKAdGB86SAeCQ== Date: Mon, 29 Aug 2022 22:56:54 +0530 From: Manivannan Sadhasivam To: Kalle Valo Cc: Qiang Yu , quic_hemantk@quicinc.com, loic.poulain@linaro.org, quic_jhugo@quicinc.com, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com, ath11k@lists.infradead.org Subject: Re: [PATCH v3 1/1] bus: mhi: host: Fix up null pointer access in mhi_irq_handler Message-ID: <20220829172654.GA84762@thinkpad> References: <1658459838-30802-1-git-send-email-quic_qianyu@quicinc.com> <20220726080636.GE5522@workstation> <87czdrrc95.fsf@kernel.org> <20220729142221.GA9937@thinkpad> <87h71vc98l.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87h71vc98l.fsf@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2022 at 07:20:10PM +0300, Kalle Valo wrote: > Manivannan Sadhasivam writes: > > > On Tue, Jul 26, 2022 at 08:53:58PM +0300, Kalle Valo wrote: > >> Manivannan Sadhasivam writes: > >> > >> > +ath11k, Kalle > >> > > >> > On Fri, Jul 22, 2022 at 11:17:18AM +0800, Qiang Yu wrote: > >> >> The irq handler for a shared IRQ ought to be prepared for running > >> >> even now it's being freed. So let's check the pointer used by > >> >> mhi_irq_handler to avoid null pointer access since it is probably > >> >> released before freeing IRQ. > >> >> > >> >> Signed-off-by: Qiang Yu > >> > > >> > Reviewed-by: Manivannan Sadhasivam > >> > >> This fixes the crash and my regression tests pass now, thanks. But > >> please see my question below. > >> > >> Tested-by: Kalle Valo > >> > > > > Thanks Kalle! > > I just tested v6.0-rc3 and it's still crashing. What's the plan to get > this fix to Linus? Sorry for the delay. Just sent the PR to Greg for including it as a fix for v6.0. Thanks, Mani > > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- மணிவண்ணன் சதாசிவம்