Re: [PATCH] btrfs: tree-checker: Check item size before reading file extent type

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

 



On Tue, Sep 03, 2019 at 07:46:19AM +0800, Qu Wenruo wrote:
> In check_extent_data_item(), we read file extent type without verifying
> if the item size is valid.
> 
> Add such check to ensure the file extent type we read is correct.
> 
> The check is not as accurate as we need to cover both inline and regular
> extents, so it only checks if the item size is larger or equal to inline
> header.
> So the existing size checks on inline/regular extents are still needed.
> 
> Signed-off-by: Qu Wenruo <wqu@xxxxxxxx>

I lost track of this patch, now added to for-next. Thanks.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux