Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

net/bluetooth/l2cap_sock.c l2cap_sock_setsockopt() -> smp_conn_security()

Type Parameter Key Value
PARAM_VALUE 1 sec_level 1-4
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 sec_level 1-4
LOCK2 &chan->lock
LOCK2 sk
HALF_LOCKED2 &smc->clcsock_release_lock
TYPE_LOCK (struct l2cap_chan)->lock

net/bluetooth/hci_conn.c hci_conn_security() -> smp_conn_security()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 0 hcon->type 128
BUF_SIZE 0 hcon (-1),5104
BUF_SIZE 0 hcon (-1),5104
DATA_SOURCE 0 hcon $0
DATA_SOURCE 1 sec_level $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 hcon->io_capability 0-4[u]
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 global &mgmt_chan_list_lock
HALF_LOCKED2 global &rfcomm_mutex
HALF_LOCKED2 sk

net/bluetooth/l2cap_core.c l2cap_chan_check_security() -> smp_conn_security()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 0 hcon->type 128
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 sec_level 1-4
HALF_LOCKED2 &chan->lock
HALF_LOCKED2 &conn->lock
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 &pchan->lock
HALF_LOCKED2 sk

net/bluetooth/l2cap_core.c l2cap_ecred_conn_rsp() -> smp_conn_security()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 0 hcon->hdev 4096-ptr_max
PARAM_VALUE 0 hcon->sec_level 0-2
PARAM_VALUE 0 hcon->state 1
PARAM_VALUE 0 hcon->type 128
PARAM_VALUE 1 sec_level 1-255
RX_PATH
NOCHECK_CALL
LOCK2 &chan->lock
LOCK2 &conn->lock
LOCK2 &pool->lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/l2cap_core.c l2cap_le_conn_ready() -> smp_conn_security()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 0 hcon->out 1
PARAM_VALUE 0 hcon->type 0,2-255
BUF_SIZE 0 hcon (-1),1,3-8196
BUF_SIZE 0 hcon (-1),1,3-8196
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &hci_cb_list_lock
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 &hdev->req_lock
HALF_LOCKED2 &pool->lock

net/bluetooth/l2cap_core.c l2cap_le_connect_rsp() -> smp_conn_security()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 0 hcon->hdev 4096-ptr_max
PARAM_VALUE 0 hcon->sec_level 0-2
PARAM_VALUE 0 hcon->state 1
PARAM_VALUE 0 hcon->type 128
PARAM_VALUE 1 sec_level 1-255
CAPPED_DATA 1 sec_level 1
FUZZY_MAX 0 hcon->sec_level 2
HARD_MAX 0 hcon->sec_level 2
RX_PATH
NOCHECK_CALL
LOCK2 &chan->lock
LOCK2 &conn->lock
LOCK2 &pool->lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/l2cap_core.c l2cap_le_start() -> smp_conn_security()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &chan->lock
LOCK2 &conn->lock
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 global &hci_cb_list_lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock