commit | 08ae93a2eda03817deabf08d4da9015a283ed56b | [log] [tgz] |
---|---|---|
author | Niu Yawei <niu@whamcloud.com> | Sat Nov 19 23:08:03 2011 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Sat Nov 19 23:11:20 2011 -0500 |
tree | 6eae7f64b209021229be882aa26c0186fb81cf0b | |
parent | 19ef479acf566343b277be3554beda7e1f400381 [diff] |
libext2fs: enforce a max nested link count in ext2fs_find_block_device() 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> Signed-off-by: Theodore Ts'o <tytso@mit.edu>