Ilya Dryomov 12eb22a5a6 ceph: validate snapdirname option length when mounting
It becomes a path component, so it shouldn't exceed NAME_MAX
characters.  This was hardened in commit c152737be22b ("ceph: Use
strscpy() instead of strcpy() in __get_snap_name()"), but no actual
check was put in place.

Cc: stable@vger.kernel.org
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Markuze <amarkuze@redhat.com>
2024-12-16 23:25:43 +01:00
..
2023-11-03 23:28:34 +01:00
2024-11-19 11:47:16 +01:00
2023-11-10 09:52:56 -08:00
2024-11-18 17:34:36 +01:00
2024-11-18 17:34:36 +01:00
2024-11-18 17:34:36 +01:00
2024-11-18 17:34:36 +01:00
2023-08-22 09:01:48 +02:00
2024-11-18 17:34:35 +01:00
2023-11-10 09:52:56 -08:00
2022-03-01 18:26:37 +01:00
2024-11-18 17:34:36 +01:00
2024-11-18 17:34:36 +01:00