From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9D6440DFA3 for ; Sun, 3 May 2026 11:45:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777808716; cv=none; b=afcfcF/wz/zBZCOxVSwirrenzuia+mQ7CpuOeP8pa+XRnsQCtO9AEEHYCWXOWgtPHt7Z+7bU7Xc3jvXl+ZTpmFKqzm7yXPyW4YIaUx3xqzSajr0NTi4z9vFRtn/5FhwVh3MmZWG+3nR6mP1wYo0UEiujH2BOnN0U8RuSgs2Odtg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777808716; c=relaxed/simple; bh=WrIjYAS6NT3wcQnlFibwFgKkgIKzvmiw/xDNDSR0pAw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=aRDEvrx88njSSGFAG76Q30Suv8a4cAaOCQtg9JjmoVA2Vr8RKboEoD2nMX8iq8a6NrtaKpzqwDfbxcRbEQfa/q0GYIfB/B8cZ5ayfC/g8xiwi6hisGrbToh4Th1BjEq7sruGJ4+5iTEXvOTWAygeWzGxIQ8a93J9qMYj2nPxvg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ewfWXYTq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ewfWXYTq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00C00C2BCB4; Sun, 3 May 2026 11:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777808716; bh=WrIjYAS6NT3wcQnlFibwFgKkgIKzvmiw/xDNDSR0pAw=; h=Subject:To:Cc:From:Date:From; b=ewfWXYTqJTTPs0wnqppoPGS59ZbVBC9G0nLrv3dpIBdovAu4fTZg7hNIZDQ2Wt4A8 SrNcOsDS8/kEMC2vXQf3dDfHOhhzVnzPpnl83rrJ/egLWrIBbDzV62tYp9fgUAhvsU oOEIoks4AywNlFNf3LNwjSnG3S6bAae5hsaiKzzQ= Subject: FAILED: patch "[PATCH] xfs: fix a resource leak in xfs_alloc_buftarg()" failed to apply to 6.6-stable tree To: lihaoxiang@isrc.iscas.ac.cn,cem@kernel.org,djwong@kernel.org Cc: From: Date: Sun, 03 May 2026 13:45:13 +0200 Message-ID: <2026050313-manmade-batting-5838@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 29a7b2614357393b176ef06ba5bc3ff5afc8df69 # git commit -s git send-email --to '' --in-reply-to '2026050313-manmade-batting-5838@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 29a7b2614357393b176ef06ba5bc3ff5afc8df69 Mon Sep 17 00:00:00 2001 From: Haoxiang Li Date: Wed, 1 Apr 2026 12:02:41 +0800 Subject: [PATCH] xfs: fix a resource leak in xfs_alloc_buftarg() In the error path, call fs_put_dax() to drop the DAX device reference. Fixes: 6f643c57d57c ("xfs: implement ->notify_failure() for XFS") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index ee8c3944015a..580d40a5ee57 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -1756,6 +1756,7 @@ xfs_alloc_buftarg( return btp; error_free: + fs_put_dax(btp->bt_daxdev, mp); kfree(btp); return ERR_PTR(error); }