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] [day] [month] [year] [list]
Date:   Mon, 30 Oct 2017 16:35:22 +0100
From:   Pali Rohár <pali.rohar@...il.com>
To:     OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
        Andrius Štikonas <andrius@...konas.eu>,
        Curtis Gedak <gedakc@...il.com>, Andreas Bombe <aeb@...ian.org>
Cc:     linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
        Karel Zak <kzak@...hat.com>, util-linux@...r.kernel.org
Subject: Re: Changing FAT label of mounted file system

On Wednesday 06 September 2017 00:35:10 OGAWA Hirofumi wrote:
> Pali Rohár <pali.rohar@...il.com> writes:
> 
> > Hello!
> 
> Hi,
> 
> > On most file system it is possible to change its label at anytime, when 
> > mounted or unmounted. But FAT is such special file system on which is 
> > label stored in two location, plus one is in directory structure (which 
> > cannot be modified when file system is mounted).
> >
> > I would like to ask what about providing FAT specific IOCTL for vfat 
> > kernel driver which would allow to change volume label?
> 
> I have no objection to add this ioctl though, there is really needs of
> apps?

Lets ask other people, maintainers of the GUI & command line tools which
are already used by lot of users.

Andrius, Curtis and Andreas, what do you think?

> For example, ext4's volume name is sb->s_volume_name, right? And no
> ioctl to change it, so I guess the app does read-modify-write
> superblock. If so, there is theoretical race with umount and super block
> update of ext4 (yes, although updating superblock is rare timing).  So
> ext4 is unsafe actually to rewrite volume_name on the mounted fs.

You are right. But IIRC in the worst case label of ext4 would not be
changed (overwritten by the old label when kernel ext4 driver changes
superblock).

> Well, anyway, if there is the patch to add ioctl, again, I have no
> objection.
> 
> Thanks.

-- 
Pali Rohár
pali.rohar@...il.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ