summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorZhang Yi <yi.zhang@huawei.com>2021-10-08 17:38:20 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-26 11:58:36 +0100
commit7a40f3e53f5de1d6876df8a9e8025b50616b8818 (patch)
tree0c9add392336d4b83f5232f3140488ec8ad4df4a /tools/perf/scripts/python/sctop.py
parent43b81193ccb0d5c97f984817e0b690fbcaa7bc35 (diff)
quota: check block number when reading the block in quota file
commit 9bf3d20331295b1ecb81f4ed9ef358c51699a050 upstream. The block number in the quota tree on disk should be smaller than the v2_disk_dqinfo.dqi_blocks. If the quota file was corrupted, we may be allocating an 'allocated' block and that would lead to a loop in a tree, which will probably trigger oops later. This patch adds a check for the block number in the quota tree to prevent such potential issue. Link: https://lore.kernel.org/r/20211008093821.1001186-2-yi.zhang@huawei.com Signed-off-by: Zhang Yi <yi.zhang@huawei.com> Cc: stable@kernel.org Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions