From: Xavi Hernandez Date: Mon, 1 Sep 2025 12:43:26 +0000 (+0200) Subject: libcephfs_proxy: fix userperm pointer decoding for older protocols X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F65320%2Fhead;p=ceph.git libcephfs_proxy: fix userperm pointer decoding for older protocols The random data used to decode pointers coming from the old protocol was taken from the client instead of using the global_random data, which is the correct one. Fixes: https://tracker.ceph.com/issues/72800 Signed-off-by: Xavi Hernandez --- diff --git a/src/libcephfs_proxy/libcephfsd.c b/src/libcephfs_proxy/libcephfsd.c index 503019dc62c4..64a3f888cd86 100644 --- a/src/libcephfs_proxy/libcephfsd.c +++ b/src/libcephfs_proxy/libcephfsd.c @@ -89,7 +89,7 @@ static int32_t validate_perms(proxy_client_t *client, embedded_perms_t *embed, if ((client->neg.v1.enabled & PROXY_FEAT_EMBEDDED_PERMS) == 0) { *embedded = false; - return ptr_check(&client->random, embed->ptr, (void **)pperms); + return ptr_check(&global_random, embed->ptr, (void **)pperms); } perms = ceph_userperm_new(embed->uid, embed->gid, count,