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 A64E12DAFD2 for ; Fri, 4 Jul 2025 08:28:44 +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=1751617724; cv=none; b=Ma4m0Zrgz635eiY1D5bcDVZOyjgHhQ8EydG1SxV3PLPnOMZIX8UHdK40cezu3vKxJ+yM7uzWyCXDSH7/c5/xEFB6CWfbodSA2Bvj1Zq6XN0M/FtHj7QGNCkZ8RTIx73rXpbCP5JIFsNR7D5CePsUCeMfd14mazTZ5TFgj4fePgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751617724; c=relaxed/simple; bh=j3Msyy+wzda8INkC+KR80QnUvM3eqjRSduXrv8zt/Uc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=koMiKchhVuvZtALs0I+JmJdnAAzS3yK6ghEymYSIO7Or1v4+eUhPDU+rHMvX3MGUpTPAjJMHWbkdIdlNhZ9vHXVI4MAzbXJ2Q/HMOfHG3YJAOx7v8kD+UnJbACZ5/6IQBuLKu5qda7U6JCrCPe0r9tHs10t1Gc38BgajICF4b+k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uTROTwnb; 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="uTROTwnb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAA49C4CEE3; Fri, 4 Jul 2025 08:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751617724; bh=j3Msyy+wzda8INkC+KR80QnUvM3eqjRSduXrv8zt/Uc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uTROTwnbxtpWo4XA17SncbxW+IPaHzIYWkWRGzc0MRGVg0EwI1wKYmNkaClM9v3wl MWCixa7klPFI3sGBj9UxAT6/09X8R9S53sB5lOg50AvMM64ZnWGRSORatFcNJxk1g7 C8UKqZ/JFV0351PS6Ry4vYiqHodOOm6WgikWJkBU= Date: Fri, 4 Jul 2025 10:28:36 +0200 From: Greg KH To: Pranav Tyagi Cc: Sasha Levin , stable@vger.kernel.org Subject: Re: [PATCH 5.15.y] xfs: fix super block buf log item UAF during force shutdown Message-ID: <2025070449-lubricant-bullish-4653@gregkh> References: <20250624134840.47853-1-pranav.tyagi03@gmail.com> <20250624191559-d8d1fb6d1407e834@stable.kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Jul 04, 2025 at 01:16:01PM +0530, Pranav Tyagi wrote: > On Wed, Jun 25, 2025 at 7:39 PM Sasha Levin wrote: > > > > [ Sasha's backport helper bot ] > > > > Hi, > > > > ✅ All tests passed successfully. No issues detected. > > No action required from the submitter. > > > > The upstream commit SHA1 provided is correct: 575689fc0ffa6c4bb4e72fd18e31a6525a6124e0 > > > > WARNING: Author mismatch between patch and upstream commit: > > Backport author: Pranav Tyagi > > Commit author: Guo Xuenan > > > > Status in newer kernel trees: > > 6.15.y | Present (exact SHA1) > > 6.12.y | Present (exact SHA1) > > 6.6.y | Present (exact SHA1) > > 6.1.y | Present (different SHA1: 0d889ae85fcf) > > > > Note: The patch differs from the upstream commit: > > --- > > 1: 575689fc0ffa6 ! 1: 9876b048d8f68 xfs: fix super block buf log item UAF during force shutdown > > @@ Metadata > > ## Commit message ## > > xfs: fix super block buf log item UAF during force shutdown > > > > + [ Upstream commit 575689fc0ffa6c4bb4e72fd18e31a6525a6124e0 ] > > + > > xfs log io error will trigger xlog shut down, and end_io worker call > > xlog_state_shutdown_callbacks to unpin and release the buf log item. > > The race condition is that when there are some thread doing transaction > > @@ Commit message > > ================================================================== > > Disabling lock debugging due to kernel taint > > > > + [ Backport to 5.15: context cleanly applied with no semantic changes. > > + Build-tested. ] > > + > > Signed-off-by: Guo Xuenan > > Reviewed-by: Darrick J. Wong > > Signed-off-by: Darrick J. Wong > > + Signed-off-by: Pranav Tyagi > > > > ## fs/xfs/xfs_buf_item.c ## > > @@ fs/xfs/xfs_buf_item.c: xfs_buf_item_relse( > > --- > > > > Results of testing on various branches: > > > > | Branch | Patch Apply | Build Test | > > |---------------------------|-------------|------------| > > | stable/linux-5.15.y | Success | Success | > > Hi, > > Just following up on this 5.15.y backport. > Please let me know if anything else is needed from my side. xfs patches need to go through the xfs maintainers for their approval. "build tested" just doesn't cut it at all, you MUST actually test this at runtime. Otherwise, why would you even want this patch applied if you don't have xfs systems that you care about? thanks, greg k-h