Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

security/keys/request_key_auth.c request_key_auth_new() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 8688256049511206912
PARAM_VALUE 1 desc 5174536436481794048
PARAM_VALUE 4 cred 4096-ptr_max
PARAM_VALUE 4 cred->non_rcu 0
PARAM_VALUE 4 cred->request_key_auth 0,4096-ptr_max
PARAM_VALUE 4 cred->request_key_auth->payload.data 4096-ptr_max
PARAM_VALUE 4 cred->request_key_auth->sem.dep_map->name 0-255
PARAM_VALUE 4 cred->request_key_auth->sem.first_waiter->handoff_set 1
PARAM_VALUE 4 cred->request_key_auth->sem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 4 cred->request_key_auth->sem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 4 cred->request_key_auth->sem.first_waiter->type 0-1
PARAM_VALUE 4 cred->request_key_auth->sem.wait_lock.dep_map->name 0-255
PARAM_VALUE 4 cred->request_key_auth->sem.wait_lock.owner (-1)
PARAM_VALUE 4 cred->request_key_auth->sem.wait_lock.owner_cpu u32max
PARAM_VALUE 5 perm 453050368
PARAM_VALUE 6 flags 2
PARAM_VALUE 7 restrict_link 0
BUF_SIZE 1 desc 20
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &idmap->idmap_mutex
HALF_LOCKED2 global &key_types_sem

fs/crypto/keyring.c add_master_key_user() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 1604829612406759424
PARAM_VALUE 1 desc 8630708301132967936
PARAM_VALUE 5 perm 134283264
PARAM_VALUE 6 flags 0
PARAM_VALUE 7 restrict_link 0
BUF_SIZE 1 desc 48
STR_LEN 0 type 47
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &mk->mk_sem

security/keys/request_key.c construct_alloc_key() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 4096-9142442151112187903,9142442151112187905-ptr_max
PARAM_VALUE 4 cred 4096-ptr_max
PARAM_VALUE 5 perm 956366848,989921280,1023475712,1057030144
PARAM_VALUE 6 flags 0
PARAM_VALUE 7 restrict_link 0
BUF_SIZE 1 desc 1-s32max
DATA_SOURCE 6 flags $2
BIT_INFO 5 perm 0x39010000,0x3f010000
RX_PATH
TASK_NOT_RUNNING
UNITS 1 desc unit_byte
USER_PTR 1 desc
LOCK2 &user->cons_lock
HALF_LOCKED2 &idmap->idmap_mutex
HALF_LOCKED2 global &key_types_sem
TYPE_LOCK (struct key_user)->cons_lock

security/keys/key.c __key_create_or_update() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 4096-ptr_max
PARAM_VALUE 0 type->instantiate 1-u64max
PARAM_VALUE 1 desc 1-u64max
PARAM_VALUE 4 cred 4096-ptr_max
PARAM_VALUE 5 perm 851968,4128768,151584768,184614912,520159232,520290304,520814592,956366848,989921280,1023475712,1057030144,1057685504
PARAM_VALUE 6 flags 0,2,6,14,38
PARAM_VALUE 7 restrict_link 0
BUF_SIZE 1 desc (-1)-s32max
BUF_SIZE 1 desc (-1)-s32max
CAPPED_DATA 0 type 1
DATA_SOURCE 0 type r key_type_lookup
DATA_SOURCE 5 perm $5 [m]
DATA_SOURCE 6 flags $6
STR_LEN 0 type (-1),13
STR_LEN 1 desc (-1),13
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *desc 0-255
UNITS 1 desc unit_byte
USER_PTR 1 desc
LOCK2 &keyring->sem
LOCK2 global &key_types_sem
TYPE_LOCK (struct key)->sem

net/rxrpc/key.c rxrpc_get_null_key() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 1684776246796832768
PARAM_VALUE 1 desc 4096-ptr_max
PARAM_VALUE 5 perm 134217728
PARAM_VALUE 6 flags 2
PARAM_VALUE 7 restrict_link 0
DATA_SOURCE 1 desc $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 desc unit_byte
LOCK2 global &afs_key_lock

net/rxrpc/key.c rxrpc_get_server_data_key() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 1684776246796832768
PARAM_VALUE 1 desc 3928091872495378432
PARAM_VALUE 5 perm 0
PARAM_VALUE 6 flags 2
PARAM_VALUE 7 restrict_link 0
BUF_SIZE 1 desc 2
STR_LEN 0 type 1
TERMINATED 1 desc 1
LOCK2 &pool->lock

security/keys/keyring.c keyring_alloc() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 9142442151112187904
PARAM_VALUE 5 perm 137297920,201523200,202047488,252641280,252641291,520290304,520814592,521076736,522125312,524222464,1057030144,1057161216,1058209792
PARAM_VALUE 6 flags 0-2,16,34,38
PARAM_VALUE 7 restrict_link 0,4096-ptr_max
PARAM_VALUE 7 restrict_link->check 2597709569863184384,5988328617028292608,6748553998896947200,6954271548785111040,7527111731098238976
BUF_SIZE 1 desc (-1),1-s32max
BUF_SIZE 1 desc (-1),1-s32max
BUF_SIZE 7 restrict_link (-1)-0,24
BUF_SIZE 7 restrict_link (-1)-0,24
DATA_SOURCE 1 desc $0
DATA_SOURCE 2 uid $1
DATA_SOURCE 3 gid $2
DATA_SOURCE 4 cred $3
DATA_SOURCE 5 perm $4
DATA_SOURCE 6 flags $5
DATA_SOURCE 7 restrict_link $6
FUZZY_MAX 5 perm 520814592
FUZZY_MAX 6 flags 1
STR_LEN 0 type (-1),4-5,9-15,19-21,23
STR_LEN 1 desc (-1),4-5,9-15,19-21,23
HARD_MAX 6 flags 38
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *desc 0-255
UNITS 1 desc unit_byte
USER_PTR 1 desc
HALF_LOCKED2 &ns->keyring_sem
HALF_LOCKED2 &user_ns->keyring_sem
HALF_LOCKED2 global &key_session_mutex
HALF_LOCKED2 global &pernet_ops_rwsem

net/rxrpc/rxgk_app.c rxgk_yfs_decode_ticket() -> key_alloc()

Type Parameter Key Value
PARAM_VALUE 0 type 1684776246796832768
PARAM_VALUE 1 desc 3928091872495378432
PARAM_VALUE 5 perm 65536
PARAM_VALUE 6 flags 2
PARAM_VALUE 7 restrict_link 0
BUF_SIZE 1 desc 2
STR_LEN 0 type 1
TERMINATED 1 desc 1
LOCK2 &pool->lock