Re: [PATCH v4 3/3] btrfs: Do super block verification before writing it to disk

2018-05-25 Thread David Sterba
On Fri, May 25, 2018 at 12:43:25PM +0800, Qu Wenruo wrote: > Reported-by: Ken Swenson > Reported-by: Ben Parsons <9parso...@gmail.com> > Signed-off-by: Qu Wenruo > --- > fs/btrfs/disk-io.c | 43 +++ > 1 file changed, 43 insertions(+) > > diff --git a/fs/b

Re: [PATCH v4 3/3] btrfs: Do super block verification before writing it to disk

2018-05-25 Thread Qu Wenruo
On 2018年05月25日 14:33, Nikolay Borisov wrote: > > > On 25.05.2018 07:43, Qu Wenruo wrote: >> There are already 2 reports about strangely corrupted super blocks, >> where csum still matches but extra garbage gets slipped into super block. >> >> The corruption would looks like: >> -- >> superb

Re: [PATCH v4 3/3] btrfs: Do super block verification before writing it to disk

2018-05-24 Thread Nikolay Borisov
On 25.05.2018 07:43, Qu Wenruo wrote: > There are already 2 reports about strangely corrupted super blocks, > where csum still matches but extra garbage gets slipped into super block. > > The corruption would looks like: > -- > superblock: bytenr=65536, device=/dev/sdc1 > ---

[PATCH v4 3/3] btrfs: Do super block verification before writing it to disk

2018-05-24 Thread Qu Wenruo
There are already 2 reports about strangely corrupted super blocks, where csum still matches but extra garbage gets slipped into super block. The corruption would looks like: -- superblock: bytenr=65536, device=/dev/sdc1 - csum_type