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:   Sat, 3 Mar 2018 15:23:55 -0500
From:   Theodore Ts'o <tytso@....edu>
To:     Eric Biggers <ebiggers3@...il.com>
Cc:     linux-ext4@...r.kernel.org, Eric Biggers <ebiggers@...gle.com>
Subject: Re: [02/10] libext2fs: make sure the system.data xattr gets created

On Fri, Mar 02, 2018 at 04:59:15PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@...gle.com>
> 
> Both the kernel and e2fsck expect that if an inode has inline data, then
> it contains a "system.data" xattr -- even if i_size <= 60 so the data
> fits entirely in i_block.
> 
> But if a symlink of exactly 60 bytes (not counting a NUL terminator) was
> created using ext2fs_symlink() and the inline data feature was enabled,
> then the symlink inode ended up with inline data but without a
> system.data xattr.  This is possible because "fast" symlinks store a NUL
> terminator but inline data symlinks do not.  So 60 bytes is too long for
> a real fast symlink, but still short enough to fit the entire target in
> i_block as a "slow" symlink using inline data.
> 
> Some places use ext2fs_inline_data_init() to ensure the system.data
> xattr is created, but the symlink path does not.
> 
> Fix this by making ext2fs_inline_data_set() set system.data to an empty
> string when i_size <= 60.
> 
> Fixes: 54e880b870f7 ("libext2fs: handle inline data in read/write function")
> Signed-off-by: Eric Biggers <ebiggers@...gle.com>

Applied, thanks.

						- Ted

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ