Commit 3ddd4d87 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Xie XiuQi
Browse files

ext4: protect journal inode's blocks using block_validity

mainline inclusion
from mainline-5.2-rc1
commit 345c0dbf
category: bugfix
bugzilla: 14858
CVE: NA
---------------------------

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: default avatarTheodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org

Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 98e78e75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment