linux-yocto/fs/ceph
Al Viro bb80f76188 parse_longname(): strrchr() expects NUL-terminated string
[ Upstream commit 101841c383 ]

... and parse_longname() is not guaranteed that.  That's the reason
why it uses kmemdup_nul() to build the argument for kstrtou64();
the problem is, kstrtou64() is not the only thing that need it.

Just get a NUL-terminated copy of the entire thing and be done
with that...

Fixes: dd66df0053 "ceph: add support for encrypted snapshot names"
Tested-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-15 12:13:31 +02:00
..
acl.c ceph: allow idmapped set_acl inode op 2023-11-03 23:28:34 +01:00
addr.c ceph: avoid kernel BUG for encrypted inode with unaligned file size 2025-06-27 11:11:19 +01:00
cache.c ceph: rename _to_client() to _to_fs_client() 2023-11-03 23:28:33 +01:00
cache.h netfs: Provide invalidate_folio and release_folio calls 2023-12-24 15:08:51 +00:00
caps.c ceph: Fix typo in the comment 2024-09-24 22:51:33 +02:00
ceph_frag.c
crypto.c parse_longname(): strrchr() expects NUL-terminated string 2025-08-15 12:13:31 +02:00
crypto.h ceph: add support for encrypted snapshot names 2023-08-24 11:24:36 +02:00
debugfs.c ceph: print cluster fsid and client global_id in all debug logs 2023-11-03 23:28:33 +01:00
dir.c Three CephFS fixes from Xiubo and Luis and a bunch of assorted 2024-09-28 08:40:36 -07:00
export.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
file.c ceph: fix possible integer overflow in ceph_zero_objects() 2025-07-06 11:01:36 +02:00
inode.c ceph: Fix incorrect flush end position calculation 2025-05-02 07:58:58 +02:00
io.c
io.h
ioctl.c ceph: print cluster fsid and client global_id in all debug logs 2023-11-03 23:28:33 +01:00
ioctl.h
Kconfig ceph: select FS_ENCRYPTION_ALGS if FS_ENCRYPTION 2024-01-15 15:40:50 +01:00
locks.c ceph: adapt to breakup of struct file_lock 2024-02-05 13:11:42 +01:00
Makefile ceph: fscrypt_auth handling for ceph 2023-08-22 09:01:48 +02:00
mds_client.c ceph: fix memory leak in ceph_mds_auth_match() 2025-02-17 10:05:37 +01:00
mds_client.h ceph: rename ceph_flush_cap_releases() to ceph_flush_session_cap_releases() 2024-09-24 22:51:19 +02:00
mdsmap.c ceph: switch to corrected encoding of max_xattr_size in mdsmap 2024-02-26 19:20:30 +01:00
mdsmap.h ceph: switch to corrected encoding of max_xattr_size in mdsmap 2024-02-26 19:20:30 +01:00
metric.c ceph: print cluster fsid and client global_id in all debug logs 2023-11-03 23:28:33 +01:00
metric.h
quota.c ceph: fix invalid pointer access if get_quota_realm return ERR_PTR 2024-01-15 15:40:51 +01:00
snap.c Two items: 2023-11-10 09:52:56 -08:00
strings.c
super.c ceph: set superblock s_magic for IMA fsmagic matching 2025-06-27 11:11:19 +01:00
super.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
util.c
xattr.c Two items: 2023-11-10 09:52:56 -08:00