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>] [day] [month] [year] [list]
Message-ID: <20130128173647.GA23868@gmail.com>
Date:	Tue, 29 Jan 2013 01:36:47 +0800
From:	Zheng Liu <gnehzuil.liu@...il.com>
To:	linux-ext4@...r.kernel.org
Subject: punch command works incorrect in debugfs

Hi all,

I found a bug in debugfs that 'punch' command work incorrect for a
indirect-based file.  The bug can be triggered by the following
commands, and it seems that the problem is in libext2fs library.  I
file this bug in mailing list because I have no time to look at it
carefully and I doubt that this command is not used frequently.

[reproduce steps]
  sudo mkfs.ext4 -O ^extent ${DEV}
  sudo mount -t ext4 ${DEV} ${MNT}
  sudo dd if=/dev/zero of=${MNT}/punch-file bs=4k count=16
  sync
  sudo umount ${MNT}
  sudo debugfs ${DEV} -R 'stat punch-file'
  sudo debugfs -w ${DEV} -R 'punch punch-file 4 6'
  sudo debugfs ${DEV} -R 'stat punch-file'

[expected result]
...
BLOCKS:
(0-3):34304-34307, (6-11):34310-34315, (IND):33793, (12-15):34316-34319
...

[wrong result]
...
BLOCKS:
(0-11):34304-34315, (IND):33793, (12-15):34316-34319
...

Regards,
                                                - Zheng
--
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