]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix BCH_ERR_data_read_csum_err_maybe_userspace in retry path
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 11 Mar 2025 13:04:09 +0000 (09:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 16 Mar 2025 17:47:55 +0000 (13:47 -0400)
commite75993b0bf8baa48b2e96d693852191f63b615fd
treeff9eeba1dae84fb3054a8aa7050c132d26173cdd
parent943f0cfb1559ac6c9fc9082998f20dfe2aa01a74
bcachefs: Fix BCH_ERR_data_read_csum_err_maybe_userspace in retry path

When we do a read to a buffer that's mapped into userspace, it's
possible to get a spurious checksum error if userspace was modified the
buffer at the same time.

When we retry those, they have to be bounced before we know definitively
whether we're reading corrupt data.

But the retry path propagates read flags differently, so needs special
handling.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_read.c