Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/bluetooth/smp.c sc_generate_ltk() -> sc_add_ltk()

Type Parameter Key Value
PARAM_VALUE 0 smp 4096-ptr_max
PARAM_VALUE 0 smp->conn 4096-ptr_max
PARAM_VALUE 0 smp->conn->hcon 4096-ptr_max
PARAM_VALUE 0 smp->preq 4096-ptr_max
PARAM_VALUE 0 smp->prsp 4096-ptr_max
BUF_SIZE 0 smp 1-s32max
BUF_SIZE 0 smp 1-s32max
BUF_SIZE 0 smp->csrk (-1),24
BUF_SIZE 0 smp->ltk (-1),72
BUF_SIZE 0 smp->remote_irk (-1)-0,64
DATA_SOURCE 0 smp $0
RX_PATH
NOCHECK_CALL
USER_DATA 0 smp->id_addr_type 0-255[u]
USER_DATA 0 smp->ltk->ediv 0-u16max[u]
USER_DATA 0 smp->ltk->enc_size 0-16[u]
USER_DATA 0 smp->ltk->rand 0-u64max[u]
USER_DATA 0 smp->remote_irk->addr_type 0-255[u]
USER_DATA 0 smp->remote_key_dist 0,2-246[c]
USER_PTR 0 smp->ltk->val
USER_PTR 0 smp->remote_irk->val
LOCK2 &conn->lock
HALF_LOCKED2 &chan->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/smp.c sc_user_reply() -> sc_add_ltk()

Type Parameter Key Value
PARAM_VALUE 0 smp 4096-ptr_max
PARAM_VALUE 0 smp->conn 4096-ptr_max
PARAM_VALUE 0 smp->conn->hcon 4096-ptr_max
PARAM_VALUE 0 smp->conn->smp 0,4096-ptr_max
PARAM_VALUE 0 smp->conn->smp->ack_timer->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 smp->conn->smp->ack_timer.work.entry.next->next 1-u64max
PARAM_VALUE 0 smp->conn->smp->ack_timer.work.entry.prev->next 1-u64max
PARAM_VALUE 0 smp->conn->smp->ack_timer.work.entry.prev->prev 1-u64max
PARAM_VALUE 0 smp->conn->smp->data->security_timer.cpu s32min-s32max
PARAM_VALUE 0 smp->conn->smp->data->security_timer.timer.flags 0-4294967295
PARAM_VALUE 0 smp->conn->smp->data->security_timer.work.lockdep_map->name 0-255
PARAM_VALUE 0 smp->conn->smp->lock->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 smp->conn->smp->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 smp->conn->smp->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 smp->conn->smp->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 smp->conn->smp->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 smp->conn->smp->monitor_timer->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 smp->conn->smp->monitor_timer.work.entry.next 1-u64max
PARAM_VALUE 0 smp->conn->smp->monitor_timer.work.entry.next->next 1-u64max
PARAM_VALUE 0 smp->conn->smp->monitor_timer.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 smp->conn->smp->monitor_timer.work.entry.prev 1-u64max
PARAM_VALUE 0 smp->conn->smp->monitor_timer.work.entry.prev->next 1-u64max
PARAM_VALUE 0 smp->conn->smp->monitor_timer.work.entry.prev->prev 1-u64max
PARAM_VALUE 0 smp->conn->smp->retrans_timer.work.entry.next->next 1-u64max
PARAM_VALUE 0 smp->conn->smp->retrans_timer.work.entry.prev->next 1-u64max
PARAM_VALUE 0 smp->conn->smp->retrans_timer.work.entry.prev->prev 1-u64max
PARAM_VALUE 0 smp->conn->smp->srej_list->list u16max
PARAM_VALUE 0 smp->conn->smp->srej_q.next 4096-ptr_max
PARAM_VALUE 0 smp->conn->smp->srej_q.next->prev 2011684551238094848
PARAM_VALUE 0 smp->conn->smp->srej_q.prev 4096-ptr_max
PARAM_VALUE 0 smp->conn->smp->srej_q.prev->next 2011684551238094848
PARAM_VALUE 0 smp->conn->smp->tx_q.prev->next 4096-7971830146572820479,7971830146572820481-ptr_max
BUF_SIZE 0 smp 1-s32max
BUF_SIZE 0 smp 1-s32max
CAPPED_DATA 0 smp->conn->smp 1
DATA_SOURCE 0 smp $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &chan->lock
LOCK2 &hdev->lock
LOCK2 global &mgmt_chan_list_lock
LOCK2 sk
HALF_LOCKED2 &vq->mutex
TYPE_LOCK (struct hci_dev)->lock
TYPE_LOCK (struct l2cap_chan)->lock

net/bluetooth/smp.c smp_cmd_dhkey_check() -> sc_add_ltk()

Type Parameter Key Value
PARAM_VALUE 0 smp 4096-ptr_max
PARAM_VALUE 0 smp->preq 4096-ptr_max
BUF_SIZE 0 smp 1-s32max
BUF_SIZE 0 smp 1-s32max
RX_PATH
NOCHECK_CALL
LOCK2 &conn->lock
HALF_LOCKED2 &chan->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct l2cap_conn)->lock