From 98d3972b5635b0b9bdb6c9936b01cba4551939cd Mon Sep 17 00:00:00 2001 From: Xavi Hernandez Date: Mon, 1 Sep 2025 14:43:26 +0200 Subject: [PATCH] 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 (cherry picked from commit 674bd44001d6feb919a331d4a4586cc0d97847f8) --- src/libcephfs_proxy/libcephfsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcephfs_proxy/libcephfsd.c b/src/libcephfs_proxy/libcephfsd.c index 503019dc62c..64a3f888cd8 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, -- 2.39.5