]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: protect journal inode's blocks using block_validity
authorTheodore Ts'o <tytso@mit.edu>
Wed, 10 Apr 2019 03:37:08 +0000 (23:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 10 Apr 2019 03:37:08 +0000 (23:37 -0400)
commitaf3623a536a38e7cc6851e39f73e51b70c0cbefd
treea24a40bc40343396f6a776d87b5d58d83617d476
parent030d66438f89086f1ab86d9ad17737d481ec2d4e
ext4: protect journal inode's blocks using block_validity

Add the blocks which belong to the journal inode to block_validity's
system zone so attempts to deallocate or overwrite the journal due a
corrupted file system where the journal blocks are also claimed by
another inode.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202879
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/block_validity.c
fs/ext4/inode.c