Whamcloud - gitweb
libext2fs: check for cyclic loops in the extent tree
authorTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jun 2022 02:49:47 +0000 (22:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jun 2022 04:01:33 +0000 (00:01 -0400)
commit2d30ab20ae4eda6660ead5c79367e91e85322233
treeb5c16dbba6cc6b66b70be3591be13932b6833384
parent8d66e7e9316002ca9f9d558069bd56ccba9cece8
libext2fs: check for cyclic loops in the extent tree

In the extent tree handling code in libext2fs, when we go move down
the extent tree, if a cyclic loop is detected, return an error.

Reported-by: Nils Bars <nils.bars@rub.de>
Reported-by: Moritz Schlögel <moritz.schloegel@rub.de>
Reported-by: Nico Schiller <nico.schiller@rub.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2_err.et.in
lib/ext2fs/extent.c