Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 7 files:
- drivers/tty/tty_audit.c, line 83
- kernel/audit.c, line 2188
- kernel/auditsc.c
- security/apparmor/net.c, line 92
- security/ipe/audit.c, line 193
- security/ipe/digest.c, line 118
- security/lsm_audit.c, line 333
Smatch caller information:
security/apparmor/net.c audit_unix_addr() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 4096-ptr_max |
| PARAM_VALUE | 0 | ab->ctx->current_state | 2 |
| PARAM_VALUE | 0 | ab->ctx->ipc.has_perm | 0-1 |
| PARAM_VALUE | 0 | ab->ctx->socketcall.nargs | 0,2-6 |
| PARAM_VALUE | 0 | ab->gfp_mask | 10272 |
| PARAM_VALUE | 0 | ab->skb->cloned | 0-1 |
| PARAM_VALUE | 0 | ab->skb->csum_start | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->data_len | 0 |
| PARAM_VALUE | 0 | ab->skb->end | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->hdr_len | 0 |
| PARAM_VALUE | 0 | ab->skb->head_frag | 0 |
| PARAM_VALUE | 0 | ab->skb->inner_mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->len | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->nohdr | 0 |
| PARAM_VALUE | 0 | ab->skb->pfmemalloc | 0-1 |
| PARAM_VALUE | 0 | ab->skb->pp_recycle | 0 |
| PARAM_VALUE | 0 | ab->skb->tail | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->truesize | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->unreadable | 0-1 |
| PARAM_VALUE | 0 | ab->skb_list.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *ab->skb->head | 0-255 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-2147483644 |
| BUF_SIZE | 0 | ab | (-1)-s32max |
| BUF_SIZE | 0 | ab | (-1)-s32max |
| BUF_SIZE | 1 | buf | 107 |
| DATA_SOURCE | 0 | ab | $0 |
| STR_LEN | 0 | ab | 4,9 |
| STR_LEN | 0 | ab | 4,9 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
kernel/auditsc.c audit_log_execve_info() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-9223372036854775807,13835058055282163712-u64max |
| BUF_SIZE | 1 | buf | 7501,u64max |
| BUF_SIZE | 1 | buf | 7501,u64max |
| CAPPED_DATA | 2 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
kernel/auditsc.c audit_log_exit() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 4096-ptr_max |
| PARAM_VALUE | 0 | ab->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | ab->ctx->current_state | 2 |
| PARAM_VALUE | 0 | ab->gfp_mask | 3264 |
| PARAM_VALUE | 0 | ab->skb->cloned | 0-1 |
| PARAM_VALUE | 0 | ab->skb->csum_start | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->data_len | 0 |
| PARAM_VALUE | 0 | ab->skb->end | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->hdr_len | 0 |
| PARAM_VALUE | 0 | ab->skb->head_frag | 0 |
| PARAM_VALUE | 0 | ab->skb->inner_mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->len | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->nohdr | 0 |
| PARAM_VALUE | 0 | ab->skb->pfmemalloc | 0-1 |
| PARAM_VALUE | 0 | ab->skb->pp_recycle | 0 |
| PARAM_VALUE | 0 | ab->skb->tail | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->truesize | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->unreadable | 0-1 |
| PARAM_VALUE | 0 | ab->skb_list.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *ab->skb->head | 0-255 |
| PARAM_VALUE | 2 | len | 1-u64max |
| DATA_SOURCE | 0 | ab | r audit_log_start |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
drivers/tty/tty_audit.c tty_audit_log() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 4096-ptr_max |
| PARAM_VALUE | 0 | ab->ctx->current_state | 2 |
| PARAM_VALUE | 0 | ab->gfp_mask | 3264 |
| PARAM_VALUE | 0 | ab->skb->cloned | 0-1 |
| PARAM_VALUE | 0 | ab->skb->csum_start | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->data_len | 0 |
| PARAM_VALUE | 0 | ab->skb->end | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->hdr_len | 0 |
| PARAM_VALUE | 0 | ab->skb->head_frag | 0 |
| PARAM_VALUE | 0 | ab->skb->inner_mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->len | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->nohdr | 0 |
| PARAM_VALUE | 0 | ab->skb->pfmemalloc | 0-1 |
| PARAM_VALUE | 0 | ab->skb->pp_recycle | 0 |
| PARAM_VALUE | 0 | ab->skb->tail | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->truesize | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->unreadable | 0-1 |
| PARAM_VALUE | 0 | ab->skb_list.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *ab->skb->head | 0-255 |
| PARAM_VALUE | 2 | len | 1-u64max |
| BUF_SIZE | 1 | buf | (-1),4096 |
| BUF_SIZE | 1 | buf | (-1),4096 |
| DATA_SOURCE | 0 | ab | r audit_log_start |
| DATA_SOURCE | 1 | buf | $2 |
| DATA_SOURCE | 2 | len | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | *buf | 0-255 |
| USER_PTR | 1 | buf |
kernel/audit.c audit_log_n_untrustedstring() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 0,4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-18446744073709547519 |
| PARAM_VALUE | 1 | *buf | 0-32,34,127-255 |
| BUF_SIZE | 0 | ab | (-1)-s32max |
| BUF_SIZE | 0 | ab | (-1)-s32max |
| BUF_SIZE | 1 | buf | s32min-s32max |
| CAPPED_DATA | 1 | buf | 1 |
| DATA_SOURCE | 0 | ab | $0 |
| DATA_SOURCE | 1 | buf | $1 |
| DATA_SOURCE | 2 | len | $2 |
| STR_LEN | 0 | ab | (-1)-2147479552 |
| STR_LEN | 0 | ab | (-1)-2147479552 |
| STR_LEN | 1 | buf | (-1),6,11 |
| STR_LEN | 1 | buf | (-1),6,11 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | *ab->skb->data | 0-255 |
| USER_DATA | 1 | *buf | 0-32,34,127-255 |
| USER_DATA | 2 | len | 1-u64max |
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | len | unit_byte |
| USER_PTR | 1 | buf | |
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | rcu_read |
security/lsm_audit.c audit_log_lsm_data() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 4096-ptr_max |
| PARAM_VALUE | 0 | ab->ctx->current_state | 2 |
| PARAM_VALUE | 0 | ab->gfp_mask | 10272 |
| PARAM_VALUE | 0 | ab->skb->cloned | 0-1 |
| PARAM_VALUE | 0 | ab->skb->csum_start | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->data_len | 0 |
| PARAM_VALUE | 0 | ab->skb->end | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->hdr_len | 0 |
| PARAM_VALUE | 0 | ab->skb->head_frag | 0 |
| PARAM_VALUE | 0 | ab->skb->inner_mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->len | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->nohdr | 0 |
| PARAM_VALUE | 0 | ab->skb->pfmemalloc | 0-1 |
| PARAM_VALUE | 0 | ab->skb->pp_recycle | 0 |
| PARAM_VALUE | 0 | ab->skb->tail | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->truesize | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->unreadable | 0-1 |
| PARAM_VALUE | 0 | ab->skb_list.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *ab->skb->head | 0-255 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 1 | *buf | 0 |
| PARAM_VALUE | 2 | len | 0-2147483645,18446744073709551614-u64max |
| BUF_SIZE | 1 | buf | 108 |
| BUF_SIZE | 1 | buf | 108 |
| DATA_SOURCE | 0 | ab | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
security/ipe/digest.c ipe_digest_audit() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 4096-ptr_max |
| PARAM_VALUE | 0 | ab->ctx->current_state | 2 |
| PARAM_VALUE | 0 | ab->ctx->ipc.has_perm | 0-1 |
| PARAM_VALUE | 0 | ab->ctx->mq_sendrecv.msg_prio | 0-s16max |
| PARAM_VALUE | 0 | ab->ctx->socketcall.nargs | 0,2-6 |
| PARAM_VALUE | 0 | ab->gfp_mask | 10272 |
| PARAM_VALUE | 0 | ab->skb->cloned | 0-1 |
| PARAM_VALUE | 0 | ab->skb->csum_start | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->data_len | 0 |
| PARAM_VALUE | 0 | ab->skb->end | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->hdr_len | 0 |
| PARAM_VALUE | 0 | ab->skb->head_frag | 0 |
| PARAM_VALUE | 0 | ab->skb->inner_mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->len | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->nohdr | 0 |
| PARAM_VALUE | 0 | ab->skb->pfmemalloc | 0-1 |
| PARAM_VALUE | 0 | ab->skb->pp_recycle | 0 |
| PARAM_VALUE | 0 | ab->skb->tail | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->truesize | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->unreadable | 0-1 |
| PARAM_VALUE | 0 | ab->skb_list.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *ab->skb->head | 0-255 |
| BUF_SIZE | 0 | ab | (-1)-s32max |
| BUF_SIZE | 0 | ab | (-1)-s32max |
| BUF_SIZE | 1 | buf | 1-505051 |
| DATA_SOURCE | 0 | ab | $0 |
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | rcu_read |
security/ipe/audit.c audit_policy() -> audit_log_n_hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ab | 4096-ptr_max |
| PARAM_VALUE | 0 | ab->ctx->current_state | 2 |
| PARAM_VALUE | 0 | ab->gfp_mask | 3264 |
| PARAM_VALUE | 0 | ab->skb->cloned | 0-1 |
| PARAM_VALUE | 0 | ab->skb->csum_start | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->data_len | 0 |
| PARAM_VALUE | 0 | ab->skb->end | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->hdr_len | 0 |
| PARAM_VALUE | 0 | ab->skb->head_frag | 0 |
| PARAM_VALUE | 0 | ab->skb->inner_mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->inner_transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->len | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->mac_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->network_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->nohdr | 0 |
| PARAM_VALUE | 0 | ab->skb->pfmemalloc | 0-1 |
| PARAM_VALUE | 0 | ab->skb->pp_recycle | 0 |
| PARAM_VALUE | 0 | ab->skb->tail | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->transport_header | 0-u16max |
| PARAM_VALUE | 0 | ab->skb->truesize | 0-4294967295 |
| PARAM_VALUE | 0 | ab->skb->unreadable | 0-1 |
| PARAM_VALUE | 0 | ab->skb_list.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *ab->skb->head | 0-255 |
| PARAM_VALUE | 1 | buf | 954683358326595584 |
| PARAM_VALUE | 2 | len | 32 |
| BUF_SIZE | 1 | buf | 32 |
| DATA_SOURCE | 0 | ab | $0 |
| STR_LEN | 0 | ab | 65,85 |
| STR_LEN | 0 | ab | 65,85 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &root->i_rwsem |