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: <200905141414.n4EEE1QQ000441@demeter.kernel.org>
Date:	Thu, 14 May 2009 14:14:01 GMT
From:	bugzilla-daemon@...zilla.kernel.org
To:	linux-ext4@...r.kernel.org
Subject: [Bug 13292] ext4 without journal reproductible file corruption

http://bugzilla.kernel.org/show_bug.cgi?id=13292





--- Comment #2 from Thibault Mondary <thibm@...e.fr>  2009-05-14 14:14:01 ---
(In reply to comment #1)
I'am starting from a locale "fr_FR@...o" on my system.


Output WITHOUT journal :

root@...ntu ~# mount archlinux_64_minimal_ext4_without_journal.img /mnt/loop -o
loop
root@...ntu ~# chroot /mnt/loop

bash-3.2# locale-gen
Generating locales...
  fr_FR.UTF-8... done
  fr_FR.ISO-8859-1... done
  fr_FR.ISO-8859-15@...o... done
Generation complete.

bash-3.2# locale
LANG=fr_FR@...o
LC_CTYPE="fr_FR@...o"
LC_NUMERIC="fr_FR@...o"
LC_TIME="fr_FR@...o"
LC_COLLATE="fr_FR@...o"
LC_MONETARY="fr_FR@...o"
LC_MESSAGES="fr_FR@...o"
LC_PAPER="fr_FR@...o"
LC_NAME="fr_FR@...o"
LC_ADDRESS="fr_FR@...o"
LC_TELEPHONE="fr_FR@...o"
LC_MEASUREMENT="fr_FR@...o"
LC_IDENTIFICATION="fr_FR@...o"
LC_ALL=

bash-3.2# exit
root@...ntu:~# umount /mnt/loop

root@...ntu:~# mount archlinux_64_minimal_ext4_without_journal.img /mnt/loop -o
loop
root@...ntu ~# chroot /mnt/loop

********BEGINNING OF THE PROBLEM : locales are normally generated from previous
mount**********

bash-3.2# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr_FR@...o
LC_CTYPE="fr_FR@...o"
LC_NUMERIC="fr_FR@...o"
LC_TIME="fr_FR@...o"
LC_COLLATE="fr_FR@...o"
LC_MONETARY="fr_FR@...o"
LC_MESSAGES="fr_FR@...o"
LC_PAPER="fr_FR@...o"
LC_NAME="fr_FR@...o"
LC_ADDRESS="fr_FR@...o"
LC_TELEPHONE="fr_FR@...o"
LC_MEASUREMENT="fr_FR@...o"
LC_IDENTIFICATION="fr_FR@...o"
LC_ALL=

bash-3.2# LANG=fr_FR
bash-3.2# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr_FR
LC_CTYPE="fr_FR"
LC_NUMERIC="fr_FR"
LC_TIME="fr_FR"
LC_COLLATE="fr_FR"
LC_MONETARY="fr_FR"
LC_MESSAGES="fr_FR"
LC_PAPER="fr_FR"
LC_NAME="fr_FR"
LC_ADDRESS="fr_FR"
LC_TELEPHONE="fr_FR"
LC_MEASUREMENT="fr_FR"
LC_IDENTIFICATION="fr_FR"
LC_ALL=

**********END************


*************VERSION 2 : adding a journal to the image ************

root@...ntu:~# tune2fs -O has_journal
archlinux_64_minimal_ext4_without_journal.img
tune2fs 1.41.4 (27-Jan-2009)
Création de l'i-noeud du journal : complété
Le système de fichiers sera automatiquement vérifié tous les 39 montages ou
après 180 jours, selon la première éventualité. Utiliser tune2fs -c ou -i
pour écraser la valeur.

root@...ntu:~# e2fsck -f archlinux_64_minimal_ext4_without_journal.img
e2fsck 1.41.4 (27-Jan-2009)
Passe 1 : vérification des i-noeuds, des blocs et des tailles
Passe 2 : vérification de la structure des répertoires
Passe 3 : vérification de la connectivité des répertoires
Passe 4 : vérification des compteurs de référence
Passe 5 : vérification de l'information du sommaire de groupe
archlinux_64_minimal_ext4_without_journal.img : 21848/65536 fichiers (0.1%
nontigus), 86608/262144 blocs

root@...ntu:~# mount archlinux_64_minimal_ext4_without_journal.img /mnt/loop -o
loop
root@...ntu:~# chroot /mnt/loop

bash-3.2# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr_FR@...o
LC_CTYPE="fr_FR@...o"
LC_NUMERIC="fr_FR@...o"
LC_TIME="fr_FR@...o"
LC_COLLATE="fr_FR@...o"
LC_MONETARY="fr_FR@...o"
LC_MESSAGES="fr_FR@...o"
LC_PAPER="fr_FR@...o"
LC_NAME="fr_FR@...o"
LC_ADDRESS="fr_FR@...o"
LC_TELEPHONE="fr_FR@...o"
LC_MEASUREMENT="fr_FR@...o"
LC_IDENTIFICATION="fr_FR@...o"
LC_ALL=

bash-3.2# locale-gen
Generating locales...
  fr_FR.UTF-8... done
  fr_FR.ISO-8859-1... done
  fr_FR.ISO-8859-15@...o... done
Generation complete.

bash-3.2# locale
LANG=fr_FR@...o
LC_CTYPE="fr_FR@...o"
LC_NUMERIC="fr_FR@...o"
LC_TIME="fr_FR@...o"
LC_COLLATE="fr_FR@...o"
LC_MONETARY="fr_FR@...o"
LC_MESSAGES="fr_FR@...o"
LC_PAPER="fr_FR@...o"
LC_NAME="fr_FR@...o"
LC_ADDRESS="fr_FR@...o"
LC_TELEPHONE="fr_FR@...o"
LC_MEASUREMENT="fr_FR@...o"
LC_IDENTIFICATION="fr_FR@...o"
LC_ALL=

bash-3.2# exit
root@...ntu:~# umount /mnt/loop 

root@...ntu:~# mount archlinux_64_minimal_ext4_without_journal.img /mnt/loop -o
loop
root@...ntu:~# chroot /mnt/loop
*****************HERE, NO PROBLEM, locales are taken from previous
session*******

bash-3.2# locale
LANG=fr_FR@...o
LC_CTYPE="fr_FR@...o"
LC_NUMERIC="fr_FR@...o"
LC_TIME="fr_FR@...o"
LC_COLLATE="fr_FR@...o"
LC_MONETARY="fr_FR@...o"
LC_MESSAGES="fr_FR@...o"
LC_PAPER="fr_FR@...o"
LC_NAME="fr_FR@...o"
LC_ADDRESS="fr_FR@...o"
LC_TELEPHONE="fr_FR@...o"
LC_MEASUREMENT="fr_FR@...o"
LC_IDENTIFICATION="fr_FR@...o"
LC_ALL=


exit, umount...






> I would be interested to know what your actual output looks like.  I've tried
> to reproduce this and don't seem to be able to, at least not in my environment.
> 
> My attempts looked like:
> [/root]# mount -t ext4 -o loop
> /foo/archlinux_64_minimal_ext4_without_journal.img /mnt
> [/root]# chroot /mnt
> bash-3.2# locale-gen
> Generating locales...
>   fr_FR.UTF-8... done
>   fr_FR.ISO-8859-1... done
>   fr_FR.ISO-8859-15@...o... done
> Generation complete.
> bash-3.2# locale
> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory
> locale: Cannot set LC_ALL to default locale: No such file or directory
> LANG=en_US
> LC_CTYPE="en_US"
> LC_NUMERIC="en_US"
> LC_TIME="en_US"
> LC_COLLATE="en_US"
> LC_MONETARY="en_US"
> LC_MESSAGES="en_US"
> LC_PAPER="en_US"
> LC_NAME="en_US"
> LC_ADDRESS="en_US"
> LC_TELEPHONE="en_US"
> LC_MEASUREMENT="en_US"
> LC_IDENTIFICATION="en_US"
> LC_ALL=
> bash-3.2# LANG=fr_FR
> bash-3.2# locale
> LANG=fr_FR
> LC_CTYPE="fr_FR"
> LC_NUMERIC="fr_FR"
> LC_TIME="fr_FR"
> LC_COLLATE="fr_FR"
> LC_MONETARY="fr_FR"
> LC_MESSAGES="fr_FR"
> LC_PAPER="fr_FR"
> LC_NAME="fr_FR"
> LC_ADDRESS="fr_FR"
> LC_TELEPHONE="fr_FR"
> LC_MEASUREMENT="fr_FR"
> LC_IDENTIFICATION="fr_FR"
> LC_ALL=
> bash-3.2# exit
> [/root]# umount /mnt
> [/root]# mount -t ext4 -o loop
> /foo/archlinux_64_minimal_ext4_without_journal.img /mnt
> [/root]# chroot /mnt
> bash-3.2# locale
> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory
> locale: Cannot set LC_ALL to default locale: No such file or directory
> LANG=en_US
> LC_CTYPE="en_US"
> LC_NUMERIC="en_US"
> LC_TIME="en_US"
> LC_COLLATE="en_US"
> LC_MONETARY="en_US"
> LC_MESSAGES="en_US"
> LC_PAPER="en_US"
> LC_NAME="en_US"
> LC_ADDRESS="en_US"
> LC_TELEPHONE="en_US"
> LC_MEASUREMENT="en_US"
> LC_IDENTIFICATION="en_US"
> LC_ALL=
> bash-3.2# LANG=fr_FR
> bash-3.2# locale
> LANG=fr_FR
> LC_CTYPE="fr_FR"
> LC_NUMERIC="fr_FR"
> LC_TIME="fr_FR"
> LC_COLLATE="fr_FR"
> LC_MONETARY="fr_FR"
> LC_MESSAGES="fr_FR"
> LC_PAPER="fr_FR"
> LC_NAME="fr_FR"
> LC_ADDRESS="fr_FR"
> LC_TELEPHONE="fr_FR"
> LC_MEASUREMENT="fr_FR"
> LC_IDENTIFICATION="fr_FR"
> LC_ALL=
> bash-3.2#

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.--
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