diff options
author | Zhang Yi <yi.zhang@huawei.com> | 2021-10-08 17:38:20 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-10-11 10:55:47 +0200 |
commit | 9bf3d20331295b1ecb81f4ed9ef358c51699a050 (patch) | |
tree | 2f3f6e8e8fa3d5fe79e092c152b3fedff25d259a /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | 64570fbc14f8d7cb3fe3995f20e26bc25ce4b2cc (diff) |
quota: check block number when reading the block in quota file
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>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions