On Wed, Sep 3, 2025 at 10:58 AM David Windsor <dwindsor@xxxxxxxxx> wrote: > > All other bpf local storage is obtained using helpers which benefit from > RET_PTR_TO_MAP_VALUE_OR_NULL, so can return void * pointers directly to > map values. kfuncs don't have that, so return struct > bpf_local_storage_data * and access map values through sdata->data. The commit log tells nothing about motivation for such "cred local storage". Technically it's doable, but sorry not going to. cred is not something that needs fast access and automatic lifetime management. Use hash map with 'struct cred *' as a key. pw-bot: cr