Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/smb/server/smb2misc.c ksmbd_smb2_check_message() -> smb2_calc_size()

Type Parameter Key Value
PARAM_VALUE 0 buf 4096-ptr_max
PARAM_VALUE 1 len 4088691351871942656
BUF_SIZE 0 buf 64
LOCK2 &pool->lock

fs/smb/client/readdir.c cifs_readdir() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
BUF_SIZE 0 buf s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/readdir.c find_cifs_entry() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
PARAM_VALUE 0 buf 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/smb2ops.c smb2_dump_detail() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
PARAM_VALUE 0 buf 1-u64max
DATA_SOURCE 0 buf $0
LOCK2 &server->mid_queue_lock
LOCK2 &server->srv_lock
TYPE_LOCK (struct TCP_Server_Info)->mid_queue_lock
TYPE_LOCK (struct TCP_Server_Info)->srv_lock

fs/smb/client/smb1debug.c cifs_dump_detail() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
PARAM_VALUE 0 buf 1-u64max
DATA_SOURCE 0 buf $0
LOCK2 &server->mid_queue_lock
TYPE_LOCK (struct TCP_Server_Info)->mid_queue_lock