public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: fix use-after-free in btrfs_encoded_read_endio
@ 2024-11-11  9:28 Johannes Thumshirn
  2024-11-11  9:28 ` [PATCH 1/2] " Johannes Thumshirn
  2024-11-11  9:28 ` [PATCH 2/2] btrfs: simplify waiting for encoded read endios Johannes Thumshirn
  0 siblings, 2 replies; 10+ messages in thread
From: Johannes Thumshirn @ 2024-11-11  9:28 UTC (permalink / raw)
  To: linux-btrfs
  Cc: Damien Le Moal, Johannes Thumshirn, Johannes Thumshirn,
	Mark Harmstone, Omar Sandoval

Shinichiro reported a occassional memory corruption in our CI system with
btrfs/248 that lead to panics. He also managed to reproduce this
corruption reliably on one host. See patch 1/2 for details on the
corruption and the fix, patch 2/2 is a cleanup Damien suggested on top of
the fix to make the code more obvious.

Mark, I've tried your test tool for the encoded read io_uring path, but didn't
succeed building it. Can you please have a look at these patches with an
io_uring hat on?

Johannes Thumshirn (2):
  btrfs: fix use-after-free in btrfs_encoded_read_endio
  btrfs: simplify waiting for encoded read endios

 fs/btrfs/inode.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-11-11 18:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11  9:28 [PATCH 0/2] btrfs: fix use-after-free in btrfs_encoded_read_endio Johannes Thumshirn
2024-11-11  9:28 ` [PATCH 1/2] " Johannes Thumshirn
2024-11-11 13:27   ` Filipe Manana
2024-11-11 13:44     ` Damien Le Moal
2024-11-11 14:21       ` Filipe Manana
2024-11-11 18:17   ` Mark Harmstone
2024-11-11  9:28 ` [PATCH 2/2] btrfs: simplify waiting for encoded read endios Johannes Thumshirn
2024-11-11  9:56   ` Damien Le Moal
2024-11-11 10:13     ` Johannes Thumshirn
2024-11-11 18:36   ` Mark Harmstone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox