diff options
| author | Jan Kara <[email protected]> | 2022-05-18 09:33:29 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-05-24 19:34:13 +0000 |
| commit | 3ba733f879c2a88910744647e41edeefbc0d92b2 (patch) | |
| tree | b23ac2e1ccd5cd223ccc7cd51ae101698624cc2b /fs/jbd2/commit.c | |
| parent | ext4: verify dir block before splitting it (diff) | |
| download | kernel-3ba733f879c2a88910744647e41edeefbc0d92b2.tar.gz kernel-3ba733f879c2a88910744647e41edeefbc0d92b2.zip | |
ext4: avoid cycles in directory h-tree
A maliciously corrupted filesystem can contain cycles in the h-tree
stored inside a directory. That can easily lead to the kernel corrupting
tree nodes that were already verified under its hands while doing a node
split and consequently accessing unallocated memory. Fix the problem by
verifying traversed block numbers are unique.
Cc: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
