Re: [PATCH v6] xfs: validate log record version against superblock log version

From: Carlos Maiolino

Date: Fri Jan 30 2026 - 04:52:39 EST


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@xxxxxxxxxx>