lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 06 Oct 2010 11:44:53 +0900
From:	Akira Fujita <a-fujita@...jp.nec.com>
To:	Theodore Tso <tytso@....edu>,
	ext4 development <linux-ext4@...r.kernel.org>
Subject: [BUG] ext3/ext4 migration problem with dir_nlink feature flag

Hi,

I found a bug which returns EIO by file access on ext3 (was ext4) whose
dir_nlink feature flag is removed and has more than 64000 directories.
Kernel: 2.6.36-rc6, e2fsprogs: 1.41.2
Steps to reproduce are as follows:

1. Create ext4 which does not have extent and flex_bg feature flags
    (Because this fs will be mounted as ext3 in step 3),
    then create more than 64000 directories.
    Therefore dir_nlink feature flag is set and link count becomes 1.
2. Remove dir_nlink feature flag with tune2fs command
    (e.g. tune2fs -O ^dir_nlink /dev/sdx).
3. Mount ext4 as ext3, then remove subdir (Link: 1->0).
    We cannot access parent directory, because link count goes wrong.

We should disallow tune2fs command to remove dir_nlink feature flag.

Regards,
Akira Fujita

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ