On Mon, Oct 24, 2022 at 02:32:54PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > 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_rui_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@xxxxxxxxxx> > --- > fs/xfs/xfs_ondisk.h | 3 ++ > fs/xfs/xfs_rmap_item.c | 58 ++++++++++++++++++++++-------------------------- > 2 files changed, 30 insertions(+), 31 deletions(-) Lokks fine. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx