diff options
| author | Ilya Dryomov <idryomov@gmail.com> | 2024-11-20 16:43:51 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-27 14:02:19 +0100 |
| commit | ddbbc04989f0f2097b91004cf4fb0e1063939100 (patch) | |
| tree | 9e03fbbc28410cf5c79e4a352c45965d9dbd7a42 /scripts/git.orderFile | |
| parent | 99a37ab76a315c8307eb5b0dc095d8ad9d8efeaa (diff) | |
| download | linux-ddbbc04989f0f2097b91004cf4fb0e1063939100.tar.gz linux-ddbbc04989f0f2097b91004cf4fb0e1063939100.tar.bz2 linux-ddbbc04989f0f2097b91004cf4fb0e1063939100.zip | |
ceph: validate snapdirname option length when mounting
commit 12eb22a5a609421b380c3c6ca887474fb2089b2c upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
