From: Greg KH <gregkh@linuxfoundation.org>
To: Pranav Tyagi <pranav.tyagi03@gmail.com>
Cc: Sasha Levin <sashal@kernel.org>, stable@vger.kernel.org
Subject: Re: [PATCH 5.15.y] xfs: fix super block buf log item UAF during force shutdown
Date: Fri, 4 Jul 2025 10:52:34 +0200 [thread overview]
Message-ID: <2025070412-underline-email-3f4d@gregkh> (raw)
In-Reply-To: <CAH4c4jLL8naS6R=8gRaVYK-bJ-oi6ioT1qmvUJy=QVzL0PBi+Q@mail.gmail.com>
On Fri, Jul 04, 2025 at 02:15:46PM +0530, Pranav Tyagi wrote:
> On Fri, Jul 4, 2025 at 1:58 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Fri, Jul 04, 2025 at 01:16:01PM +0530, Pranav Tyagi wrote:
> > > On Wed, Jun 25, 2025 at 7:39 PM Sasha Levin <sashal@kernel.org> 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<pranav.tyagi03@gmail.com>
> > > > Commit author: Guo Xuenan<guoxuenan@huawei.com>
> > > >
> > > > 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 <guoxuenan@huawei.com>
> > > > Reviewed-by: Darrick J. Wong <djwong@kernel.org>
> > > > Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> > > > + Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
> > > >
> > > > ## 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
>
> Hi Greg,
>
> Apologies for the oversight. I had assumed that a build test would
> suffice for a backport since the patch is already merged upstream. I now
> understand the importance of runtime testing, even for backports. I’ll
> test it on the XFS setup and resend the patch.
Why do you want/need this backported if it wasn't even tested? Why do
the backport at all?
confused,
greg k-h
next prev parent reply other threads:[~2025-07-04 8:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 13:48 [PATCH 5.15.y] xfs: fix super block buf log item UAF during force shutdown Pranav Tyagi
2025-06-25 14:09 ` Sasha Levin
2025-07-04 7:46 ` Pranav Tyagi
2025-07-04 8:28 ` Greg KH
2025-07-04 8:45 ` Pranav Tyagi
2025-07-04 8:52 ` Greg KH [this message]
2025-07-04 9:31 ` Pranav Tyagi
-- strict thread matches above, loose matches on Subject: below --
2024-10-10 4:58 Guo Xuenan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2025070412-underline-email-3f4d@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=pranav.tyagi03@gmail.com \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.