aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
AgeCommit message (Expand)AuthorFilesLines
2023-05-24smb: move client and server files to common directory fs/smbSteve French1-4118/+0
2023-05-09smb3: fix problem remounting a share after shutdownSteve French1-0/+7
2023-05-04cifs: fix sharing of DFS connectionsPaulo Alcantara1-56/+58
2023-05-03cifs: avoid potential races when handling multiple dfs tconsPaulo Alcantara1-1/+6
2023-05-03cifs: protect access of TCP_Server_Info::{origin,leaf}_fullpathPaulo Alcantara1-4/+6
2023-05-02cifs: fix potential use-after-free bugs in TCP_Server_Info::hostnamePaulo Alcantara1-3/+7
2023-04-28cifs: missing lock when updating session statusSteve French1-2/+6
2023-03-24smb3: fix unusable share after force unmount failureSteve French1-0/+1
2023-03-24cifs: avoid race conditions with parallel reconnectsShyam Prasad N1-12/+36
2023-03-22cifs: lock chan_lock outside match_sessionShyam Prasad N1-6/+7
2023-03-17cifs: check only tcon status on tcon related functionsShyam Prasad N1-3/+7
2023-03-14cifs: fix use-after-free bug in refresh_cache_worker()Paulo Alcantara1-6/+3
2023-03-14cifs: set DFS root session in cifs_get_smb_ses()Paulo Alcantara1-0/+1
2023-03-01cifs: reuse cifs_match_ipaddr for comparison of dstaddr tooShyam Prasad N1-26/+2
2023-03-01cifs: match even the scope id for ipv6 addressesShyam Prasad N1-1/+2
2023-02-22Merge tag '6.3-rc-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6Linus Torvalds1-113/+66
2023-02-21cifs: update ip_addr for ses only for primary chan setupShyam Prasad N1-7/+11
2023-02-20cifs: Add a function to read into an iter from a socketDavid Howells1-0/+14
2023-02-20cifs: get rid of dns resolve workerPaulo Alcantara1-47/+6
2023-02-20cifs: fix mount on old smb serversPaulo Alcantara1-59/+35
2023-02-03cifs: use bvec_set_page to initialize bvecsChristoph Hellwig1-2/+3
2023-01-10cifs: do not query ifaces on smb1 mountsPaulo Alcantara1-3/+6
2022-12-21Merge tag '6.2-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cif...Linus Torvalds1-755/+144
2022-12-19Treewide: Stop corrupting socket's task_fragBenjamin Coddington1-0/+1
2022-12-19cifs: set correct status of tcon ipc when reconnectingPaulo Alcantara1-1/+3
2022-12-19cifs: fix source pathname comparison of dfs supersPaulo Alcantara1-1/+15
2022-12-19cifs: fix confusing debug messagePaulo Alcantara1-1/+3
2022-12-19cifs: don't block in dfs_cache_noreq_update_tgthint()Paulo Alcantara1-262/+2
2022-12-19cifs: fix refresh of cached referralsPaulo Alcantara1-2/+3
2022-12-19cifs: share dfs connections and supersPaulo Alcantara1-353/+64
2022-12-19cifs: split out ses and tcon retrieval from mount_get_conns()Paulo Alcantara1-39/+62
2022-12-19cifs: set resolved ip in sockaddrPaulo Alcantara1-16/+12
2022-12-19cifs: get rid of mount options string parsingPaulo Alcantara1-94/+6
2022-12-19cifs: reduce roundtrips on create/qinfo requestsPaulo Alcantara1-16/+0
2022-12-16cifs: set correct ipc status after initial tree connectPaulo Alcantara1-2/+5
2022-12-15cifs: set correct tcon status after initial tree connectPaulo Alcantara1-0/+1
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-3/+3
2022-11-11cifs: Fix connections leak when tlink setup failedZhang Xiaoxu1-3/+11
2022-10-27cifs: fix use-after-free caused by invalid pointer `hostname`Zeng Heng1-0/+1
2022-10-13cifs: use ALIGN() and round_up() macrosEnzo Matsumiya1-2/+9
2022-10-13cifs: fix regression in very old smb1 mountsRonnie Sahlberg1-6/+5
2022-10-07cifs: replace kfree() with kfree_sensitive() for sensitive dataEnzo Matsumiya1-3/+3
2022-10-05smb3: do not log confusing message when server returns no network interfacesSteve French1-1/+1
2022-10-05smb3: add dynamic trace points for tree disconnectSteve French1-6/+7
2022-09-14cifs: add missing spinlock around tcon refcountPaulo Alcantara1-0/+3
2022-09-13cifs: always initialize struct msghdr smb_msg completelyStefan Metzmacher1-8/+3
2022-08-24cifs: Add helper function to check smb1+ serverZhang Xiaoxu1-5/+5
2022-08-24cifs: Use help macro to get the mid header sizeZhang Xiaoxu1-6/+3
2022-08-24cifs: Use help macro to get the header preamble sizeZhang Xiaoxu1-10/+10
2022-08-19cifs: move from strlcpy with unused retval to strscpyWolfram Sang1-1/+1
2022-08-11smb3: allow deferred close timeout to be configurableSteve French1-0/+2
2022-08-05cifs: remove useless DeleteMidQEntry()Enzo Matsumiya1-4/+4
2022-08-05cifs: when insecure legacy is disabled shrink amount of SMB1 codeSteve French1-0/+53
2022-08-01cifs: fix wrong unlock before return from cifs_tree_connect()Yang Yingliang1-1/+1
2022-08-01cifs: avoid use of global locks for high contention dataShyam Prasad N1-95/+121
2022-08-01cifs: list_for_each() -> list_for_each_entry()Enzo Matsumiya1-4/+1
2022-08-01smb2: small refactor in smb2_check_message()Enzo Matsumiya1-7/+6
2022-08-01cifs: remove some camelCase and also some static build warningsSteve French1-1/+1
2022-08-01cifs: remove unnecessary type castingsYu Zhe1-1/+1
2022-07-12cifs: remove unnecessary locking of chan_lock while freeing sessionShyam Prasad N1-2/+0
2022-06-24cifs: update cifs_ses::ip_addr after failoverPaulo Alcantara1-1/+7
2022-06-24cifs: avoid deadlocks while updating ifaceShyam Prasad N1-3/+12
2022-06-22cifs: periodically query network interfaces from serverShyam Prasad N1-0/+28
2022-06-22cifs: during reconnect, update interface if necessaryShyam Prasad N1-0/+4
2022-06-22cifs: change iface_list from array to sorted linked listShyam Prasad N1-2/+4
2022-06-10cifs: populate empty hostnames for extra channelsShyam Prasad N1-0/+4
2022-06-01cifs: fix potential deadlock in direct reclaimVincent Whitchurch1-13/+13
2022-05-31cifs: remove repeated debug message on cifs_put_smb_ses()Enzo Matsumiya1-1/+0
2022-05-25cifs: fix ntlmssp on old serversPaulo Alcantara1-18/+4
2022-05-24cifs: avoid parallel session setups on same channelShyam Prasad N1-7/+20
2022-05-24cifs: use new enum for ses_statusShyam Prasad N1-17/+17
2022-05-24cifs: do not use tcpStatus after negotiate completesShyam Prasad N1-12/+11
2022-05-23smb3: add mount parm nosparseSteve French1-0/+1
2022-05-23cifs: fix minor compile warningSteve French1-0/+2
2022-05-20cifs: print TIDs as hexEnzo Matsumiya1-1/+1
2022-05-20cifs: return ENOENT for DFS lookup_cache_entry()Enzo Matsumiya1-2/+4
2022-05-20cifs: don't call cifs_dfs_query_info_nonascii_quirk() if nodfs was setEnzo Matsumiya1-4/+12
2022-04-20cifs: use correct lock type in cifs_reconnect()Paulo Alcantara1-1/+8
2022-04-20cifs: fix NULL ptr dereference in refresh_mounts()Paulo Alcantara1-0/+2
2022-04-08cifs: Split the smb3_add_credits tracepointDavid Howells1-1/+1
2022-04-04cifs: force new session setup and tcon for dfsPaulo Alcantara1-5/+8
2022-04-04cifs: fix potential race with cifsd threadPaulo Alcantara1-1/+1
2022-03-28smb3: cleanup and clarify status of tree connectionsSteve French1-16/+16
2022-03-21cifs: do not skip link targets when an I/O failsPaulo Alcantara1-3/+11
2022-03-18cifs: use a different reconnect helper for non-cifsd threadsShyam Prasad N1-1/+41
2022-03-16smb3: fix incorrect session setup check for multiuser mountsSteve French1-1/+2
2022-02-08cifs: mark sessions for reconnection in helper functionShyam Prasad N1-5/+14
2022-02-08cifs: call cifs_reconnect when a connection is markedShyam Prasad N1-0/+1
2022-02-06[smb3] improve error message when mount options conflict with posixSteve French1-1/+10
2022-02-03cifs: fix workstation_name for multiuser mountsRyan Bair1-0/+13
2022-01-29cifs: unlock chan_lock before calling cifs_put_tcp_sessionShyam Prasad N1-6/+2
2022-01-28Fix a warning about a malformed kernel doc comment in cifsDavid Howells1-1/+1
2022-01-19cifs: Support fscache indexing rewriteDavid Howells1-13/+2
2022-01-19cifs: cifs_ses_mark_for_reconnect should also update reconnect bitsShyam Prasad N1-3/+6
2022-01-19cifs: update tcpStatus during negotiate and sess setupShyam Prasad N1-3/+2
2022-01-19cifs: make status checks in version independent callersShyam Prasad N1-6/+23
2022-01-19cifs: remove repeated state change in dfs tree connectShyam Prasad N1-10/+0
2022-01-19cifs: fix the cifs_reconnect path for DFSShyam Prasad N1-0/+3
2022-01-19cifs: protect all accesses to chan_* with chan_lockShyam Prasad N1-1/+3
2022-01-19cifs: fix the connection state transitions with multichannelShyam Prasad N1-14/+26
2022-01-19cifs: check reconnects for channels of active tcons tooShyam Prasad N1-3/+31
2022-01-17cifs: quirk for STATUS_OBJECT_NAME_INVALID returned for non-ASCII dfs refsEugene Korenevsky1-0/+5
2022-01-17Merge tag '5.17-rc-part1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6Linus Torvalds1-67/+163
2022-01-17Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2022-01-07cifs: avoid race during socket reconnect between send and recvShyam Prasad N1-11/+3
2022-01-07cifs: maintain a state machine for tcp/smb/tcon sessionsShyam Prasad N1-12/+49
2022-01-07cifs: take cifs_tcp_ses_lock for status checksShyam Prasad N1-10/+26
2022-01-02cifs: reconnect only the connection and not smb session where possibleShyam Prasad N1-30/+44
2022-01-02cifs: use the chans_need_reconnect bitmap for reconnect statusShyam Prasad N1-10/+26
2022-01-02cifs: track individual channel status using chans_need_reconnectShyam Prasad N1-6/+27
2021-12-17cifs: ignore resource_id while getting fscache super cookieShyam Prasad N1-0/+7
2021-12-13exit: Rename module_put_and_exit to module_put_and_kthread_exitEric W. Biederman1-1/+1
2021-12-03cifs: add server conn_id to fscache client cookieShyam Prasad N1-0/+4
2021-12-03cifs: wait for tcon resource_id before getting fscache superShyam Prasad N1-6/+0
2021-12-03cifs: fix missed refcounting of ipc tconPaulo Alcantara1-0/+1
2021-11-23cifs: nosharesock should be set on new serverShyam Prasad N1-3/+4
2021-11-16cifs: introduce cifs_ses_mark_for_reconnect() helperPaulo Alcantara1-13/+1
2021-11-16cifs: protect srv_count with cifs_tcp_ses_lockSteve French1-0/+2
2021-11-12cifs: do not duplicate fscache cookie for secondary channelsShyam Prasad N1-2/+7
2021-11-12cifs: connect individual channel servers to primary channel serverShyam Prasad N1-4/+20
2021-11-12cifs: protect session channel fields with chan_lockShyam Prasad N1-3/+22
2021-11-12cifs: do not negotiate session if session already existsShyam Prasad N1-8/+10
2021-11-12smb3: do not setup the fscache_super_cookie until fsinfo initializedSteve French1-2/+6
2021-11-12cifs: fix potential use-after-free bugsPaulo Alcantara1-22/+19
2021-11-12cifs: release lock earlier in dequeue_mid error caseSteve French1-3/+4
2021-11-10smb3: remove trivial dfs compile warningSteve French1-2/+2
2021-11-10cifs: support nested dfs links over reconnectPaulo Alcantara1-560/+578
2021-11-09cifs: set a minimum of 120s for next dns resolutionPaulo Alcantara1-1/+1
2021-11-09cifs: split out dfs code from cifs_reconnect()Paulo Alcantara1-133/+162
2021-11-09cifs: convert list_for_each to entry variantPaulo Alcantara1-19/+13
2021-11-09cifs: introduce new helper for cifs_reconnect()Paulo Alcantara1-64/+75
2021-11-08cifs: send workstation name during ntlmssp session setupShyam Prasad N1-0/+6
2021-11-07cifs: nosharesock should not share socket with future sessionsShyam Prasad N1-1/+7
2021-11-05smb3: add dynamic trace points for socket connectionSteve French1-1/+2
2021-11-05cifs: Create a new shared file holding smb2 pdu definitionsRonnie Sahlberg1-2/+2
2021-11-02cifs: To match file servers, make sure the server hostname matchesShyam Prasad N1-8/+11
2021-09-23cifs: fix incorrect check for null pointer in header_assembleSteve French1-2/+3
2021-09-13cifs: fix incorrect kernel doc commentsSteve French1-2/+10
2021-09-13cifs: remove pathname for file from SPDX headerSteve French1-1/+0
2021-08-25cifs: remove support for NTLM and weaker authentication algorithmsRonnie Sahlberg1-32/+0
2021-07-22cifs: support share failover when remountingPaulo Alcantara1-2/+2
2021-07-16cifs: do not share tcp sessions of dfs connectionsPaulo Alcantara1-3/+35
2021-07-15cifs: added WARN_ON for all the count decrementsShyam Prasad N1-0/+9
2021-07-15cifs: fix missing null session check in mountSteve French1-1/+1
2021-07-15cifs: handle reconnect of tcon when there is no cached dfs referralPaulo Alcantara1-4/+2
2021-07-14cifs: use the expiry output of dns_query to schedule next resolutionShyam Prasad N1-3/+52
2021-07-02cifs: make locking consistent around the server session statusSteve French1-0/+5
2021-06-24cifs: fix missing spinlock around update to ses->statusSteve French1-1/+4
2021-06-23cifs: missing null pointer check in cifs_mountSteve French1-1/+1
2021-06-20cifs: use SPDX-Licence-IdentifierSteve French1-13/+1
2021-06-20cifs: do not share tcp servers with dfs mountsPaulo Alcantara1-4/+3
2021-06-20cifs: handle different charsets in dfs cachePaulo Alcantara1-23/+40
2021-06-20cifs: keep referral server sessions alivePaulo Alcantara1-36/+20
2021-06-20cifs: do not send tree disconnect to ipc sharesPaulo Alcantara1-12/+8
2021-05-04cifs: fix regression when mounting shares with prefix pathsPaulo Alcantara1-6/+18
2021-05-03cifs: use echo_interval even when connection not ready.Shyam Prasad N1-11/+1
2021-05-03cifs: detect dead connections only when echoes are enabled.Shyam Prasad N1-0/+1
2021-04-25cifs: don't cargo-cult strndup()Al Viro1-6/+3
2021-04-25cifs: simplify SWN code with dummy funcs instead of ifdefsAurelien Aptel1-21/+4
2021-04-07cifs: On cifs_reconnect, resolve the hostname again.Shyam Prasad N1-1/+16
2021-03-08cifs: print MIDs in decimal notationPaulo Alcantara1-2/+2
2021-03-06cifs: fix credit accounting for extra channelAurelien Aptel1-5/+5
2021-02-25cifs: use discard iterator to discard unneeded network data more efficientlyDavid Howells1-0/+17
2021-02-25cifs: introduce helper for finding referral server to improve DFS target reso...Paulo Alcantara1-1/+34
2021-02-25cifs: check all path components in resolved dfs targetPaulo Alcantara1-60/+33
2021-02-25cifs: fix DFS failoverPaulo Alcantara1-64/+59
2021-02-25cifs: fix nodfs mount optionPaulo Alcantara1-4/+4
2021-02-25cifs: Add new parameter "acregmax" for distinct file and directory metadata t...Steve French1-1/+1
2021-02-25cifs: Add new mount parameter "acdirmax" to allow caching directory metadataSteve French1-0/+2
2021-02-23TCON Reconnect during STATUS_NETWORK_NAME_DELETEDRohith Surabattula1-0/+4
2021-02-22cifs: change confusing field serverName (to ip_addr)Steve French1-2/+2
2021-02-16cifs: Identify a connection by a conn_id.Shyam Prasad N1-4/+7
2021-02-16cifs: fix trivial typoSteve French1-1/+1
2021-02-11cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.Shyam Prasad N1-0/+1
2021-02-09cifs: fix dfs-linksRonnie Sahlberg1-0/+8
2021-01-28cifs: fix dfs domain referralsRonnie Sahlberg1-6/+26
2021-01-17fs/cifs: Simplify bool comparison.Jiapeng Zhong1-1/+1
2021-01-17fs/cifs: Assign boolean values to a bool variableJiapeng Zhong1-1/+1
2021-01-13cifs: connect: style: Simplify bool comparisonYANG LI1-1/+1
2020-12-18cifs: Avoid error pointer dereferenceSamuel Cabrero1-0/+1
2020-12-15cifs: Tracepoints and logs for tracing credit changes.Shyam Prasad N1-0/+8
2020-12-15cifs: fix rsize/wsize to be negotiated valuesSteve French1-2/+6
2020-12-14cifs: move update of flags into a separate functionRonnie Sahlberg1-71/+3
2020-12-14cifs: remove ctx argument from cifs_setup_cifs_sbRonnie Sahlberg1-3/+4
2020-12-14cifs: don't create a temp nls in cifs_setup_ipcRonnie Sahlberg1-6/+1
2020-12-14cifs: simplify handling of cifs_sb/ctx->local_nlsRonnie Sahlberg1-15/+14
2020-12-14cifs: move [brw]size from cifs_sb to cifs_sb->ctxRonnie Sahlberg1-12/+9
2020-12-14cifs: move cifs_cleanup_volume_info[_content] to fs_context.cRonnie Sahlberg1-43/+4
2020-12-14cifs: Handle witness client move notificationSamuel Cabrero1-6/+20
2020-12-14cifs: remove actimeo from cifs_sbRonnie Sahlberg1-2/+1
2020-12-14cifs: remove [gu]id/backup[gu]id/file_mode/dir_mode from cifs_sbRonnie Sahlberg1-10/+5
2020-12-14cifs: Simplify reconnect code when dfs upcall is enabledSamuel Cabrero1-13/+8
2020-12-14cifs: Send witness register messages to userspace daemon in echo taskSamuel Cabrero1-0/+5
2020-12-14cifs: Send witness register and unregister commands to userspace daemonSamuel Cabrero1-2/+24
2020-12-14cifs: add witness mount option and data structsSamuel Cabrero1-0/+25
2020-12-14cifs: minor kernel style fixes for commentsSteve French1-10/+15
2020-12-14cifs: Make extract_hostname function publicSamuel Cabrero1-34/+0
2020-12-13cifs: get rid of cifs_sb->mountdataRonnie Sahlberg1-9/+10
2020-12-13cifs: add an smb3_fs_context to cifs_sbRonnie Sahlberg1-3/+11
2020-12-13cifs: remove the devname argument to cifs_compose_mount_optionsRonnie Sahlberg1-8/+3