diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2018-08-22 06:59:44 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-22 19:52:50 +0200 |
commit | 0afa9626667c3659ef8bd82d42a11e39fedf235c (patch) | |
tree | 9b5c96147d7eb18dc6d6b148e2f02c76b8ef9053 /fs/ocfs2 | |
parent | fat: add FITRIM ioctl for FAT file system (diff) | |
download | linux-0afa9626667c3659ef8bd82d42a11e39fedf235c.tar.xz linux-0afa9626667c3659ef8bd82d42a11e39fedf235c.zip |
fat: validate ->i_start before using
On corrupted FATfs may have invalid ->i_start. To handle it, this checks
->i_start before using, and return proper error code.
Link: http://lkml.kernel.org/r/87o9f8y1t5.fsf_-_@mail.parknet.co.jp
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Tested-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Cc: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2')
0 files changed, 0 insertions, 0 deletions