All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] xfs: fix log recovery buffer allocation for the
@ 2024-08-10  1:16 Kevin Berry
  2024-08-10  1:16 ` [PATCH 1/1] xfs: fix log recovery buffer allocation for the legacy h_size fixup Kevin Berry
  2024-08-12 14:41 ` [PATCH 0/1] xfs: fix log recovery buffer allocation for the Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Kevin Berry @ 2024-08-10  1:16 UTC (permalink / raw)
  To: stable; +Cc: ovt, Kevin Berry

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
-- 
2.46.0.76.ge559c4bf1a-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-12 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-10  1:16 [PATCH 0/1] xfs: fix log recovery buffer allocation for the Kevin Berry
2024-08-10  1:16 ` [PATCH 1/1] xfs: fix log recovery buffer allocation for the legacy h_size fixup Kevin Berry
2024-08-12 14:41 ` [PATCH 0/1] xfs: fix log recovery buffer allocation for the Greg KH

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.