]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: properly align shifted xattrs when expanding inodes
authorJan Kara <jack@suse.cz>
Thu, 11 Aug 2016 16:00:01 +0000 (12:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:20:26 +0000 (08:20 +0200)
commitd4039c808f2643f403fa21d62ed530ca6c2aafae
treeec89df75ffd0e930f3c68feb74759a71741206ac
parentee0775439b230d331fd419c24234dc33978a3418
ext4: properly align shifted xattrs when expanding inodes

commit 443a8c41cd49de66a3fda45b32b9860ea0292b84 upstream.

We did not count with the padding of xattr value when computing desired
shift of xattrs in the inode when expanding i_extra_isize. As a result
we could create unaligned start of inline xattrs. Account for alignment
properly.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/xattr.c