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]
Message-ID: <87fy2rgpqs.fsf@vvv.vsu.ru>
Date:	Fri, 10 Aug 2007 23:21:15 +0400
From:	Vladimir Volovich <vvv@....ru>
To:	linux-kernel@...r.kernel.org
Subject: nfs - duplicate directory entries

Hi!

we have an NFS server (windows-based), and mount a directory from this
server on a linux box; there is some bug appearing sometimes, namely
some of the directory entries are reported twice:

$ ls | wc
   5968    5968   41776
$ ls | uniq | wc
   5964    5964   41748
$ ls | uniq -d
112920
112921
112922
112923
$ ls -li | grep '11292[0123]'
8507232 drwx------ 2 web web 64 2007-02-09 10:54 112920
8507232 drwx------ 2 web web 64 2007-02-09 10:54 112920
8507219 drwx------ 2 web web 64 2007-02-09 10:54 112921
8507219 drwx------ 2 web web 64 2007-02-09 10:54 112921
8507195 drwx------ 2 web web 64 2007-02-09 10:54 112922
8507195 drwx------ 2 web web 64 2007-02-09 10:54 112922
8507188 drwx------ 2 web web 64 2007-02-09 10:54 112923
8507188 drwx------ 2 web web 64 2007-02-09 10:54 112923

i.e. the current directory contains sub-directory 112920 twice,
sub-directory 112921 twice, etc. - and the inode numbers are the same.

i wonder if you have ever seen such strange behavior?  sometimes this
behavior is cured by unmounting and remounting the directory; but it
occurs regularly and reliably.

this does not happen if the directory from the same NFS server is
mounted on FreeBSD box.

linux version is 2.6.22 (from debian "sid").

the following information may of may not be related to the above bug:
the nfs server always reports link count for any directory as 2,
regardless of the number of subdirectories. (so e.g. find(1) says one
should use the -noleaf option).

if you need me to provide more information, please let me know.

Best,
v.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ