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]
Date: Mon, 5 Feb 2024 11:32:49 -0500
From: "Theodore Ts'o" <tytso@....edu>
To: Ojaswin Mujoo <ojaswin@...ux.ibm.com>
Cc: linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org, jack@...e.cz,
        ritesh.list@...il.com, john.g.garry@...cle.com, djwong@...nel.org
Subject: Re: Running out of inode flags in ext4

On Mon, Feb 05, 2024 at 03:38:54PM +0530, Ojaswin Mujoo wrote:
> Hi folks,
> 
> I'm trying to rework the ext4 atomic write patchset so we have similar
> semantics as discussed here [1], which would look something like:
> 
> 1. we call FS_IOC_FSSETXATTR to enable atomic write on inode
> 
> 2. In the setxattr path, we need to mark the inode with
> atomic_write_enabled. XFS does it via an on disk inode flag which is
> straightforward enough 
> 
> However, on ext4 we are almost out of 32 bits of inode flags and I don't
> think it's possible to add any flags2 field or something (iiuc, ondisk
> indoe doesn't have scope for expansion).

We still have some unused flags.  For example,
0x01000000. 0x04000000. and 0x08000000 are still unused.  We are
starting to get close to full, so we need to be a bit careful since it
is very much a limited resource.  But we're not yet at the point where
we need to worry about trying to reuse flags like EXT4_EOFBLOCKS_FL.

Cheers,

							- Ted

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ