]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: Only used known fields when comparing policies 66288/head
authorChristopher Hoffman <choffman@redhat.com>
Fri, 14 Nov 2025 19:18:13 +0000 (19:18 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Mon, 17 Nov 2025 16:35:35 +0000 (16:35 +0000)
commit70c4c79d9794bba62f32aa77bafe392de6022dc3
treed469aaba7635fce35f50727d5ffab6caa3a19cb7
parente61455d7e48d94b26035ede57d3680e5cb4279b2
client: Only used known fields when comparing policies

In set fscrypt policy, only use known fields when comparing if an
existing policy matches provided policy.

This is needed as struct fscrypt_policy_v2 has a reserved field.
Since this is a value managed in the kernel, it can change without
notice. A field was recently added: log2_data_unit_size. This can
cause issues with comparing existing policies during set policy.
When fields are added, reserved size changes and we can run into
trying to compare the same policies that compare uninitialized
memory regions or regions we do not yet support.

Fixes: https://tracker.ceph.com/issues/73825
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc
src/client/FSCrypt.h