]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: validate recovered name buffers when recovering xattr items
authorDarrick J. Wong <djwong@kernel.org>
Wed, 30 Apr 2025 21:26:53 +0000 (14:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:41:37 +0000 (09:41 +0200)
commitb359d2ee93b1236cf724b05b3a8d1b485aa93954
tree04e793ac3fefc6c6e13c6aa169e1827cdb22fc6b
parentd6f7f0ddc4c419136d6c27220ae44c45d33d666b
xfs: validate recovered name buffers when recovering xattr items

[ Upstream commit 1c7f09d210aba2f2bb206e2e8c97c9f11a3fd880 ]

Strengthen the xattri log item recovery code by checking that we
actually have the required name and newname buffers for whatever
operation we're replaying.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Acked-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_attr_item.c