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: <20160326061007.GA24620@zzz>
Date:	Sat, 26 Mar 2016 01:10:07 -0500
From:	Eric Biggers <ebiggers3@...il.com>
To:	Jaegeuk Kim <jaegeuk@...nel.org>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Linux FS Dev Mailing List <linux-fsdevel@...r.kernel.org>,
	Linux F2FS Dev Mailing List 
	<linux-f2fs-devel@...ts.sourceforge.net>
Subject: Re: [GIT PULL] f2fs updates for v4.6

Why was the XTS tweak initialization changed in commit 0b81d0779072 ("fs crypto:
move per-file encryption from f2fs tree to fs/crypto")?

Old code:

       memcpy(xts_tweak, &index, sizeof(index));
       memset(&xts_tweak[sizeof(index)], 0,
                       F2FS_XTS_TWEAK_SIZE - sizeof(index));

New code:
       memcpy(xts_tweak, &inode->i_ino, sizeof(index));
       memset(&xts_tweak[sizeof(index)], 0,
                       FS_XTS_TWEAK_SIZE - sizeof(index));

Now the XTS tweak is the same for all pages of each inode.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ