Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp587903imw; Thu, 14 Jul 2022 07:12:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSFw5wfHRbqpTU5da0J2YIMB662KE46J1vzqgpKaAuifX6T0AgNLBkBWYQTQMxQQjHyBw9 X-Received: by 2002:aa7:cdc2:0:b0:43a:7255:5274 with SMTP id h2-20020aa7cdc2000000b0043a72555274mr12870862edw.159.1657807968290; Thu, 14 Jul 2022 07:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657807968; cv=none; d=google.com; s=arc-20160816; b=YBye+rhO78Zf9fUXxPw6ew95O+ab/sLaX9LD3fYQLjipVTIfcpyFyMWlg+LBZYVsD8 jPCFt70F932PIK/NtXIBPenR6i3dde5U02dQF8jiDFdMC5pyRJ3oBk4EqpAHhPFVy4ml eRc7owQav7phwCyc3EB38111reS6QoAS2Zbo21oXWa1G/UbSToNBuKspgLB/qYJKwRYm 8C4S24Y5wAES/VIZBb+oSsz81JNtU+fp1ZmZtHw9OEKdXA3JluCqjTNf0L0r01BMpwOi RxfajuNXtvBuyPlPDmD5wePXxao/eSQFIcQKMRk8p7GwXj4o1f+QTkiLCeFqd72K891z 7EEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=Sv31m8Jk1YC+FQzYQH7kXmWMPpdRBLIhKsSbMgHY3o4=; b=sP8OpwMyaxaPB96Q0tiLdCI5nFZ3i1m+nF8Jg1maSBYbUxLi+qCFMIVHYkH+gXKbno SpSx6s1W/lRq3l9F9AhfDD4P4j6GtLsj5AUc8izEq84SzJJgidHC/LWehlvhZ3R0dP/h RNwAMC5TvZ0wpY4uQlZAFwpirkNK0C/SSrZra6dJm9ZJyXV33UMK//bIcXfc07cEu+M5 apVOIETvu8BY7gJ+tUQwyz/Ae7ye4fChru4OF36tTneaeLdLa87dwTrl/A5D3yTEKEjy VbY0ukVUz3hjRPJdwSIeNspVcOxeIdhCj4U73abbwAY8RZOTHOLl2VNXFlyLyhUIwhhV 99Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nt+67W1K; 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 co16-20020a0564020c1000b0042bd2c39f07si1862003edb.596.2022.07.14.07.12.23; Thu, 14 Jul 2022 07:12:48 -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=Nt+67W1K; 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 S238844AbiGNOAQ (ORCPT + 99 others); Thu, 14 Jul 2022 10:00:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240386AbiGNN6p (ORCPT ); Thu, 14 Jul 2022 09:58:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F9CA1030; Thu, 14 Jul 2022 06:57:58 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 94C88620D7; Thu, 14 Jul 2022 13:57:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB2ACC34114; Thu, 14 Jul 2022 13:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657807077; bh=B3D92egulcgsm7n+0NyPggYVx4mKUFGfzEbgM/Tvgsk=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=Nt+67W1KduX3BsbSmUru6FCod7KTvA+ioLWnF26sxzcAHfSjz34RJ8PPac7yaAOmZ t8MNSLtjQ40sotrT/LNtiYlZX/H92nP0yBGVmRReE1mKvNehxMsY2b0ZZnIS19Pdlg zHQ4dwHiOPguyTlmUSDdM5BO5WGjq+m1IGH1C2vqwdrw9zWdi8VzvaHgKMCDfo7TKA j6E4O/PR7OCNYtHryj5p0WV+NVXHzjJ1Cli5CQLdEKDhv3j3Q8D8q0Y5uL1JZHBVjZ ykJo5pWwmE4x/OpaFWRVHrwhnpYCWsFbmLd5191EuVPHQLAlvuYMLN4GdHU6tG8qm4 dVsukeS0/C09g== From: Mark Brown To: vaishnav.a@ti.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: p.yadav@ti.com, vigneshr@ti.com In-Reply-To: <20220601071611.11853-1-vaishnav.a@ti.com> References: <20220601071611.11853-1-vaishnav.a@ti.com> Subject: Re: [PATCH -next] spi: cadence-quadspi: Remove spi_master_put() in probe failure path Message-Id: <165780707568.72312.6357335988927291228.b4-ty@kernel.org> Date: Thu, 14 Jul 2022 14:57:55 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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 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 Thanks! [1/1] spi: cadence-quadspi: Remove spi_master_put() in probe failure path commit: 73d5fe046270281a46344e06bf986c607632f7ea 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