Defined in 1 files as a function:
Referenced in 7 files:
- fs/smb/server/auth.c
- fs/smb/server/compress.c
- fs/smb/server/connection.c
- fs/smb/server/oplock.c
- fs/smb/server/server.c, line 100
-
fs/smb/server/smb2pdu.c
- line 54
- line 55
- line 212
- line 238
- line 262
- line 288
- line 308
- line 331
- line 345
- line 587
- line 638
- line 639
- line 668
- line 684
- line 858
- line 861
- line 1339
- line 1340
- line 6648
- line 7238
- line 7239
- line 7479
- line 7480
- line 8003
- line 8021
- line 8053
- line 9035
- line 9036
- line 9728
- line 9751
- line 9825
- line 9963
- line 10002
- line 10014
- line 10055
- fs/smb/server/smb_common.c
Smatch caller information:
fs/smb/server/compress.c ksmbd_compress_response() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
fs/smb/server/compress.c ksmbd_decompress_request() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 40-8404997 |
| USER_PTR | 0 | buf |
fs/smb/server/smb_common.c init_smb1_rsp_hdr() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb_common.c init_smb1_rsp_hdr() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb_common.c ksmbd_init_smb_server() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | (-1),40-8404997 |
| USER_PTR | 0 | buf |
fs/smb/server/smb_common.c ksmbd_negotiate_smb_dialect() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| DATA_SOURCE | 0 | buf | $0 |
| USER_PTR | 0 | buf | |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/smb_common.c ksmbd_negotiate_smb_dialect() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| DATA_SOURCE | 0 | buf | $0 |
| USER_PTR | 0 | buf | |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/smb_common.c ksmbd_negotiate_smb_dialect() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| DATA_SOURCE | 0 | buf | $0 |
| USER_PTR | 0 | buf | |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/smb_common.c ksmbd_smb_request() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | (-1),40-8404997 |
| USER_PTR | 0 | buf |
fs/smb/server/smb_common.c ksmbd_verify_smb_message() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb_common.c smb_handle_negotiate() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/auth.c ksmbd_crypt_message() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | s32min-(-2),1-s32max |
| UNITS | 0 | buf | unit_byte |
fs/smb/server/auth.c ksmbd_gen_preauth_integrity_hash() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| DATA_SOURCE | 0 | buf | $1 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &conn->srv_mutex | ||
| HALF_LOCKED2 | &conn->srv_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/connection.c ksmbd_conn_handler_loop() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 40-8404997 |
| DATA_SOURCE | 0 | buf | r __kvmalloc_node_noprof |
| USER_PTR | 0 | buf |
fs/smb/server/connection.c ksmbd_conn_handler_loop() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 40-8404997,u64max |
| USER_PTR | 0 | buf |
fs/smb/server/smb2pdu.c __wbuf() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c __wbuf() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c fill_transform_hdr() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 448 |
| DATA_SOURCE | 0 | buf | $1 |
fs/smb/server/smb2pdu.c get_smb2_cmd_val() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | (-1),40-8404997 |
| BUF_SIZE | 0 | buf | (-1),40-8404997 |
| USER_PTR | 0 | buf |
fs/smb/server/smb2pdu.c init_smb2_neg_rsp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/smb2pdu.c init_smb2_neg_rsp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/smb2pdu.c init_smb2_rsp_hdr() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c init_smb2_rsp_hdr() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c is_chained_smb2_message() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
fs/smb/server/smb2pdu.c is_smb2_neg_cmd() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
fs/smb/server/smb2pdu.c is_smb2_rsp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 448 |
fs/smb/server/smb2pdu.c set_smb2_rsp_status() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_allocate_rsp_buf() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_allocate_rsp_buf() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_cancel() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_cancel() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | &conn->request_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->request_lock |
fs/smb/server/smb2pdu.c smb2_cancel() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | &conn->request_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->request_lock |
fs/smb/server/smb2pdu.c smb2_check_sign_req() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &conn->srv_mutex | ||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_echo() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_handle_negotiate() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/smb2pdu.c smb2_handle_negotiate() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| LOCK2 | &conn->srv_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->srv_mutex |
fs/smb/server/smb2pdu.c smb2_ioctl() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_ioctl() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_is_sign_req() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_read() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_read() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_send_interim_resp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_send_interim_resp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_send_interim_resp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_send_interim_resp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_set_err_rsp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| HALF_LOCKED2 | &conn->srv_mutex | ||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_set_info() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_set_info() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb3_11_final_sess_setup_resp() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 448 |
fs/smb/server/smb2pdu.c smb3_check_sign_req() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &conn->srv_mutex | ||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb3_decrypt_req() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb3_is_transform_hdr() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| BUF_SIZE | 0 | buf | 12,28,40-8404997 |
| DATA_SOURCE | 0 | buf | $0 |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/oplock.c __smb2_lease_break_noti() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/smb/server/oplock.c __smb2_lease_break_noti() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/smb/server/oplock.c __smb2_oplock_break_noti() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/smb/server/oplock.c __smb2_oplock_break_noti() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/smb/server/server.c check_conn_state() -> smb_get_msg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 16,4096-ptr_max |
| BUF_SIZE | 0 | buf | 448 |
| HALF_LOCKED2 | &pool->lock |