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 050F140DFA3 for ; Sun, 3 May 2026 11:45:24 +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=1777808725; cv=none; b=Km9OUp2WXab5PnqqwpXGaGdcWB26D3NesHP9fcqxBYADL0jKgeXImpdbPn4O06K+1+/jf7m9i62LbWs026ci3iSiyWXa8EmXrANCKG7BF16lAv1B7f62D4UWVFj1iruCrLHPA3pY8nG/HohXojRp9wy7uyue8pSi5tUwYJcHwKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777808725; c=relaxed/simple; bh=Or7EaTc6SQUmcDkCkydrNes75sUw/eJmtRyWan/8bno=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=PyLTw/PYgla3cAzzJ9q2l6chezh2GYFSWdZ6KPe75eAfA2ZL9wYqead41Tk72tN6cXLiCQYAxvTjlIhnxcy5BTeJESDYFGYpToJr9VYR+aGOfdk0QSweBKLaLIeKd9m7DWmH7OPURPNe3Dpprsdkr4M98zLWvUJrC2yJ0loDnVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2hj2uPIR; 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="2hj2uPIR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63153C2BCB4; Sun, 3 May 2026 11:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777808724; bh=Or7EaTc6SQUmcDkCkydrNes75sUw/eJmtRyWan/8bno=; h=Subject:To:Cc:From:Date:From; b=2hj2uPIReHZ1xFAhNJ6mV2qtCdhLMfx5F7zPoshCW+RR9xKd/T5HT206jPVrVc8UD iYSrV0CMn0ZuvZ2NWiO77G1YN3a7lwoPDgXYweT6OjzXxOPPYe7ymItFFjST1qIZgx zpV4By313t9vQA+6RfC1FfpEM9HJPukZ4OF3zgrg= Subject: FAILED: patch "[PATCH] xfs: fix a resource leak in xfs_alloc_buftarg()" failed to apply to 6.1-stable tree To: lihaoxiang@isrc.iscas.ac.cn,cem@kernel.org,djwong@kernel.org Cc: From: Date: Sun, 03 May 2026 13:45:14 +0200 Message-ID: <2026050314-humming-baboon-4d05@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.1-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.1.y git checkout FETCH_HEAD git cherry-pick -x 29a7b2614357393b176ef06ba5bc3ff5afc8df69 # git commit -s git send-email --to '' --in-reply-to '2026050314-humming-baboon-4d05@gregkh' --subject-prefix 'PATCH 6.1.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); }