Home
last modified time | relevance | path

Searched refs:ses (Results 1 – 25 of 61) sorted by relevance

123

/linux-6.15/fs/smb/client/
H A Dsess.c161 left = ses->chan_max - ses->chan_count; in cifs_try_adding_channels()
552 chan = &ses->chans[ses->chan_count]; in cifs_ses_add_channel()
1320 struct cifs_ses *ses = sess_data->ses; in sess_alloc_buffer() local
1374 struct cifs_ses *ses = sess_data->ses; in sess_establish_session() local
1428 struct cifs_ses *ses = sess_data->ses; in sess_auth_ntlmv2() local
1538 struct cifs_ses *ses = sess_data->ses; in sess_auth_kerberos() local
1679 struct cifs_ses *ses = sess_data->ses; in _sess_auth_rawntlmssp_assemble_req() local
1719 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_negotiate() local
1825 struct cifs_ses *ses = sess_data->ses; in sess_auth_rawntlmssp_authenticate() local
1931 struct cifs_ses *ses = sess_data->ses; in select_sec() local
[all …]
H A Dcifsencrypt.c281 if (!ses->domainName) { in build_avpair_blob()
283 if (!ses->domainName) in build_avpair_blob()
297 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob()
299 ses->auth_key.len = 0; in build_avpair_blob()
331 end = (u8 *)ses->auth_key.response + ses->auth_key.len; in find_next_av()
333 if (unlikely(!ses->auth_key.response || !ses->auth_key.len)) in find_next_av()
433 len = ses->user_name ? strlen(ses->user_name) : 0; in calc_ntlmv2_hash()
453 if (ses->domainName) { in calc_ntlmv2_hash()
553 if (!ses->domainName) { in setup_ntlmv2_rsp()
554 if (ses->domainAuto) { in setup_ntlmv2_rsp()
[all …]
H A Dsmb2transport.c92 if (ses->Suid == ses_id) in smb3_get_sign_key()
124 chan = ses->chans + i; in smb3_get_sign_key()
149 struct cifs_ses *ses; in smb2_find_smb_ses_unlocked() local
165 return ses; in smb2_find_smb_ses_unlocked()
174 struct cifs_ses *ses; in smb2_get_sign_key() local
233 struct cifs_ses *ses; in smb2_find_smb_tcon() local
238 if (!ses) { in smb2_find_smb_tcon()
245 cifs_put_smb_ses(ses); in smb2_find_smb_tcon()
250 cifs_put_smb_ses(ses); in smb2_find_smb_tcon()
479 memcpy(ses->chans[chan_index].signkey, ses->smb3signingkey, in generate_smb3signingkey()
[all …]
H A Dconnect.c2038 tcon->ses = ses; in cifs_setup_ipc()
2100 __func__, ses->Suid, ses->ses_count, ses->ses_status, in __cifs_put_smb_ses()
2101 ses->tcon_ipc ? ses->tcon_ipc->tree_name : "none"); in __cifs_put_smb_ses()
2340 if (ses) { in cifs_get_smb_ses()
2368 swap(ses->password, ses->password2); in cifs_get_smb_ses()
2484 memcpy(ses->chans[0].signkey, ses->smb3signingkey, in cifs_get_smb_ses()
2493 swap(ses->password, ses->password2); in cifs_get_smb_ses()
2590 ses = tcon->ses; in cifs_put_tcon()
2716 tcon->ses = ses; in cifs_get_tcon()
3014 ses = tcon->ses; in cifs_match_super()
[all …]
H A Dcifs_debug.c238 struct cifs_ses *ses; in cifs_debug_files_proc_show() local
261 ses->Suid, in cifs_debug_files_proc_show()
306 struct cifs_ses *ses; in cifs_debug_data_proc_show() local
503 i, ses->ip_addr, ses->ses_count, in cifs_debug_data_proc_show()
504 ses->capabilities, ses->ses_status); in cifs_debug_data_proc_show()
514 i, ses->ip_addr, ses->serverDomain, in cifs_debug_data_proc_show()
515 ses->ses_count, ses->serverOS, ses->serverNOS, in cifs_debug_data_proc_show()
516 ses->capabilities, ses->ses_status); in cifs_debug_data_proc_show()
533 if (ses->sign) in cifs_debug_data_proc_show()
568 if (ses->tcon_ipc) in cifs_debug_data_proc_show()
[all …]
H A Dsmb2pdu.c249 ses = tcon->ses; in smb2_reconnect()
1913 sess_data->ses = ses; in SMB2_sess_setup()
1955 if (ses && (ses->server)) in SMB2_logoff()
2164 struct cifs_ses *ses = tcon->ses; in SMB2_tdis() local
2174 if (!ses || !(ses->server)) in SMB2_tdis()
2810 struct cifs_ses *ses = tcon->ses; in smb311_posix_mkdir() local
3177 struct cifs_ses *ses = tcon->ses; in SMB2_open() local
3402 ses = tcon->ses; in SMB2_ioctl()
4218 tcon->ses = ses; in smb2_reconnect_server()
4329 if (!ses || !(ses->server)) in SMB2_flush()
[all …]
H A Dioctl.c57 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info()
58 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info()
123 tcon_inf.session_id = tcon->ses->Suid; in smb_mnt_get_tcon_info()
240 struct cifs_ses *ses; in cifs_dump_full_key() local
258 ses = tcon->ses; in cifs_dump_full_key()
270 ses = ses_it; in cifs_dump_full_key()
276 cifs_smb_ses_inc_refcount(ses); in cifs_dump_full_key()
292 switch (ses->server->cipher_type) { in cifs_dump_full_key()
315 out.session_id = ses->Suid; in cifs_dump_full_key()
345 cifs_put_smb_ses(ses); in cifs_dump_full_key()
[all …]
H A Ddfs.h23 struct cifs_ses *ses; member
43 #define ref_walk_ses(w) (ref_walk_cur(w)->ses)
68 if (ref->ses) in __ref_walk_free()
69 cifs_put_smb_ses(ref->ses); in __ref_walk_free()
138 if (WARN_ON_ONCE(!ref->ses)) in ref_walk_set_tcon()
141 ref->ses = NULL; in ref_walk_set_tcon()
183 struct cifs_ses *ses, *n; in dfs_put_root_smb_sessions() local
185 list_for_each_entry_safe(ses, n, head, dlist) { in dfs_put_root_smb_sessions()
186 list_del_init(&ses->dlist); in dfs_put_root_smb_sessions()
187 cifs_put_smb_ses(ses); in dfs_put_root_smb_sessions()
[all …]
H A Dtransport.c696 spin_lock(&ses->ses_lock); in allocate_mid()
1023 if (!ses) in cifs_pick_channel()
1054 index %= ses->chan_count; in cifs_pick_channel()
1083 if (!ses || !ses->server || !server) { in compound_send_recv()
1339 rc = cifs_send_recv(xid, ses, ses->server, in SendReceive2()
1359 if (ses == NULL) { in SendReceive()
1363 server = ses->server; in SendReceive()
1470 struct cifs_ses *ses = tcon->ses; in send_lock_cancel() local
1494 struct cifs_ses *ses; in SendReceiveBlockingLock() local
1505 ses = tcon->ses; in SendReceiveBlockingLock()
[all …]
H A Dcifs_swn.c50 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm()
56 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm()
62 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm()
114 if (swnreg->tcon->ses->server->use_swn_dstaddr) in cifs_swn_send_register_message()
117 addr = &swnreg->tcon->ses->server->dstaddr; in cifs_swn_send_register_message()
141 authtype = cifs_select_sectype(swnreg->tcon->ses->server, swnreg->tcon->ses->sectype); in cifs_swn_send_register_message()
211 &swnreg->tcon->ses->server->dstaddr); in cifs_swn_send_unregister_message()
468 cifs_server_lock(tcon->ses->server); in cifs_swn_reconnect()
473 &tcon->ses->server->swn_dstaddr); in cifs_swn_reconnect()
478 tcon->ses->server->use_swn_dstaddr = true; in cifs_swn_reconnect()
[all …]
H A Ddfs_cache.c653 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral()
659 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
1129 spin_lock(&ses->ses_lock); in is_ses_good()
1130 spin_lock(&ses->chan_lock); in is_ses_good()
1155 ses = CIFS_DFS_ROOT_SES(ses); in refresh_ses_referral()
1156 if (!is_ses_good(ses)) { in refresh_ses_referral()
1218 struct cifs_ses *ses; in refresh_tcon_referral() local
1226 ses = tcon->ses; in refresh_tcon_referral()
1243 ses = CIFS_DFS_ROOT_SES(ses); in refresh_tcon_referral()
1244 if (!is_ses_good(ses)) { in refresh_tcon_referral()
[all …]
H A Dcifsproto.h179 struct cifs_ses *ses,
325 struct cifs_ses *ses,
332 struct cifs_ses *ses,
595 void __cifs_put_smb_ses(struct cifs_ses *ses);
626 cifs_ses_get_chan_index(struct cifs_ses *ses,
629 cifs_chan_set_in_reconnect(struct cifs_ses *ses,
632 cifs_chan_clear_in_reconnect(struct cifs_ses *ses,
641 cifs_chan_needs_reconnect(struct cifs_ses *ses,
644 cifs_chan_is_iface_active(struct cifs_ses *ses,
719 __cifs_put_smb_ses(ses); in cifs_put_smb_ses()
[all …]
H A Dcifsfs.c205 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
482 if (ses->user_name == NULL) in cifs_show_security()
489 switch (ses->sectype) { in cifs_show_security()
505 if (ses->sign) in cifs_show_security()
508 if (ses->sectype == Kerberos) in cifs_show_security()
599 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0) in cifs_show_options()
640 if (tcon->ses->unicode == 0) in cifs_show_options()
773 if (tcon->ses->chan_max > 1) in cifs_show_options()
775 tcon->ses->chan_max); in cifs_show_options()
815 if (tcon->ses && tcon->ses->server) { in cifs_umount_begin()
[all …]
H A Ddfs.c78 struct cifs_ses *ses = mnt_ctx->ses; in set_root_smb_session() local
80 if (ses) { in set_root_smb_session()
82 cifs_smb_ses_inc_refcount(ses); in set_root_smb_session()
85 ctx->dfs_root_ses = ses; in set_root_smb_session()
222 else if (WARN_ON(!mnt_ctx->ses)) in __dfs_mount_share()
343 struct TCP_Server_Info *server = tcon->ses->server; in tree_connect_dfs_target()
373 rc = ops->tree_connect(xid, tcon->ses, tree, in tree_connect_dfs_target()
374 tcon, tcon->ses->local_nls); in tree_connect_dfs_target()
428 rc = ops->tree_connect(xid, tcon->ses, tree, in cifs_tree_connect()
429 tcon, tcon->ses->local_nls); in cifs_tree_connect()
[all …]
H A Dcifssmb.c74 struct cifs_ses *ses; in cifs_reconnect_tcon() local
85 ses = tcon->ses; in cifs_reconnect_tcon()
86 server = ses->server; in cifs_reconnect_tcon()
165 rc = cifs_setup_session(0, ses, server, ses->local_nls); in cifs_reconnect_tcon()
171 if (ses->password2) in cifs_reconnect_tcon()
172 swap(ses->password2, ses->password); in cifs_reconnect_tcon()
195 if (cap_unix(ses)) in cifs_reconnect_tcon()
321 if (cifs_chan_needs_reconnect(tcon->ses, tcon->ses->server) || in smb_init_no_reconnect()
537 if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) in CIFSSMBTDis()
642 if (!ses || !ses->server) in CIFSSMBLogoff()
[all …]
H A Dxattr.c61 if (pTcon->ses->server->ops->set_file_info) in cifs_attrib_set()
85 if (pTcon->ses->server->ops->set_file_info) in cifs_creation_time_set()
156 if (pTcon->ses->server->ops->set_EA) { in cifs_xattr_set()
157 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_xattr_set()
179 if (pTcon->ses->server->ops->set_acl) { in cifs_xattr_set()
207 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set()
317 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get()
334 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get()
355 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get()
426 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr()
[all …]
H A Dsmb2inode.c184 struct cifs_ses *ses = tcon->ses; in smb2_compound_op() local
700 ses->Suid, rc); in smb2_compound_op()
703 ses->Suid); in smb2_compound_op()
728 ses->Suid, rc); in smb2_compound_op()
731 ses->Suid); in smb2_compound_op()
783 ses->Suid, rc); in smb2_compound_op()
786 ses->Suid); in smb2_compound_op()
792 ses->Suid, rc); in smb2_compound_op()
795 ses->Suid); in smb2_compound_op()
814 ses->Suid); in smb2_compound_op()
[all …]
H A Dcifsglob.h112 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) argument
369 struct cifs_ses *ses,
1157 ((ses)->chans_need_reconnect == CIFS_ALL_CHANNELS_SET(ses))
1159 ((ses)->chans_need_reconnect = CIFS_ALL_CHANNELS_SET(ses))
1188 cap_unix(struct cifs_ses *ses) in cap_unix() argument
1190 return ses->server->vals->cap_unix & ses->capabilities; in cap_unix()
1807 struct cifs_ses *ses; member
2179 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs()
2202 if (WARN_ON_ONCE(!ses || !ses->server)) in ntlmssp_workstation_name_size()
2342 spin_lock(&ses->ses_lock); in cifs_ses_exiting()
[all …]
H A Dmisc.c286 if (treeCon->ses) { in header_assemble()
294 if (treeCon->ses->server) in header_assemble()
301 if ((treeCon->ses) && (treeCon->ses->server)) in header_assemble()
428 struct cifs_ses *ses; in is_valid_oplock_break() local
498 if (cifs_ses_exiting(ses)) in is_valid_oplock_break()
1117 if ((t1->ses == t2->ses || in tcon_super_cb()
1118 t1->ses->dfs_root_ses == t2->ses->dfs_root_ses) && in tcon_super_cb()
1119 t1->ses->server == t2->ses->server && in tcon_super_cb()
1234 struct cifs_ses *ses = tcon->ses; in cifs_inval_name_dfs_link_error() local
1284 ses = CIFS_DFS_ROOT_SES(ses); in cifs_inval_name_dfs_link_error()
[all …]
H A Dsmb2misc.c157 struct cifs_ses *ses = NULL; in smb2_check_message() local
164 ses = iter; in smb2_check_message()
169 if (!ses) { in smb2_check_message()
613 struct cifs_ses *ses; in smb2_is_valid_lease_break() local
625 if (cifs_ses_exiting(ses)) in smb2_is_valid_lease_break()
676 struct cifs_ses *ses; in smb2_is_valid_oplock_break() local
702 if (cifs_ses_exiting(ses)) in smb2_is_valid_oplock_break()
819 if (tcon->ses) { in smb2_handle_cancelled_close()
820 server = tcon->ses->server; in smb2_handle_cancelled_close()
923 rc = crypto_shash_update(sha512, ses->preauth_sha_hash, in smb311_update_preauth_hash()
[all …]
H A Dsmb1ops.c426 struct cifs_ses *ses, in cifs_negotiate() argument
430 rc = CIFSSMBNegotiate(xid, ses, server); in cifs_negotiate()
565 if (tcon->ses->capabilities & CAP_NT_SMBS) in cifs_query_path_info()
582 if (!(tcon->ses->capabilities & tcon->ses->server->vals->cap_nt_find)) in cifs_query_path_info()
590 if (!(tcon->ses->capabilities & tcon->ses->server->vals->cap_nt_find)) { in cifs_query_path_info()
592 int offset = tcon->ses->server->timeAdj; in cifs_query_path_info()
726 if (!(tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_query_file_info()
1115 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_queryfs()
1179 if (!cap_unix(tcon->ses)) in cifs_query_symlink()
1284 struct cifs_ses *ses; in cifs_is_network_name_deleted() local
[all …]
H A Dnamespace.c200 struct cifs_ses *ses; in cifs_do_automount() local
206 ses = cifs_sb_master_tcon(mntpt_sb)->ses; in cifs_do_automount()
215 mutex_lock(&ses->session_mutex); in cifs_do_automount()
216 rc = smb3_sync_session_ctx_passwords(mntpt_sb, ses); in cifs_do_automount()
217 mutex_unlock(&ses->session_mutex); in cifs_do_automount()
H A Dntlmssp.h145 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, struct cifs_ses *ses);
147 struct cifs_ses *ses,
151 struct cifs_ses *ses,
155 struct cifs_ses *ses,
H A Dsmb2ops.c760 ses->iface_count++; in parse_server_interfaces()
795 ses->iface_count--; in parse_server_interfaces()
809 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces() local
1157 struct cifs_ses *ses = tcon->ses; in smb2_set_ea() local
1554 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info() local
2539 struct cifs_ses *ses; in smb2_is_network_name_deleted() local
2616 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command() local
2671 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound() local
2952 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2968 ses); in smb2_get_dfs_refer()
[all …]
/linux-6.15/fs/nfsd/
H A Dnfs4callback.c411 spin_lock(&ses->se_lock); in highest_slotid()
416 spin_unlock(&ses->se_lock); in highest_slotid()
461 spin_lock(&ses->se_lock); in update_cb_slot_table()
474 ses->se_cb_seq_nr[i] = 1; in update_cb_slot_table()
477 spin_unlock(&ses->se_lock); in update_cb_slot_table()
1147 if (!conn->cb_xprt || !ses) in setup_callback_client()
1149 clp->cl_cb_session = ses; in setup_callback_client()
1257 spin_lock(&ses->se_lock); in grab_slot()
1265 spin_unlock(&ses->se_lock); in grab_slot()
1299 spin_lock(&ses->se_lock); in nfsd41_cb_release_slot()
[all …]

123