diff options
author | Theodore Ts'o <tytso@mit.edu> | 2018-12-19 12:28:13 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-12-19 12:28:13 -0500 |
commit | a805622a757b6d7f65def4141d29317d8e37b8a1 (patch) | |
tree | 7671de64bfcd4e04b839878dd8793e026e75efe9 /fs/ext4/ialloc.c | |
parent | 0a1e8258a4fecd5aad2815b43bbe0ff014de1d8a (diff) | |
download | lwn-a805622a757b6d7f65def4141d29317d8e37b8a1.tar.gz lwn-a805622a757b6d7f65def4141d29317d8e37b8a1.zip |
ext4: include terminating u32 in size of xattr entries when expanding inodes
In ext4_expand_extra_isize_ea(), we calculate the total size of the
xattr header, plus the xattr entries so we know how much of the
beginning part of the xattrs to move when expanding the inode extra
size. We need to include the terminating u32 at the end of the xattr
entries, or else if there is uninitialized, non-zero bytes after the
xattr entries and before the xattr values, the list of xattr entries
won't be properly terminated.
Reported-by: Steve Graham <stgraham2000@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/ialloc.c')
0 files changed, 0 insertions, 0 deletions