Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2160844iof; Tue, 7 Jun 2022 21:47:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVqwkZaT/MJPNUI0w004I2X7/HAT5LdxmgVkjrwiHjy+mc07JgfYlbln54onhphNB6nvX7 X-Received: by 2002:a63:c5c:0:b0:3fd:6053:807d with SMTP id 28-20020a630c5c000000b003fd6053807dmr17388169pgm.526.1654663622530; Tue, 07 Jun 2022 21:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654663622; cv=none; d=google.com; s=arc-20160816; b=IlGX2Ug92UdK7iM+rDFsaQ7v52lRi6mmNcssa0JXTeTRanafyLbu5+b5I9s6MeeDa2 ViIJ0/Pw7bXHHfC60PN9MvVBuFYOMJxjwA1b9k9B2TY0EGgLtDJjk7EDHEW4yatwCbwC uY6kkobaREi09LT9Oo6pChRAIOEkIKg58ZVLv1RF/m5WiwS1gcV+UFqLUJqo6re4pdXI nETPRXd+BiVHrCq8yZGLiy1FccNnWD2hZqUxhPpPx7m4KHNIvhMUgqjQ6dVv0JkY54Nv 5PALD/xBrBoVNFogI0u+sgRV+LJV9j4WX24O4CxIr/uBhO7k3oMqfaseTXTzmBHTz27p U/lw== 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=sXsptIX/MWyQYuE6Mpy/H0KKSZ18GsFXXPgIRZyuR4c=; b=VUfaeEOrTEU0sB2eT4BIS2kNu0jZHWGeZJtxZin/dkjB3mGwjL2IUecobbq8TMa57Q uXKKT+dyRcdVl+cDUk083wZTkyRoBNYNcCDwKiUjvrMKp7B9tx6IMoJVYsZiDzvWKxZE YB2Wopo9KZ6ccXlkvxa93KTPzAUi/JWmNcDtiTV/ZLvKoOJznHgAcepGuNpfHDGV+phP Ipfw2sfM/ZYmOC8J7KQM1tnELw0UjFl/S1yOSc9Mn3RWrf+DVx54j5wHEf+nV8LMYjmt 3gXLz29IC+1YEUTF3ikzoWu+c55RIHlhXqla5pCslKeZ0mUUXgYfrbFYw8L7KmnfJ1J5 3hrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h4p52V/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m189-20020a633fc6000000b003fc6a2458b6si13903837pga.350.2022.06.07.21.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h4p52V/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 619B62DABC4; Tue, 7 Jun 2022 21:17:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241802AbiFGKsn (ORCPT + 99 others); Tue, 7 Jun 2022 06:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241791AbiFGKru (ORCPT ); Tue, 7 Jun 2022 06:47:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24397ED724; Tue, 7 Jun 2022 03:46:50 -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 7485AB81F06; Tue, 7 Jun 2022 10:46:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E277C34114; Tue, 7 Jun 2022 10:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654598808; bh=EqeS6NbzqWwmRkfg8oDB/9xKcFwc2slbkLCUmJHM7mA=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=h4p52V/viEECsovLapmkxiQU/zQfD5GXTvBkeHe6qFhWIY2CgIsOiFhGWw17Z/cvH yYZZy0XM2WuCY0sXqKqjjST/mp5wMnd7L+Amg6YNyIPbGszfwpnYFBdixb3gZo7nv5 orWld6P7W0UnbFq4pkbffA93I3DbPfjruyZXCjrHOb7CC9kgL0P/fIFMARvt3shWHE aRyOM7Ls0jJE1jci3e9WfRMcWyZYwjKnKLGILW2H/nEBPUVejs1M3sBdVUP93u0fwa F0CHoq0fdQEjOiq0fpw50OGYHpTjOmeZDHtMl3imsl3AyIkAsmLhM2kHr2+0Ofi4TJ k6ewfxmiDu4iQ== From: Mark Brown To: vaishnav.a@ti.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: vigneshr@ti.com, p.yadav@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: <165459880689.302078.15844858048042907353.b4-ty@kernel.org> Date: Tue, 07 Jun 2022 11:46:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: 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