ocfs2-replace-deprecated-strcpy-in-ocfs2_create_xattr_block.patch removed from -mm tree
The quilt patch titled
Subject: ocfs2: replace deprecated strcpy in ocfs2_create_xattr_block
has been removed from the -mm tree. Its filename was
ocfs2-replace-deprecated-strcpy-in-ocfs2_create_xattr_block.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Thorsten Blum <[email protected]>
Subject: ocfs2: replace deprecated strcpy in ocfs2_create_xattr_block
Date: Tue, 18 Nov 2025 19:53:44 +0100
strcpy() has been deprecated [1] because it performs no bounds checking on the destination buffer, which can lead to buffer overflows. Replace it with the safer strscpy(), and copy directly into '->xb_signature' instead of using the start of the struct as the destination buffer.
---
fs/ocfs2/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/xattr.c renamed from fs/ocfs2/xattr.c~ocfs2-replace-deprecated-strcpy-in-ocfs2_create_xattr_block +1 -1
@@ -2908,7 +2908,7 @@ static int ocfs2_create_xattr_block(stru/* Initialize ocfs2_xattr_block */ xblk = (struct ocfs2_xattr_block *)new_bh->b_data;memset (xblk,0 , inode->i_sb->s_blocksize); -strcpy ((void *)xblk,OCFS2_XATTR_BLOCK_SIGNATURE ); +strscpy (xblk->xb_signature,OCFS2_XATTR_BLOCK_SIGNATURE ); xblk->xb_suballoc_slot =cpu_to_le16 (ctxt->meta_ac->ac_alloc_slot); xblk->xb_suballoc_loc =cpu_to_le64 (suballoc_loc); xblk->xb_suballoc_bit =cpu_to_le16 (suballoc_bit_start);
_
Patches currently in -mm which might be from [email protected] are