diff options
| author | Liu Shixin <[email protected]> | 2022-04-29 21:38:04 +0000 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-29 21:38:04 +0000 |
| commit | f6e2c20ca7604e6a267c93a511d19dda72573be1 (patch) | |
| tree | 3302a5e2e1faba0acc55671c81529a4b5f07ef77 /fs/btrfs/backref.c | |
| parent | kernel: make taskstats available from all net namespaces (diff) | |
| download | kernel-f6e2c20ca7604e6a267c93a511d19dda72573be1.tar.gz kernel-f6e2c20ca7604e6a267c93a511d19dda72573be1.zip | |
fs: sysv: check sbi->s_firstdatazone in complete_read_super
sbi->s_firstinodezone is initialized to 2 and sbi->s_firstdatazone is read
from sbd. There's no guarantee that sbi->s_firstdatazone must bigger than
sbi->s_firstinodezone. If sbi->s_firstdatazone less than 2, the
filesystem can still be mounted unexpetly. At this point, sbi->s_ninodes
flip to very large value and this filesystem is broken. We can observe
this by executing 'df' command. When we execute, we will get an error
message:
"sysv_count_free_inodes: unable to read inode table"
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liu Shixin <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'fs/btrfs/backref.c')
0 files changed, 0 insertions, 0 deletions
