]> git.baikalelectronics.ru Git - kernel.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)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Aug 2016 16:00:01 +0000 (12:00 -0400)
commit7478f1907cdbe31563c7265732fb41dfef1c9e33
tree7e7eb4337bdbfa1507cd6af268e4fee1934ce7dd
parent56cda74cbdad5063b0d899fa70d115cffb9be8a3
ext4: properly align shifted xattrs when expanding inodes

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.

CC: stable@vger.kernel.org # 4.4.x-
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext4/xattr.c