xfs: fix validation in attr log item recovery
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Oct 2022 23:08:11 +0000 (16:08 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 31 Oct 2022 15:58:19 +0000 (08:58 -0700)
commit59da7ff49d67a1b63b1b81c7f53dcb6a84cdad2b
tree53b091ee5ec497e5bd688dc43d37b16497b3e6a1
parent47ba8cc7b4f82c927cec3ad7c7392e4c45c81c56
xfs: fix validation in attr log item recovery

Before we start fixing all the complaints about memcpy'ing log items
around, let's fix some inadequate validation in the xattr log item
recovery code and get rid of the (now trivial) copy_format function.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_attr_item.c