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-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <59DA49F7-C44D-4C50-A9C8-55C0BB78F29C@dilger.ca>
Date:	Sun, 29 Dec 2013 11:47:21 -0700
From:	Andreas Dilger <adilger@...ger.ca>
To:	Markus Trippelsdorf <markus@...ppelsdorf.de>
Cc:	"linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>
Subject: Re: Strange "rm -fr" issue

If you are able to reproduce this issue (extract the same tree and then
try "rm -fr" again) please run this under strace to see how many entries are returned during readdir from the kernel.

It could be a bug in the ext4 readdir code or it could be a bug in glibc or coreutils. 

Cheers, Andreas

> On Dec 29, 2013, at 7:24, Markus Trippelsdorf <markus@...ppelsdorf.de> wrote:
> 
> I came across the following strange issue today:
> 
> markus@x4 tmp % rm -fr boost
> rm: cannot remove ‘boost/results/boost/bin.v2/libs’: Directory not empty
> markus@x4 tmp % ll boost/results/boost/bin.v2/libs
> total 68K
> drwxr-xr-x 17 markus markus 4.0K Dec 29 15:01 .
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 ..
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 move
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 mpl
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 msm
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_array
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_index
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 multiprecision
> drwxr-xr-x  6 markus markus 4.0K Dec 29 15:01 numeric
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 optional
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 parameter
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 phoenix
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 polygon
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 pool
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 python
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 serialization
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 test
> markus@x4 tmp % ll boost/results/boost/bin.v2/libs
> total 140K
> drwxr-xr-x 35 markus markus 4.0K Dec 29 15:01 .
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 ..
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 config
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 move
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 mpl
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 msm
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_array
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_index
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 multiprecision
> drwxr-xr-x  6 markus markus 4.0K Dec 29 15:01 numeric
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 optional
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 parameter
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 phoenix
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 polygon
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 pool
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 predef
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 preprocessor
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 program_options
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 property_map
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 property_tree
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 proto
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 ptr_container
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 python
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 random
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 range
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 ratio
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 rational
> drwxr-xr-x  5 markus markus 4.0K Dec 29 15:01 regex
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 scope_exit
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 serialization
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 signals
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 signals2
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 smart_ptr
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 spirit
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 test
> markus@x4 tmp % rm -fr boost
> markus@x4 tmp % ll boost/results/boost/bin.v2/libs
> ls: cannot access boost/results/boost/bin.v2/libs: No such file or directory
> markus@x4 tmp %
> 
> fsck.ext4 shows nothing. Kernel is latest git. coreutils-8.22.
> /dev/sda       ext4      1.8T  743G  1.1T  41% /var
> /dev/sda on /var type ext4 (rw,relatime,data=ordered)
> 
> -- 
> Markus
> --
> 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
--
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