diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-10-20 16:23:16 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-31 08:58:19 -0700 |
commit | a38935c03c7914a6ab22eefb750b259868ed5a4b (patch) | |
tree | 3c84378cd62174dd50c837685f87db246e131b28 /fs/fs_pin.c | |
parent | a38ebce1da271f480e47c3def4f810c6106b74a1 (diff) | |
download | linux-a38935c03c7914a6ab22eefb750b259868ed5a4b.tar.gz linux-a38935c03c7914a6ab22eefb750b259868ed5a4b.tar.bz2 linux-a38935c03c7914a6ab22eefb750b259868ed5a4b.zip |
xfs: fix memcpy fortify errors in CUI log format copying
Starting in 6.1, CONFIG_FORTIFY_SOURCE checks the length parameter of
memcpy. Since we're already fixing problems with BUI item copying, we
should fix it everything else.
Refactor the xfs_cui_copy_format function to handle the copying of the
head and the flex array members separately. While we're at it, fix a
minor validation deficiency in the recovery function.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/fs_pin.c')
0 files changed, 0 insertions, 0 deletions