Whamcloud - gitweb
LU-997 libext2fs: enforce a max nested link count 75/1975/1
authorNiu Yawei <niu@whamcloud.com>
Mon, 16 Jan 2012 09:01:10 +0000 (01:01 -0800)
committerNiu Yawei <niu@whamcloud.com>
Mon, 16 Jan 2012 09:01:10 +0000 (01:01 -0800)
commit436c9802037e5fe57b3d805cc8b1802136072bb4
tree70b3e40f6f40b728373495d311088c3790e77ec4
parentbc526c65d2a4cf0c6c04e9ed4837d6dd7dbbf2b3
LU-997 libext2fs: enforce a max nested link count

Port the 'max nested link count' fix from upstream e2fsprogs:

Define EXT2FS_MAX_NESTED_LINKS as 8, and check the link count to make
sure we don't exceed it in ext2fs_find_block_device() and
follow_link().  This fixes a potential infinite loop in
ext2fs_find_block_device() if there are symbolic loop links in the
device directory.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I30940cccfbbc8df8f3b31abed5a7038fb08c1ff6
patches/e2fsprogs-max-linkcount-fix.patch [new file with mode: 0644]
patches/series