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: <20080319085235.GA6752@skywalker>
Date:	Wed, 19 Mar 2008 14:22:35 +0530
From:	"Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>
To:	Mingming Cao <cmm@...ibm.com>, Eric Sandeen <sandeen@...hat.com>
Cc:	ext4 <linux-ext4@...r.kernel.org>
Subject: BUG with delayed allocation

Hi,

Eric actually observed it yesterday. I am able to reproduce it locally.
With delayed allocation we are observing wrong value of i_size.

kenrel: 2.6.25-rc5 +
With all the patches in the patch queue
--------------------------------
#cd /mnt/tmp/test/
#cp -aRx / .

root@...3a69:/mnt/tmp# ls -ali ./test/usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd
338219 -rw-r--r-- 1 root root 0 Mar 19 06:22 ./test/usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd
root@...3a69:/mnt/tmp# du -h ./test/usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd
20K     ./test/usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd
root@...3a69:/mnt/tmp# ls -al /usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd
-rw-r--r-- 1 root root 18288 Mar 19 06:22 /usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd
root@...3a69:/mnt/tmp# df -h . 
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              26G  1.6G   23G   7% /mnt/tmp
root@...3a69:/mnt/tmp# 


root@...3a69:~# /usr/local/e2fsprogs/sbin/e2fsck  -f /dev/sda3
e2fsck 1.40.8 (13-Mar-2008)
Pass 1: Checking inodes, blocks, and sizes
Inode 289088, i_size is 1720320, should be 1744896.  Fix<y>? yes
Inode 338219, i_size is 0, should be 20480.  Fix<y>? yes
Inode 338220, i_size is 0, should be 28672.  Fix<y>? yes
Inode 363056, i_size is 1896448, should be 1908736.  Fix<y>? yes
Inode 369671, i_size is 4096, should be 24576.  Fix<y>? yes
Inode 369672, i_size is 0, should be 16384.  Fix<y>? yes
Inode 369673, i_size is 0, should be 16384.  Fix<y>? yes
Inode 369674, i_size is 0, should be 16384.  Fix<y>? yes
Inode 369675, i_size is 0, should be 16384.  Fix<y>? yes
Inode 369676, i_size is 0, should be 20480.  Fix<y>? yes
Inode 369677, i_size is 0, should be 24576.  Fix<y>? yes
Inode 369678, i_size is 0, should be 16384.  Fix<y>? yes
Inode 369679, i_size is 0, should be 24576.  Fix<y>? yes
Inode 369680, i_size is 0, should be 16384.  Fix<y>? yes
Inode 369681, i_size is 0, should be 20480.  Fix<y>? yes
Inode 369682, i_size is 0, should be 16384.  Fix<y>? yes
Inode 369683, i_size is 0, should be 24576.  Fix<y>? yes


Without delayed allocation patches
-------------------------
(patches till stable-boundary-undo.patch)

root@...3a69:/mnt/tmp# ls -ali ./test/usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd
1476943 -rw-r--r-- 1 root root 18288 Mar 19 08:12 ./test/usr/local/autobench/var/tmp/build/fs/.dcache.o.cmd


root@...3a69:~# /usr/local/e2fsprogs/sbin/e2fsck -f /dev/sda3 
e2fsck 1.40.8 (13-Mar-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda3: 79751/1712128 files (0.0% non-contiguous), 516378/6837665 blocks

--
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