Hi,
From: Filipe Manana fdmanana@suse.com
commit 939b656bc8ab203fdbde26ccac22bcb7f0985be5 upstream.
During an append (O_APPEND write flag) direct IO write if the input buffer was not previously faulted in, we can corrupt the file in a way that the final size is unexpected and it includes an unexpected hole.
Could we apply the patch 70f1e5b6db56ae99ede369d25d5996fa50d7bb74 btrfs: rename err to ret in btrfs_direct_write() to 6.6 stable, and then rebase this patch?
Best Regards Wang Yugui (wangyugui@e16-tech.com) 2024/08/08