Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/smb/client/smb2pdu.c SMB2_negotiate() -> assemble_neg_contexts()

Type Parameter Key Value
PARAM_VALUE 0 conn 4096-ptr_max
PARAM_VALUE 0 conn->Capabilities 0,8-u32max
PARAM_VALUE 0 conn->DialectCount 1,3-4
PARAM_VALUE 0 conn->Dialects 4096-ptr_max
PARAM_VALUE 0 conn->SecurityMode 0-2
PARAM_VALUE 0 conn->hdr.SessionId 0
PARAM_VALUE 0 *conn (-4611686018427387904)-4611686018427387903
PARAM_VALUE 1 rsp 4096-ptr_max
PARAM_VALUE 1 rsp->mid_counter_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 rsp->ops->add_credits 4096-ptr_max
PARAM_VALUE 1 rsp->ops->adjust_credits 0,5075037794204405760
PARAM_VALUE 1 rsp->ops->async_readv 4096-ptr_max
PARAM_VALUE 1 rsp->ops->async_writev 4096-ptr_max
PARAM_VALUE 1 rsp->ops->calc_smb_size 4096-ptr_max
PARAM_VALUE 1 rsp->ops->can_echo 4096-ptr_max
PARAM_VALUE 1 rsp->ops->check_message 4096-ptr_max
PARAM_VALUE 1 rsp->ops->check_receive 4096-ptr_max
PARAM_VALUE 1 rsp->ops->check_trans2 0,6300747720491319296
PARAM_VALUE 1 rsp->ops->clear_stats 4096-ptr_max
PARAM_VALUE 1 rsp->ops->close 1-u64max
PARAM_VALUE 1 rsp->ops->close_dir 1-u64max
PARAM_VALUE 1 rsp->ops->close_getattr 0,7068871338307186688
PARAM_VALUE 1 rsp->ops->compare_fids 4096-ptr_max
PARAM_VALUE 1 rsp->ops->copychunk_range 0,4359182417368846336
PARAM_VALUE 1 rsp->ops->create_hardlink 4096-ptr_max
PARAM_VALUE 1 rsp->ops->create_lease_buf 0,6152673070102196224,7317131541516980224
PARAM_VALUE 1 rsp->ops->create_mf_symlink 1-u64max
PARAM_VALUE 1 rsp->ops->create_reparse_inode 4096-ptr_max
PARAM_VALUE 1 rsp->ops->dir_needs_close 4096-ptr_max
PARAM_VALUE 1 rsp->ops->downgrade_oplock 4096-ptr_max
PARAM_VALUE 1 rsp->ops->dump_detail 4096-ptr_max
PARAM_VALUE 1 rsp->ops->dump_share_caps 0,1901511823763505152
PARAM_VALUE 1 rsp->ops->duplicate_extents 0,4993026252135825408
PARAM_VALUE 1 rsp->ops->echo 4096-ptr_max
PARAM_VALUE 1 rsp->ops->enum_snapshots 0,8334165776308752384
PARAM_VALUE 1 rsp->ops->fallocate 0,7926336135924965376
PARAM_VALUE 1 rsp->ops->fiemap 0,3443914170541109248
PARAM_VALUE 1 rsp->ops->find_mid 4096-ptr_max
PARAM_VALUE 1 rsp->ops->flush 1-u64max
PARAM_VALUE 1 rsp->ops->generate_signingkey 0,3655047902812889088,8536357663518494720
PARAM_VALUE 1 rsp->ops->get_acl 4096-ptr_max
PARAM_VALUE 1 rsp->ops->get_acl_by_fid 4096-ptr_max
PARAM_VALUE 1 rsp->ops->get_credits 4096-ptr_max
PARAM_VALUE 1 rsp->ops->get_credits_field 4096-ptr_max
PARAM_VALUE 1 rsp->ops->get_dfs_refer 4096-ptr_max
PARAM_VALUE 1 rsp->ops->get_lease_key 0,311838212866678784
PARAM_VALUE 1 rsp->ops->get_next_mid 4096-ptr_max
PARAM_VALUE 1 rsp->ops->get_reparse_point_buffer 715635538746155008,1985044248160686080
PARAM_VALUE 1 rsp->ops->get_srv_inum 4096-ptr_max
PARAM_VALUE 1 rsp->ops->handle_cancelled_mid 0,4096-ptr_max
PARAM_VALUE 1 rsp->ops->init_transform_rq 0,4096-ptr_max
PARAM_VALUE 1 rsp->ops->ioctl_query_info 0,5345611379303972864
PARAM_VALUE 1 rsp->ops->is_network_name_deleted 4096-ptr_max
PARAM_VALUE 1 rsp->ops->is_oplock_break 4096-ptr_max
PARAM_VALUE 1 rsp->ops->is_path_accessible 4096-ptr_max
PARAM_VALUE 1 rsp->ops->is_read_op 4096-ptr_max
PARAM_VALUE 1 rsp->ops->is_session_expired 0,7347258589302591488
PARAM_VALUE 1 rsp->ops->is_status_io_timeout 0,8980158677023936512
PARAM_VALUE 1 rsp->ops->is_status_pending 0,6742650767380713472
PARAM_VALUE 1 rsp->ops->is_transform_hdr 0,7176274675243610112
PARAM_VALUE 1 rsp->ops->llseek 0,1802391218220650496
PARAM_VALUE 1 rsp->ops->logoff 4628176709654794240,7961230517305634816
PARAM_VALUE 1 rsp->ops->make_node 4096-ptr_max
PARAM_VALUE 1 rsp->ops->mand_lock 4096-ptr_max
PARAM_VALUE 1 rsp->ops->mand_unlock_range 4096-ptr_max
PARAM_VALUE 1 rsp->ops->map_error 4096-ptr_max
PARAM_VALUE 1 rsp->ops->mkdir 1-u64max
PARAM_VALUE 1 rsp->ops->mkdir_setinfo 1-u64max
PARAM_VALUE 1 rsp->ops->need_neg 1-u64max
PARAM_VALUE 1 rsp->ops->negotiate 1-u64max
PARAM_VALUE 1 rsp->ops->negotiate_rsize 4096-ptr_max
PARAM_VALUE 1 rsp->ops->negotiate_wsize 4096-ptr_max
PARAM_VALUE 1 rsp->ops->new_lease_key 0,4096-ptr_max
PARAM_VALUE 1 rsp->ops->next_header 0,8630180984356941824
PARAM_VALUE 1 rsp->ops->notify 0,8437719128491147264
PARAM_VALUE 1 rsp->ops->open 1-u64max
PARAM_VALUE 1 rsp->ops->oplock_response 4096-ptr_max
PARAM_VALUE 1 rsp->ops->parse_lease_buf 0,474349381327081472,6751828617712328704
PARAM_VALUE 1 rsp->ops->posix_mkdir 0,1097195524889423872
PARAM_VALUE 1 rsp->ops->print_stats 4096-ptr_max
PARAM_VALUE 1 rsp->ops->push_mand_locks 4096-ptr_max
PARAM_VALUE 1 rsp->ops->qfs_tcon 4096-ptr_max
PARAM_VALUE 1 rsp->ops->query_all_EAs 4096-ptr_max
PARAM_VALUE 1 rsp->ops->query_dir_first 1-u64max
PARAM_VALUE 1 rsp->ops->query_dir_next 1-u64max
PARAM_VALUE 1 rsp->ops->query_file_info 1-u64max
PARAM_VALUE 1 rsp->ops->query_mf_symlink 1-u64max
PARAM_VALUE 1 rsp->ops->query_path_info 4096-ptr_max
PARAM_VALUE 1 rsp->ops->query_reparse_point 1-u64max
PARAM_VALUE 1 rsp->ops->query_server_interfaces 0,7783036724232511488
PARAM_VALUE 1 rsp->ops->query_symlink 0,8781163991688114176
PARAM_VALUE 1 rsp->ops->queryfs 1-u64max
PARAM_VALUE 1 rsp->ops->read_data_length 4096-ptr_max
PARAM_VALUE 1 rsp->ops->read_data_offset 4096-ptr_max
PARAM_VALUE 1 rsp->ops->receive_transform 0,564095901655928832
PARAM_VALUE 1 rsp->ops->rename 4096-ptr_max
PARAM_VALUE 1 rsp->ops->rename_pending_delete 4096-ptr_max
PARAM_VALUE 1 rsp->ops->revert_current_mid 0,4096-ptr_max
PARAM_VALUE 1 rsp->ops->rmdir 4096-ptr_max
PARAM_VALUE 1 rsp->ops->select_sectype 4096-ptr_max
PARAM_VALUE 1 rsp->ops->send_cancel 0,4096-ptr_max
PARAM_VALUE 1 rsp->ops->sess_setup 1-u64max
PARAM_VALUE 1 rsp->ops->set_EA 1-u64max
PARAM_VALUE 1 rsp->ops->set_acl 4096-ptr_max
PARAM_VALUE 1 rsp->ops->set_compression 1-u64max
PARAM_VALUE 1 rsp->ops->set_credits 4096-ptr_max
PARAM_VALUE 1 rsp->ops->set_fid 4096-ptr_max
PARAM_VALUE 1 rsp->ops->set_file_info 4096-ptr_max
PARAM_VALUE 1 rsp->ops->set_file_size 4096-ptr_max
PARAM_VALUE 1 rsp->ops->set_integrity 0,7862464251702898688
PARAM_VALUE 1 rsp->ops->set_lease_key 0,4156408742693687296
PARAM_VALUE 1 rsp->ops->set_oplock_level 0,1628928885716488192,1716192525592436736,8641955065747824640
PARAM_VALUE 1 rsp->ops->set_path_size 4096-ptr_max
PARAM_VALUE 1 rsp->ops->setup_async_request 4096-ptr_max
PARAM_VALUE 1 rsp->ops->setup_request 4096-ptr_max
PARAM_VALUE 1 rsp->ops->sync_read 4096-ptr_max
PARAM_VALUE 1 rsp->ops->sync_write 4096-ptr_max
PARAM_VALUE 1 rsp->ops->tree_connect 4096-ptr_max
PARAM_VALUE 1 rsp->ops->tree_disconnect 4096-ptr_max
PARAM_VALUE 1 rsp->ops->unlink 4096-ptr_max
PARAM_VALUE 1 rsp->ops->validate_negotiate 0,3591058432975998976
PARAM_VALUE 1 rsp->ops->wait_mtu_credits 4096-ptr_max
PARAM_VALUE 1 rsp->ops->wp_retry_size 4096-ptr_max
PARAM_VALUE 1 rsp->primary_server->vals->read_rsp_size 0,59,80
PARAM_VALUE 1 rsp->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 rsp->srv_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 rsp->ssocket->sk->ns_tracker->alloc_stack_handle 0-4294967295
PARAM_VALUE 1 rsp->ssocket->sk->ns_tracker->dead 0-1
PARAM_VALUE 1 rsp->ssocket->sk->ns_tracker->free_stack_handle 0-4294967295
PARAM_VALUE 1 rsp->tsk->delays->blkio_count 0-4294967295
PARAM_VALUE 1 rsp->tsk->delays->blkio_delay_max 0-s64max
PARAM_VALUE 1 rsp->tsk->delays->blkio_delay_min 0-s64max
PARAM_VALUE 1 rsp->vals 4096-ptr_max
PARAM_VALUE 1 rsp->vals->cap_large_files 0,8,2097152
PARAM_VALUE 1 rsp->vals->cap_nt_find 0,528,1048576
PARAM_VALUE 1 rsp->vals->cap_unicode 0,4
PARAM_VALUE 1 rsp->vals->cap_unix 0,8388608
PARAM_VALUE 1 rsp->vals->create_disk_id_size 0,56
PARAM_VALUE 1 rsp->vals->create_durable_size 0,32
PARAM_VALUE 1 rsp->vals->create_durable_v2_size 0,32
PARAM_VALUE 1 rsp->vals->create_lease_size 0,56,80
PARAM_VALUE 1 rsp->vals->create_mxac_size 0,32
PARAM_VALUE 1 rsp->vals->create_posix_size 0,88
PARAM_VALUE 1 rsp->vals->exclusive_lock_type 0,2
PARAM_VALUE 1 rsp->vals->header_size 0,33,64
PARAM_VALUE 1 rsp->vals->large_lock_type 0,16
PARAM_VALUE 1 rsp->vals->lock_cmd 0,10,36
PARAM_VALUE 1 rsp->vals->max_header_size 0,84,120,204
PARAM_VALUE 1 rsp->vals->max_read_size 0,65536-8388608
PARAM_VALUE 1 rsp->vals->max_trans_size 0,65536-8388608
PARAM_VALUE 1 rsp->vals->max_write_size 0,65536-8388608
PARAM_VALUE 1 rsp->vals->protocol_id 0-513,515-768,770,785
PARAM_VALUE 1 rsp->vals->read_rsp_size 0,59,80
PARAM_VALUE 1 rsp->vals->req_capabilities 0,2-u32max
PARAM_VALUE 1 rsp->vals->shared_lock_type 0-1
PARAM_VALUE 1 rsp->vals->signing_enabled 0,3-4
PARAM_VALUE 1 rsp->vals->signing_required 0,2,8
PARAM_VALUE 1 rsp->vals->unlock_lock_type 0,4
PARAM_VALUE 1 rsp->vals->version_string 0,4096-ptr_max
PARAM_VALUE 1 *rsp->fastest_cmd 0-4294967295
PARAM_VALUE 1 *rsp->slowest_cmd 0-4294967295
PARAM_VALUE 2 total_len 3966794025598672896
PARAM_VALUE 2 *total_len 70-129
BUF_SIZE 1 rsp (-1),64,88,264,736,2800,2808
BUF_SIZE 1 rsp (-1),64,88,264,736,2800,2808
DATA_SOURCE 1 rsp $2
FUZZY_MAX 0 conn->DialectCount 4
FUZZY_MAX 0 conn->SecurityMode 2
FUZZY_MAX 1 rsp->vals->protocol_id 785
BIT_INFO 0 conn->Capabilities 0x8,0xffffffff
HARD_MAX 0 conn->DialectCount 4
HARD_MAX 0 conn->SecurityMode 2
MEM_ZERO 1 rsp->preauth_sha_hash
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 rsp->tsk->dl.dl_runtime
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/server/smb2pdu.c smb2_handle_negotiate() -> assemble_neg_contexts()

Type Parameter Key Value
PARAM_VALUE 0 conn 4096-ptr_max
PARAM_VALUE 0 conn->cipher_type 0-4
PARAM_VALUE 0 conn->cmds 5794070036731604992
PARAM_VALUE 0 conn->compress_algorithm 0,2
PARAM_VALUE 0 conn->dialect 785
PARAM_VALUE 0 conn->max_cmds 19
PARAM_VALUE 0 conn->need_neg 0
PARAM_VALUE 0 conn->ops 3896487406566141952
PARAM_VALUE 0 conn->ops->allocate_rsp_buf 3474047775168413696
PARAM_VALUE 0 conn->ops->check_sign_req 8598295507648638976
PARAM_VALUE 0 conn->ops->check_user_session 4648749305727516672
PARAM_VALUE 0 conn->ops->decrypt_req 966191658822303744
PARAM_VALUE 0 conn->ops->encrypt_resp 995184572535586816
PARAM_VALUE 0 conn->ops->generate_encryptionkey 3863936581855973376
PARAM_VALUE 0 conn->ops->generate_signingkey 4801351377101225984
PARAM_VALUE 0 conn->ops->get_cmd_val 6519228253280448512
PARAM_VALUE 0 conn->ops->get_ksmbd_tcon 3897272667789025280
PARAM_VALUE 0 conn->ops->inc_reqs 2273484115480924160
PARAM_VALUE 0 conn->ops->init_rsp_hdr 8696135820481527808
PARAM_VALUE 0 conn->ops->is_sign_req 1592264555114250240
PARAM_VALUE 0 conn->ops->is_transform_hdr 1534495180718915584
PARAM_VALUE 0 conn->ops->set_rsp_credits 2199132152104894464
PARAM_VALUE 0 conn->ops->set_rsp_status 6350479018582278144
PARAM_VALUE 0 conn->ops->set_sign_rsp 3175898097298567168
PARAM_VALUE 0 conn->posix_ext_supported 1
PARAM_VALUE 0 conn->preauth_info 4096-ptr_max
PARAM_VALUE 0 conn->preauth_info->Preauth_HashId 1
PARAM_VALUE 0 conn->preauth_sess_table.next 4096-ptr_max
PARAM_VALUE 0 conn->preauth_sess_table.next->next 4096-ptr_max
PARAM_VALUE 0 conn->preauth_sess_table.prev 4096-ptr_max
PARAM_VALUE 0 conn->preauth_sess_table.prev->next 4096-ptr_max
PARAM_VALUE 0 conn->preauth_sess_table.prev->prev 4096-ptr_max
PARAM_VALUE 0 conn->signing_algorithm 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 0,4
PARAM_VALUE 0 conn->vals 6021224307741634560
PARAM_VALUE 0 conn->vals->cap_large_files 2097152
PARAM_VALUE 0 conn->vals->cap_nt_find 1048576
PARAM_VALUE 0 conn->vals->cap_unicode 0
PARAM_VALUE 0 conn->vals->cap_unix 0
PARAM_VALUE 0 conn->vals->create_disk_id_size 56
PARAM_VALUE 0 conn->vals->create_durable_size 32
PARAM_VALUE 0 conn->vals->create_durable_v2_size 32
PARAM_VALUE 0 conn->vals->create_lease_size 80
PARAM_VALUE 0 conn->vals->create_mxac_size 32
PARAM_VALUE 0 conn->vals->create_posix_size 88
PARAM_VALUE 0 conn->vals->exclusive_lock_type 2
PARAM_VALUE 0 conn->vals->header_size 64
PARAM_VALUE 0 conn->vals->large_lock_type 0
PARAM_VALUE 0 conn->vals->lock_cmd 10
PARAM_VALUE 0 conn->vals->max_credits 8192
PARAM_VALUE 0 conn->vals->max_header_size 120
PARAM_VALUE 0 conn->vals->max_read_size 4194304
PARAM_VALUE 0 conn->vals->max_trans_size 4194304
PARAM_VALUE 0 conn->vals->max_write_size 4194304
PARAM_VALUE 0 conn->vals->protocol_id 785
PARAM_VALUE 0 conn->vals->read_rsp_size 80
PARAM_VALUE 0 conn->vals->req_capabilities 0,4,6,8-648
PARAM_VALUE 0 conn->vals->shared_lock_type 1
PARAM_VALUE 0 conn->vals->signing_enabled 0
PARAM_VALUE 0 conn->vals->signing_required 0
PARAM_VALUE 0 conn->vals->unlock_lock_type 4
PARAM_VALUE 0 conn->vals->version_string 3627502677436354560
PARAM_VALUE 1 rsp 4096-ptr_max
PARAM_VALUE 1 rsp->NegotiateContextOffset 224
BUF_SIZE 0 conn->preauth_info 66
DATA_SOURCE 1 rsp r smb_get_msg
LOCK2 &conn->srv_mutex
LOCK2 &pool->lock
TYPE_LOCK (struct ksmbd_conn)->srv_mutex