Re: [PATCH for 6.6 stable] btrfs: fix corruption after buffer fault in during direct IO append write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> From: Filipe Manana <fdmanana@xxxxxxxx>
> 
> 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@xxxxxxxxxxxx)
2024/08/08





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux