diff options
author | Dave Chinner <dchinner@redhat.com> | 2022-05-04 04:44:55 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-05-04 04:44:55 +0300 |
commit | cb512c921639613ce03f87e62c5e93ed9fe8c84d (patch) | |
tree | 1b639239a3010248ec1f1dd0ba1f8cec49a0bb8e /fs/xfs/xfs_icreate_item.c | |
parent | a44a027a8b2a20fec30e0e9c99b0eb41c03e7420 (diff) | |
download | linux-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