Re: [PATCH] fs: btrfs: limit the mapped length to the original length

2023-02-24 Thread Tom Rini
On Mon, Feb 13, 2023 at 08:37:59AM +0800, Qu Wenruo wrote: > [BUG] > There is a bug report that btrfs driver caused hang during file read: > > This breaks btrfs on the HiFive Unmatched. > > => pci enum > PCIE-0: Link up (Gen1-x8, Bus0) > => nvme scan > => load nvme 0:2 0x8c00

Re: [PATCH] fs: btrfs: limit the mapped length to the original length

2023-02-13 Thread Andreas Schwab
On Feb 13 2023, Qu Wenruo wrote: > diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c > index 4aaaeab663f5..7d4095d9ca88 100644 > --- a/fs/btrfs/volumes.c > +++ b/fs/btrfs/volumes.c > @@ -956,6 +956,7 @@ int __btrfs_map_block(struct btrfs_fs_info *fs_info, int > rw, > struct

[PATCH] fs: btrfs: limit the mapped length to the original length

2023-02-12 Thread Qu Wenruo
[BUG] There is a bug report that btrfs driver caused hang during file read: This breaks btrfs on the HiFive Unmatched. => pci enum PCIE-0: Link up (Gen1-x8, Bus0) => nvme scan => load nvme 0:2 0x8c00 /boot/dtb/sifive/hifive-unmatched-a00.dtb [hangs] [CAUSE] The reporter provided