Defined in 2 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/smb/server/auth.c ksmbd_auth_ntlmv2() -> calc_ntlmv2_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | conn | 4096-ptr_max |
| PARAM_VALUE | 0 | conn->preferred_auth_mech | 1 |
| PARAM_VALUE | 0 | conn->srv_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | conn->srv_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | conn->status | 1,5 |
| PARAM_VALUE | 1 | sess | 4096-ptr_max |
| PARAM_VALUE | 1 | sess->state | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | sess->user | 4096-ptr_max |
| PARAM_VALUE | 1 | sess->user->name | 4096-ptr_max |
| PARAM_VALUE | 1 | sess->user->passkey | 16,4096-ptr_max |
| PARAM_VALUE | 1 | sess->user->passkey_sz | 0-u16max |
| PARAM_VALUE | 2 | ntlmv2_hash | 6408548612506787840 |
| PARAM_VALUE | 3 | dname | 16,4096-ptr_max |
| BUF_SIZE | 1 | sess | (-1),1136 |
| BUF_SIZE | 1 | sess | (-1),1136 |
| BUF_SIZE | 1 | sess->user | (-1),56 |
| BUF_SIZE | 2 | ntlmv2_hash | 16 |
| CAPPED_DATA | 1 | sess->user->passkey_sz | 1 |
| DATA_SOURCE | 0 | conn | $0 |
| DATA_SOURCE | 1 | sess | $1 |
| DATA_SOURCE | 3 | dname | $4 |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/client/cifsencrypt.c setup_ntlmv2_rsp() -> calc_ntlmv2_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | conn | 4096-ptr_max |
| PARAM_VALUE | 0 | conn->auth_key.len | 68-2020280 |
| PARAM_VALUE | 0 | conn->auth_key.response | 4096-ptr_max |
| PARAM_VALUE | 0 | conn->server | 4096-ptr_max |
| PARAM_VALUE | 0 | conn->server->_srv_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | conn->server->_srv_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | conn->server->_srv_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | conn->server->_srv_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | conn->server->hostname | 4096-ptr_max |
| PARAM_VALUE | 0 | conn->server->nofs_flag | 0,262144 |
| PARAM_VALUE | 1 | sess | 8899736352710414336 |
| PARAM_VALUE | 2 | ntlmv2_hash | 1-u64max |
| BUF_SIZE | 0 | conn | (-1),1584 |
| BUF_SIZE | 0 | conn | (-1),1584 |
| BUF_SIZE | 1 | sess | 16 |
| DATA_SOURCE | 0 | conn | $0 |
| DATA_SOURCE | 2 | ntlmv2_hash | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ses->session_mutex | ||
| LOCK2 | 0 | &conn->server->_srv_mutex | |
| TYPE_LOCK | (struct TCP_Server_Info)->_srv_mutex | ||
| TYPE_LOCK | (struct cifs_ses)->session_mutex |