linux-stable/fs
Zijun Hu 9adb8e98c2 fs/filesystems: Fix potential unsigned integer underflow in fs_name()
[ Upstream commit 1363c134ad ]

fs_name() has @index as unsigned int, so there is underflow risk for
operation '@index--'.

Fix by breaking the for loop when '@index == 0' which is also more proper
than '@index <= 0' for unsigned integer comparison.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/20250410-fix_fs-v1-1-7c14ccc8ebaa@quicinc.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-27 11:04:10 +01:00
..
9p
adfs
affs affs: don't write overlarge OFS data block size fields 2025-04-10 14:31:00 +02:00
afs
autofs
befs
bfs
btrfs btrfs: send: return -ENAMETOOLONG when attempting a path that is too long 2025-06-04 14:37:00 +02:00
cachefiles
ceph
cifs smb: client: Reset all search buffer pointers when releasing buffer 2025-06-04 14:37:08 +02:00
coda
configfs
cramfs
crypto
debugfs
devpts
dlm
ecryptfs
efivarfs
efs
erofs
exfat exfat: fix the infinite loop in exfat_find_last_cluster() 2025-04-10 14:30:59 +02:00
exportfs
ext2
ext4 ext4: reorder capability check last 2025-06-04 14:37:00 +02:00
f2fs f2fs: fix to correct check conditions in f2fs_cross_rename 2025-06-27 11:04:04 +01:00
fat
freevxfs
fscache
fuse virtiofs: add filesystem context source name check 2025-05-02 07:41:02 +02:00
gfs2 gfs2: gfs2_create_inode error handling fix 2025-06-27 11:04:00 +01:00
hfs hfs/hfsplus: fix slab-out-of-bounds in hfs_bnode_read_key 2025-05-02 07:41:01 +02:00
hfsplus hfs/hfsplus: fix slab-out-of-bounds in hfs_bnode_read_key 2025-05-02 07:41:01 +02:00
hostfs
hpfs
hugetlbfs
iomap
isofs isofs: Prevent the use of too small fid 2025-05-02 07:41:02 +02:00
jbd2 jbd2: remove wrong sb->s_sequence check 2025-05-02 07:40:55 +02:00
jffs2
jfs jfs: Fix shift-out-of-bounds in dbDiscardAG 2025-05-02 07:41:08 +02:00
kernfs
lockd
minix
nfs nfs: ignore SB_RDONLY when remounting nfs 2025-06-27 11:04:06 +01:00
nfs_common
nfsd nfsd: decrease sc_count directly if fail to queue dl_recall 2025-05-02 07:41:01 +02:00
nilfs2 nilfs2: do not propagate ENOENT error from nilfs_btree_propagate() 2025-06-27 11:04:05 +01:00
nls
notify
ntfs
ocfs2 ocfs2: stop quota recovery before disabling quotas 2025-06-04 14:36:55 +02:00
omfs
openpromfs
orangefs orangefs: Do not truncate file size 2025-06-04 14:37:01 +02:00
overlayfs
proc fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children stats 2025-05-02 07:41:09 +02:00
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
squashfs Squashfs: check return result of sb_min_blocksize 2025-06-27 11:04:04 +01:00
sysfs
sysv
tracefs
ubifs
udf
ufs
unicode
vboxsf
verity
xfs
zonefs
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf_fdpic.c
binfmt_elf.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
block_dev.c
buffer.c
char_dev.c
compat_binfmt_elf.c
coredump.c coredump: hand a pidfd to the usermode coredump helper 2025-06-04 14:37:09 +02:00
d_path.c
dax.c
dcache.c
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c
fcntl.c
fhandle.c
file_table.c
file.c
filesystems.c fs/filesystems: Fix potential unsigned integer underflow in fs_name() 2025-06-27 11:04:10 +01:00
fs_context.c
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fs-writeback.c
fsopen.c
init.c
inode.c
internal.h
ioctl.c
Kconfig nfs: add missing selections of CONFIG_CRC32 2025-05-02 07:41:01 +02:00
Kconfig.binfmt
kernel_read_file.c
libfs.c
locks.c
Makefile
mbcache.c
mount.h
mpage.c
namei.c
namespace.c do_change_type(): refuse to operate on unmounted/not ours mounts 2025-06-27 11:04:07 +01:00
no-block.c
nsfs.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
remap_range.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c
sync.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c