Re: [PATCH v2] btrfs: Check the first key and level for cached extent buffer

2019-03-19 Thread David Sterba
On Tue, Mar 12, 2019 at 07:09:50PM +0800, Qu Wenruo wrote: > > > On 2019/3/12 下午7:07, Nikolay Borisov wrote: > > > > > > On 12.03.19 г. 11:10 ч., Qu Wenruo wrote: > >> [BUG] > >> When reading a file from a fuzzed image, kernel can panic like: > >> BTRFS warning (device loop0): csum failed roo

Re: [PATCH v2] btrfs: Check the first key and level for cached extent buffer

2019-03-12 Thread Qu Wenruo
On 2019/3/12 下午7:07, Nikolay Borisov wrote: > > > On 12.03.19 г. 11:10 ч., Qu Wenruo wrote: >> [BUG] >> When reading a file from a fuzzed image, kernel can panic like: >> BTRFS warning (device loop0): csum failed root 5 ino 270 off 0 csum >> 0x98f94189 expected csum 0x mirror 1 >>

Re: [PATCH v2] btrfs: Check the first key and level for cached extent buffer

2019-03-12 Thread Nikolay Borisov
On 12.03.19 г. 11:10 ч., Qu Wenruo wrote: > [BUG] > When reading a file from a fuzzed image, kernel can panic like: > BTRFS warning (device loop0): csum failed root 5 ino 270 off 0 csum > 0x98f94189 expected csum 0x mirror 1 > assertion failed: !memcmp_extent_buffer(b, &disk_key, of

[PATCH v2] btrfs: Check the first key and level for cached extent buffer

2019-03-12 Thread Qu Wenruo
[BUG] When reading a file from a fuzzed image, kernel can panic like: BTRFS warning (device loop0): csum failed root 5 ino 270 off 0 csum 0x98f94189 expected csum 0x mirror 1 assertion failed: !memcmp_extent_buffer(b, &disk_key, offsetof(struct btrfs_leaf, items[0].key), sizeof(disk_k