Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
security/selinux/ss/policydb.c filename_trans_read_helper() -> hashtab_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->htable | 0,4096-ptr_max |
| PARAM_VALUE | 0 | h->nel | 0 |
| PARAM_VALUE | 0 | h->size | 0 |
| PARAM_VALUE | 1 | key | 4096-ptr_max |
| PARAM_VALUE | 2 | datum | 0 |
| BUF_SIZE | 1 | key | 16 |
| DATA_SOURCE | 1 | key | r _kmalloc_noprof |
| BIT_INFO | 3 | key_params | 0x0,0x0 |
| MEM_ZERO | 0 | h | |
| NO_OVERFLOW_SIMPLE | 0 | h->size | |
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |
security/selinux/ss/policydb.c filename_trans_read_helper_compat() -> hashtab_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->htable | 0,4096-ptr_max |
| PARAM_VALUE | 0 | h->size | 0 |
| PARAM_VALUE | 1 | key | 1-u64max |
| PARAM_VALUE | 2 | datum | 4096-ptr_max |
| BUF_SIZE | 1 | key | 16 |
| BUF_SIZE | 2 | datum | 32 |
| DATA_SOURCE | 1 | key | r kmemdup_noprof |
| DATA_SOURCE | 2 | datum | r _kmalloc_noprof |
| BIT_INFO | 3 | key_params | 0x0,0x0 |
| MEM_ZERO | 0 | h | |
| NO_OVERFLOW_SIMPLE | 0 | h->size | |
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |
security/selinux/ss/policydb.c policydb_read() -> hashtab_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->htable | 0,4096-ptr_max |
| PARAM_VALUE | 1 | key | 4096-ptr_max |
| PARAM_VALUE | 2 | datum | 4096-ptr_max |
| BUF_SIZE | 1 | key | 12 |
| BUF_SIZE | 2 | datum | 4 |
| DATA_SOURCE | 1 | key | r _kmalloc_noprof |
| DATA_SOURCE | 2 | datum | r _kmalloc_noprof |
| BIT_INFO | 3 | key_params | 0x0,0x0 |
| MEM_ZERO | 0 | h | |
| NO_OVERFLOW_SIMPLE | 0 | h->size | |
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |
security/selinux/ss/policydb.c range_read() -> hashtab_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->htable | 0,4096-ptr_max |
| PARAM_VALUE | 0 | h->nel | 0 |
| PARAM_VALUE | 0 | h->size | 0 |
| PARAM_VALUE | 1 | key | 4096-ptr_max |
| PARAM_VALUE | 2 | datum | 4096-ptr_max |
| BUF_SIZE | 1 | key | 12 |
| BUF_SIZE | 2 | datum | 48 |
| DATA_SOURCE | 1 | key | r _kzalloc_noprof |
| DATA_SOURCE | 2 | datum | r _kzalloc_noprof |
| BIT_INFO | 3 | key_params | 0x0,0x0 |
| MEM_ZERO | 0 | h | |
| NO_OVERFLOW_SIMPLE | 0 | h->size | |
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |
security/selinux/ss/symtab.c symtab_insert() -> hashtab_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 4096-ptr_max |
| PARAM_VALUE | 1 | *key | 0-255 |
| PARAM_VALUE | 2 | datum | 4096-ptr_max |
| BUF_SIZE | 2 | datum | 4,8,12,32,40,72,96 |
| BUF_SIZE | 2 | datum | 4,8,12,32,40,72,96 |
| DATA_SOURCE | 1 | key | $1 |
| DATA_SOURCE | 2 | datum | $2 |
| BIT_INFO | 3 | key_params | 0x0,0x0 |
| NO_OVERFLOW_SIMPLE | 0 | h->size | |
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |