Skip to content

xfs: fix log recovery buffer allocation for the

Kevin Berry stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1xfs: fix log recovery buffer allocation for the legacy h_size fixupfs/xfs/xfs_log_recover.c+14 -60 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchBrian FosterDarrick J. Wong
1/1R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] xfs: fix log recovery buffer allocation for the

Hi folks, in order to fix CVE-2024-39472 in kernels 5.15, 6.1, and 6.6, I have adapted the mainline patch 45cf976008dd (xfs: fix log recovery buffer allocation for the legacy h_size fixup) to resolve conflicts with those kernels. Specifically, the mainline patch uses kvfree, but the amended patch uses kmem_free since kmem_free was used in xfs until patch 49292576136f (xfs: convert kmem_free() for kvmalloc users to kvfree()).

I tested the patch by applying it to the above kernels and recompiling them. I also ran xfstests on the 6.6.43 kernel with the patch applied. In my initial xfstests run, all xfs and generic tests passed except for generic/082, generic/269, generic/627, and xfs/155, but those tests all passed on a second run. I'm assuming those initial failures were unrelated to this patch, unless someone more familiar with those tests thinks otherwise.

I'd be more than happy to do any more verification or tests if they're required. Thanks!

Christoph Hellwig (1):
xfs: fix log recovery buffer allocation for the legacy h_size fixup

 fs/xfs/xfs_log_recover.c | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

base-commit: 58b0425ff5df680d0b67f64ae1f3f1ebdf1c4de9

Signature · 1 line
2.46.0.76.ge559c4bf1a-goog