Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp445037imw; Thu, 14 Jul 2022 04:36:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tbvw2u1ma8NStZgCetEhmgSwC8sT+37Eb3lKbDixsxQQGT8ZouqT7jFJYeQfn8sC6IU7Cp X-Received: by 2002:a17:90a:4704:b0:1ef:f369:bd0e with SMTP id h4-20020a17090a470400b001eff369bd0emr15479860pjg.20.1657798566593; Thu, 14 Jul 2022 04:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657798566; cv=none; d=google.com; s=arc-20160816; b=MJ0M0IGGEoWEPXqItR2PeOPpU/+n3AJ8Jms46/p1VYV5Z/DIbouCGGMAP/rQFSv7hq cZNLxUF7vatsR5BOQADQB4tiGZONgjh+tTLrewUdD3Ctuh5H9QcRA9kGb8J/Ja1GBgEb FKYvKNvq3fv2MiPkNr2aJGr/qLZbziGhACyN4SGieTY/sC2suL6sHOx4N0NAnNuMCxfi /RKwAn6bbSRZVMk4SOYh4FTYo6dytgkguKokZ2Fyv6hnpxT+8uUXYepnvO+884hwahGQ 6tSEu12dEJgdH06Uk1dQNP2ZAINsZKUGdzbzu1cJckUVjcZe4fWIwqdibBHOVWdibtSQ 2BdQ== 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=p7pqq2g8/Wby+2K8I1+/FwfIeNjPoy6Wx6KoZD17UX0=; b=GeYSNTTN/pJ3XWwwVM5igvmFqRC0mh/2A0LgmMPYS9mttk9HVwj78U0X3b95+xHPIS PlLf4uW6tUj5Onay2D136RNifVn3EQz3EUvV4ZIAlLRF3HuWkaCTthuOrCXZDWWfJZgJ jrVQij7Qaia1i0GW+G/us3Z7Hy9FLvxipWry0XBn7YrKe1pV9qsLEl2XqFjDIjXNCKQg PIkbrlvElkhS+TzBF7GsvYlzS5PXfb5uL1RItDyE7a8jJmm6EbCAjvPu75BQYzRIFErc r0bNQ8Q4XEcFECjC4RpS68QTWx1LcdvaqJN5GX/XIBG/wLfkAeuTT9Dh/ixVow9eHILo xKnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=S90nZq5H; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc18-20020a17090b3b9200b001ed37b0be62si2296637pjb.90.2022.07.14.04.35.53; Thu, 14 Jul 2022 04:36:06 -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=@ti.com header.s=ti-com-17Q1 header.b=S90nZq5H; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238617AbiGNLID (ORCPT + 99 others); Thu, 14 Jul 2022 07:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbiGNLIB (ORCPT ); Thu, 14 Jul 2022 07:08:01 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C9F56163; Thu, 14 Jul 2022 04:08:01 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 26EB7plu090790; Thu, 14 Jul 2022 06:07:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657796871; bh=p7pqq2g8/Wby+2K8I1+/FwfIeNjPoy6Wx6KoZD17UX0=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=S90nZq5HNvlqK1P43SUIumnzYKKRkK/yc6yy2NbjmaZT16ZlmoWPMDWXvKtIBlp5a X8ov1ZVvQz+h00IChm4LT1d/AQ4qrhUbrQkDw7j3iM4uKjPDmwcR+Rvk6ap8U0ajrC eVKOARqsfM9U8aWkAW1or4ZmXoAv37QVR9DUxtSY= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 26EB7pVe019466 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Jul 2022 06:07:51 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 14 Jul 2022 06:07:50 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 14 Jul 2022 06:07:50 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 26EB7oXs021273; Thu, 14 Jul 2022 06:07:50 -0500 Date: Thu, 14 Jul 2022 16:37:49 +0530 From: Pratyush Yadav To: Mark Brown CC: , , , Subject: Re: [PATCH -next] spi: cadence-quadspi: Remove spi_master_put() in probe failure path Message-ID: <20220714110749.ee5r4hznjn3ij66s@ti.com> References: <20220601071611.11853-1-vaishnav.a@ti.com> <165459880689.302078.15844858048042907353.b4-ty@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <165459880689.302078.15844858048042907353.b4-ty@kernel.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Hi Mark, On 07/06/22 11:46AM, Mark Brown wrote: > On Wed, 1 Jun 2022 12:46:11 +0530, Vaishnav Achath wrote: > > Currently the spi_master is allocated by devm_spi_alloc_master() > > and devres core manages the deallocation, but in probe failure > > path spi_master_put() is being handled manually which causes > > "refcount underflow use-after-free" warning when probe failure happens > > after allocating spi_master. > > > > Trimmed backtrace during failure: > > > > [...] > > Applied to > > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next I see this error in v5.19-rc6 as well. Can we get this patch merged as a fix in rc7? Sorry for spotting this so late in the cycle, but I thought you had already got this merged in one of the rcs. > > Thanks! > > [1/1] spi: cadence-quadspi: Remove spi_master_put() in probe failure path > commit: 8523c96894e916b20ba3612e48e404fad5acfdd9 > > All being well this means that it will be integrated into the linux-next > tree (usually sometime in the next 24 hours) and sent to Linus during > the next merge window (or sooner if it is a bug fix), however if > problems are discovered then the patch may be dropped or reverted. > > You may get further e-mails resulting from automated or manual testing > and review of the tree, please engage with people reporting problems and > send followup patches addressing any issues that are reported if needed. > > If any updates are required or you are submitting further changes they > should be sent as incremental updates against current git, existing > patches will not be replaced. > > Please add any relevant lists and maintainers to the CCs when replying > to this mail. > > Thanks, > Mark -- Regards, Pratyush Yadav Texas Instruments Inc.