summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_icreate_item.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2022-05-04 04:44:55 +0300
committerDave Chinner <david@fromorbit.com>2022-05-04 04:44:55 +0300
commitcb512c921639613ce03f87e62c5e93ed9fe8c84d (patch)
tree1b639239a3010248ec1f1dd0ba1f8cec49a0bb8e /fs/xfs/xfs_icreate_item.c
parenta44a027a8b2a20fec30e0e9c99b0eb41c03e7420 (diff)
downloadlinux-cb512c921639613ce03f87e62c5e93ed9fe8c84d.tar.xz
xfs: zero inode fork buffer at allocation
When we first allocate or resize an inline inode fork, we round up the allocation to 4 byte alingment to make journal alignment constraints. We don't clear the unused bytes, so we can copy up to three uninitialised bytes into the journal. Zero those bytes so we only ever copy zeros into the journal. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Allison Henderson <allison.henderson@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_icreate_item.c')
0 files changed, 0 insertions, 0 deletions