]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: fix ext2fs_link() when the directory has an extent tree depth > 1
authorTheodore Ts'o <tytso@mit.edu>
Fri, 6 Jun 2025 22:52:13 +0000 (18:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Jun 2025 22:52:13 +0000 (18:52 -0400)
commit205ea4dea7174997b28ad0dffdd6b861af8798f8
treea114d17662f631a9d6f0e9fdb1643a8bfda538aa
parentb914701223255c116745a11f30563652c9fdbb4b
libext2fs: fix ext2fs_link() when the directory has an extent tree depth > 1

Ext2fs_link() was passing the wrong inode number to ext2fs_bmap(); as
a result, when a directory inode was using extents and the extent tree
depth was greater than 1, the extent tree checksum would be
incorrectly calculated resulting in a error that the extent tree block
checksum was incorrect.

Fixes: 53aa6c54224f ("libext2fs: add the EXT2FS_LINK_APPEND flag ...)
Addresses-Debian-Bug: #1106854
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/link.c