fs-fat-inode-replace-sprintf-with-scnprintf.patch removed from -mm tree
The quilt patch titled
Subject: fs: fat: inode: replace sprintf() with scnprintf()
has been removed from the -mm tree. Its filename was
fs-fat-inode-replace-sprintf-with-scnprintf.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: Maxwell Doose <[email protected]>
Subject: fs: fat: inode: replace sprintf() with scnprintf()
Date: Wed, 3 Jun 2026 09:52:21 -0500
The kernel documentation notes that sprintf() is deprecated and unsafe. Replace it with the more preferred scnprintf() to help with hardening.
Signed-off-by Maxwell Doose <[email protected]>
Acked-by OGAWA Hirofumi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/fat/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fat/inode.c renamed from fs/fat/inode.c~fs-fat-inode-replace-sprintf-with-scnprintf +1 -1
@@ -1786,7 +1786,7 @@ int fat_fill_super(struct super_block *s*/ error = -EINVAL ; -sprintf (buf,"cp%d" , sbi->options.codepage); +scnprintf (buf,sizeof (buf),"cp%d" , sbi->options.codepage); sbi->nls_disk =load_nls (buf);if (!sbi->nls_disk) {fat_msg (sb,KERN_ERR ,"codepage %s not found" , buf);
_
Patches currently in -mm which might be from [email protected] are