Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 23 files:

Smatch caller information:

block/sed-opal.c sed_opal_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 5591811650644389888
PARAM_VALUE 4 perm 521076736
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 10
STR_LEN 0 description 9
TERMINATED 0 description 1

fs/smb/client/cifsacl.c init_cifs_idmap() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 8301476421785571328
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->group_info 4096-ptr_max
PARAM_VALUE 3 cred->jit_keyring 1
PARAM_VALUE 3 cred->non_rcu 0
PARAM_VALUE 3 cred->process_keyring 0
PARAM_VALUE 3 cred->request_key_auth 0
PARAM_VALUE 3 cred->security 0,4096-ptr_max
PARAM_VALUE 3 cred->session_keyring 0
PARAM_VALUE 3 cred->thread_keyring 0
PARAM_VALUE 3 cred->ucounts 4096-ptr_max
PARAM_VALUE 3 cred->usage.counter 1
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 520290304
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 12
DATA_SOURCE 3 cred r prepare_kernel_cred
STR_LEN 0 description 11
TERMINATED 0 description 1

fs/nfs/inode.c nfs_init_keyring() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 8249727048704696320
PARAM_VALUE 4 perm 522125312
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 5
STR_LEN 0 description 4
TERMINATED 0 description 1

security/keys/request_key.c call_sbin_request_key() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2270512289663705088
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 4 perm 1057161216
PARAM_VALUE 5 flags 1
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 20
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &idmap->idmap_mutex
HALF_LOCKED2 global &key_types_sem

fs/nfs/nfs4idmap.c nfs_idmap_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 8479137697422364672
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->group_info 4096-ptr_max
PARAM_VALUE 3 cred->jit_keyring 1
PARAM_VALUE 3 cred->non_rcu 0
PARAM_VALUE 3 cred->process_keyring 0
PARAM_VALUE 3 cred->request_key_auth 0
PARAM_VALUE 3 cred->security 0,4096-ptr_max
PARAM_VALUE 3 cred->session_keyring 0
PARAM_VALUE 3 cred->thread_keyring 0
PARAM_VALUE 3 cred->ucounts 4096-ptr_max
PARAM_VALUE 3 cred->usage.counter 1
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 520290304
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 13
DATA_SOURCE 3 cred r prepare_kernel_cred
STR_LEN 0 description 12
TERMINATED 0 description 1

security/integrity/digsig.c __integrity_init_keyring() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 4 perm 520814592,521076736
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0,4096-ptr_max
PARAM_VALUE 6 restrict_link->check 6954271548785111040,7527111731098238976
PARAM_VALUE 7 dest 0
BUF_SIZE 6 restrict_link 0,24
BUF_SIZE 6 restrict_link 0,24
DATA_SOURCE 4 perm $1
DATA_SOURCE 6 restrict_link $2
FUZZY_MAX 4 perm 520814592
BIT_INFO 4 perm 0x1f0b0000,0x1f0f0000

drivers/platform/cznic/turris-signing-key.c turris_signing_key_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2729568404213424128
PARAM_VALUE 4 perm 520814592
PARAM_VALUE 5 flags 38
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 21
STR_LEN 0 description 20
TERMINATED 0 description 1

fs/afs/cm_security.c afs_create_token_key() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 5139866949790875648
PARAM_VALUE 4 perm 202047488
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 5
STR_LEN 0 description 4
TERMINATED 0 description 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &pernet_ops_rwsem

fs/smb/client/cifs_spnego.c init_cifs_spnego() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 809424304451481600
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->group_info 4096-ptr_max
PARAM_VALUE 3 cred->jit_keyring 1
PARAM_VALUE 3 cred->non_rcu 0
PARAM_VALUE 3 cred->process_keyring 0
PARAM_VALUE 3 cred->request_key_auth 0
PARAM_VALUE 3 cred->security 0,4096-ptr_max
PARAM_VALUE 3 cred->session_keyring 0
PARAM_VALUE 3 cred->thread_keyring 0
PARAM_VALUE 3 cred->ucounts 4096-ptr_max
PARAM_VALUE 3 cred->usage.counter 1
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 520290304
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 13
DATA_SOURCE 3 cred r prepare_kernel_cred
STR_LEN 0 description 12
TERMINATED 0 description 1

net/rxrpc/rxperf.c rxperf_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 520291670052954112
PARAM_VALUE 4 perm 252641291
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 14
STR_LEN 0 description 13
TERMINATED 0 description 1

security/keys/persistent.c key_create_persistent() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 6977208350810771456
PARAM_VALUE 4 perm 520290304
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 1-u64max
BUF_SIZE 0 description 1-s32max
DATA_SOURCE 1 uid $1
NO_OVERFLOW_SIMPLE 7 dest->quotalen
UNITS 0 description unit_byte
LOCK2 &ns->keyring_sem
TYPE_LOCK (struct user_namespace)->keyring_sem

security/keys/persistent.c key_create_persistent_register() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2664699375236653056
PARAM_VALUE 4 perm 520290304
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 21
STR_LEN 0 description 20
TERMINATED 0 description 1
LOCK2 &ns->keyring_sem
TYPE_LOCK (struct user_namespace)->keyring_sem

certs/blacklist.c blacklist_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 3854923866651533312
PARAM_VALUE 4 perm 252641280
PARAM_VALUE 5 flags 34
PARAM_VALUE 6 restrict_link 4096-ptr_max
PARAM_VALUE 6 restrict_link->check 5988328617028292608
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 11
BUF_SIZE 6 restrict_link 24
DATA_SOURCE 6 restrict_link r _kzalloc_noprof
STR_LEN 0 description 10
TERMINATED 0 description 1

crypto/asymmetric_keys/selftest.c fips_signature_selftest() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 225835485637787648
PARAM_VALUE 4 perm 520814592
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 16
STR_LEN 0 description 15
TERMINATED 0 description 1

certs/system_keyring.c system_trusted_keyring_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2914036475310600192
PARAM_VALUE 4 perm 520814592
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 22
STR_LEN 0 description 21
TERMINATED 0 description 1

certs/system_keyring.c system_trusted_keyring_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2387732380089323520
PARAM_VALUE 4 perm 521076736
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 4096-ptr_max
PARAM_VALUE 6 restrict_link->check 2597709569863184384
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 24
STR_LEN 0 description 23
TERMINATED 0 description 1

drivers/nvme/common/keyring.c nvme_keyring_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 8560520610953486336
PARAM_VALUE 4 perm 522125312
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 6
STR_LEN 0 description 5
TERMINATED 0 description 1

fs/verity/signature.c fsverity_init_signature() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 7860018098862743552
PARAM_VALUE 4 perm 137297920
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 11
STR_LEN 0 description 10
TERMINATED 0 description 1

net/wireless/reg.c load_builtin_regdb_keys() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 8530318322210304000
PARAM_VALUE 4 perm 520814592
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 20
STR_LEN 0 description 19
TERMINATED 0 description 1

security/integrity/ima/ima_mok.c ima_mok_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 7784583817689210880
PARAM_VALUE 4 perm 521076736
PARAM_VALUE 5 flags 34
PARAM_VALUE 6 restrict_link 4096-ptr_max
PARAM_VALUE 6 restrict_link->check 6748553998896947200
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 15
BUF_SIZE 6 restrict_link 24
DATA_SOURCE 6 restrict_link r _kzalloc_noprof
STR_LEN 0 description 14
TERMINATED 0 description 1

security/keys/process_keys.c get_user_register() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 9062578523111366656
PARAM_VALUE 4 perm 201523200
PARAM_VALUE 5 flags 0
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 10
STR_LEN 0 description 9
TERMINATED 0 description 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &user_ns->keyring_sem
TYPE_LOCK (struct user_namespace)->keyring_sem

security/keys/process_keys.c install_process_keyring_to_cred() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 3327059791882936320
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->group_info 4096-ptr_max
PARAM_VALUE 3 cred->non_rcu 0
PARAM_VALUE 3 cred->process_keyring 0
PARAM_VALUE 3 cred->request_key_auth 0,4096-ptr_max
PARAM_VALUE 3 cred->security 0,4096-ptr_max
PARAM_VALUE 3 cred->session_keyring 0,4096-ptr_max
PARAM_VALUE 3 cred->thread_keyring 0,4096-ptr_max
PARAM_VALUE 3 cred->ucounts 4096-ptr_max
PARAM_VALUE 3 cred->usage.counter 1
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 1057030144
PARAM_VALUE 5 flags 1
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 5
DATA_SOURCE 3 cred $0
STR_LEN 0 description 4
TERMINATED 0 description 1
RX_PATH
TASK_NOT_RUNNING

security/keys/process_keys.c install_session_keyring_to_cred() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 3920439876895879168
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->group_info 4096-ptr_max
PARAM_VALUE 3 cred->non_rcu 0
PARAM_VALUE 3 cred->process_keyring 0,4096-ptr_max
PARAM_VALUE 3 cred->request_key_auth 0,4096-ptr_max
PARAM_VALUE 3 cred->security 0,4096-ptr_max
PARAM_VALUE 3 cred->session_keyring 0,4096-ptr_max
PARAM_VALUE 3 cred->thread_keyring 0,4096-ptr_max
PARAM_VALUE 3 cred->ucounts 4096-ptr_max
PARAM_VALUE 3 cred->usage.counter 1
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 1057161216
PARAM_VALUE 5 flags 0-1
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 5
DATA_SOURCE 3 cred $0
FUZZY_MAX 5 flags 1
STR_LEN 0 description 4
TERMINATED 0 description 1
HARD_MAX 5 flags 1
RX_PATH
TASK_NOT_RUNNING

security/keys/process_keys.c install_thread_keyring_to_cred() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2699195297547001856
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->group_info 4096-ptr_max
PARAM_VALUE 3 cred->non_rcu 0
PARAM_VALUE 3 cred->process_keyring 0,4096-ptr_max
PARAM_VALUE 3 cred->request_key_auth 0,4096-ptr_max
PARAM_VALUE 3 cred->security 0,4096-ptr_max
PARAM_VALUE 3 cred->session_keyring 0,4096-ptr_max
PARAM_VALUE 3 cred->thread_keyring 0
PARAM_VALUE 3 cred->ucounts 4096-ptr_max
PARAM_VALUE 3 cred->usage.counter 1
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 1057030144
PARAM_VALUE 5 flags 1
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 5
DATA_SOURCE 3 cred $0
STR_LEN 0 description 4
TERMINATED 0 description 1
RX_PATH
TASK_NOT_RUNNING

security/keys/process_keys.c join_session_keyring() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 4096-ptr_max
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 4 perm 1058209792
PARAM_VALUE 5 flags 0
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
DATA_SOURCE 0 description $0
RX_PATH
USER_DATA 0 *description 0-255
USER_PTR 0 description
LOCK2 global &key_session_mutex

security/keys/process_keys.c look_up_user_keyrings() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2194157397913108480
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 524222464
PARAM_VALUE 5 flags 16
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0-ptr_max
BUF_SIZE 0 description 20
BUF_SIZE 7 dest (-1)-s32max
BUF_SIZE 7 dest (-1)-s32max
STR_LEN 0 description 19
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 7 dest->quotalen
NO_OVERFLOW_SIMPLE 7 dest->user->qnbytes
LOCK2 &user_ns->keyring_sem
TYPE_LOCK (struct user_namespace)->keyring_sem

security/keys/process_keys.c look_up_user_keyrings() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 2194157397913108480
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 524222464
PARAM_VALUE 5 flags 16
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 20
STR_LEN 0 description 19
RX_PATH
TASK_NOT_RUNNING
LOCK2 &user_ns->keyring_sem
TYPE_LOCK (struct user_namespace)->keyring_sem

drivers/md/dm-verity-verify-sig.c dm_verity_verify_sig_init() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 627513930879741952
PARAM_VALUE 4 perm 137297920
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 11
STR_LEN 0 description 10
TERMINATED 0 description 1

net/dns_resolver/dns_key.c init_dns_resolver() -> keyring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 description 3989885817501507584
PARAM_VALUE 3 cred 4096-ptr_max
PARAM_VALUE 3 cred->group_info 4096-ptr_max
PARAM_VALUE 3 cred->jit_keyring 1
PARAM_VALUE 3 cred->non_rcu 0
PARAM_VALUE 3 cred->process_keyring 0
PARAM_VALUE 3 cred->request_key_auth 0
PARAM_VALUE 3 cred->security 0,4096-ptr_max
PARAM_VALUE 3 cred->session_keyring 0
PARAM_VALUE 3 cred->thread_keyring 0
PARAM_VALUE 3 cred->ucounts 4096-ptr_max
PARAM_VALUE 3 cred->usage.counter 1
PARAM_VALUE 3 cred->user 4096-ptr_max
PARAM_VALUE 4 perm 520290304
PARAM_VALUE 5 flags 2
PARAM_VALUE 6 restrict_link 0
PARAM_VALUE 7 dest 0
BUF_SIZE 0 description 14
DATA_SOURCE 3 cred r prepare_kernel_cred
STR_LEN 0 description 13
TERMINATED 0 description 1