From: Carlos Maiolino <cem@kernel.org>
To: Raphael Pinsonneault-Thibeault <rpthibeault@gmail.com>
Cc: chandanbabu@kernel.org, djwong@kernel.org, bfoster@redhat.com,
linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+9f6d080dece587cfdd4c@syzkaller.appspotmail.com,
Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH v6] xfs: validate log record version against superblock log version
Date: Fri, 30 Jan 2026 10:52:04 +0100 [thread overview]
Message-ID: <176976672483.101188.14038361815799165327.b4-ty@kernel.org> (raw)
In-Reply-To: <20260129185020.679674-2-rpthibeault@gmail.com>
On Thu, 29 Jan 2026 13:50:21 -0500, Raphael Pinsonneault-Thibeault wrote:
> Syzbot creates a fuzzed record where xfs_has_logv2() but the
> xlog_rec_header h_version != XLOG_VERSION_2. This causes a
> KASAN: slab-out-of-bounds read in xlog_do_recovery_pass() ->
> xlog_recover_process() -> xlog_cksum().
>
> Fix by adding a check to xlog_valid_rec_header() to abort journal
> recovery if the xlog_rec_header h_version does not match the super
> block log version.
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: validate log record version against superblock log version
commit: 44b9553c3dd043f14903d8ae5d4e7a9797c6d92e
Best regards,
--
Carlos Maiolino <cem@kernel.org>
prev parent reply other threads:[~2026-01-30 9:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 18:50 Raphael Pinsonneault-Thibeault
2026-01-30 9:41 ` Carlos Maiolino
2026-01-30 9:52 ` Carlos Maiolino [this message]
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=176976672483.101188.14038361815799165327.b4-ty@kernel.org \
--to=cem@kernel.org \
--cc=bfoster@redhat.com \
--cc=chandanbabu@kernel.org \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=rpthibeault@gmail.com \
--cc=syzbot+9f6d080dece587cfdd4c@syzkaller.appspotmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®