Re: [f2fs-dev] [PATCH 1/1] f2fs: fix validation of the block count in sanity_check_raw_super

2018-12-24 Thread Chao Yu
On 2018/12/22 19:08, Martin Blumenstingl wrote: > On Sat, Dec 22, 2018 at 8:00 AM kbuild test robot wrote: >> >> Hi Martin, >> >> Thank you for the patch! Perhaps something to improve: >> >> [auto build test WARNING on f2fs/dev-test] >> [also build test WARNING on v4.20-rc7 next-20181221] >> [if

Re: [f2fs-dev] [PATCH 1/1] f2fs: fix validation of the block count in sanity_check_raw_super

2018-12-22 Thread Martin Blumenstingl via Linux-f2fs-devel
On Sat, Dec 22, 2018 at 8:00 AM kbuild test robot wrote: > > Hi Martin, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on f2fs/dev-test] > [also build test WARNING on v4.20-rc7 next-20181221] > [if your patch is applied to the wrong git tree, please drop

Re: [f2fs-dev] [PATCH 1/1] f2fs: fix validation of the block count in sanity_check_raw_super

2018-12-21 Thread Chao Yu
On 2018/12/22 3:28, Martin Blumenstingl wrote: > Treat "block_count" from struct f2fs_super_block as 64-bit little endian > value in sanity_check_raw_super() because struct f2fs_super_block > declares "block_count" as "__le64". > > This fixes a bug where the superblock validation fails on big

[f2fs-dev] [PATCH 1/1] f2fs: fix validation of the block count in sanity_check_raw_super

2018-12-21 Thread Martin Blumenstingl via Linux-f2fs-devel
Treat "block_count" from struct f2fs_super_block as 64-bit little endian value in sanity_check_raw_super() because struct f2fs_super_block declares "block_count" as "__le64". This fixes a bug where the superblock validation fails on big endian devices with the following error: F2FS-fs (sda1):