aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/sess.c
AgeCommit message (Expand)AuthorFilesLines
2023-05-24smb: move client and server files to common directory fs/smbSteve French1-1857/+0
2023-05-02cifs: fix potential use-after-free bugs in TCP_Server_Info::hostnamePaulo Alcantara1-3/+4
2023-02-20cifs: get rid of dns resolve workerPaulo Alcantara1-1/+0
2023-01-10cifs: fix potential memory leaks in session setupPaulo Alcantara1-0/+2
2023-01-04cifs: refcount only the selected iface during interface updateShyam Prasad N1-1/+2
2022-11-19cifs: Use after free in debug codeDan Carpenter1-2/+2
2022-10-18cifs: Fix xid leak in cifs_ses_add_channel()Zhang Xiaoxu1-0/+1
2022-10-15cifs: fix double-fault crash during ntlmsspPaulo Alcantara1-7/+9
2022-10-13cifs: use ALIGN() and round_up() macrosEnzo Matsumiya1-12/+6
2022-10-07cifs: replace kfree() with kfree_sensitive() for sensitive dataEnzo Matsumiya1-9/+15
2022-08-05cifs: when insecure legacy is disabled shrink amount of SMB1 codeSteve French1-1/+4
2022-07-12cifs: fix race condition with delayed threadsShyam Prasad N1-2/+9
2022-06-24cifs: avoid deadlocks while updating ifaceShyam Prasad N1-12/+21
2022-06-22cifs: during reconnect, update interface if necessaryShyam Prasad N1-0/+79
2022-06-22cifs: change iface_list from array to sorted linked listShyam Prasad N1-38/+40
2022-06-18cifs: when a channel is not found for server, log its connection idShyam Prasad N1-0/+3
2022-06-10cifs: populate empty hostnames for extra channelsShyam Prasad N1-1/+4
2022-06-01cifs: fix potential deadlock in direct reclaimVincent Whitchurch1-3/+3
2022-05-25cifs: fix ntlmssp on old serversPaulo Alcantara1-3/+3
2022-05-24cifs: avoid parallel session setups on same channelShyam Prasad N1-0/+27
2022-02-16cifs: fix confusing unneeded warning message on smb2.1 and earlierSteve French1-5/+6
2022-02-03cifs: fix workstation_name for multiuser mountsRyan Bair1-1/+5
2022-01-19smb3: send NTLMSSP version informationSteve French1-0/+70
2022-01-19cifs: cifs_ses_mark_for_reconnect should also update reconnect bitsShyam Prasad N1-15/+0
2022-01-19cifs: make status checks in version independent callersShyam Prasad N1-9/+0
2022-01-19cifs: protect all accesses to chan_* with chan_lockShyam Prasad N1-3/+7
2022-01-19cifs: fix the connection state transitions with multichannelShyam Prasad N1-1/+0
2022-01-17cifs: clean up an inconsistent indentingYang Li1-1/+1
2022-01-17cifs: free ntlmsspblob allocated in negotiateShyam Prasad N1-5/+8
2022-01-07cifs: maintain a state machine for tcp/smb/tcon sessionsShyam Prasad N1-3/+5
2022-01-07cifs: take cifs_tcp_ses_lock for status checksShyam Prasad N1-4/+4
2022-01-02cifs: add WARN_ON for when chan_count goes below minimumShyam Prasad N1-0/+5
2022-01-02cifs: use the chans_need_reconnect bitmap for reconnect statusShyam Prasad N1-64/+59
2022-01-02cifs: track individual channel status using chans_need_reconnectShyam Prasad N1-2/+65
2021-12-08cifs: fix ntlmssp auth when there is no key exchangePaulo Alcantara1-18/+36
2021-11-23cifs: populate server_hostname for extra channelsShyam Prasad N1-0/+1
2021-11-16cifs: introduce cifs_ses_mark_for_reconnect() helperPaulo Alcantara1-0/+13
2021-11-16cifs: move debug print out of spinlockSteve French1-1/+1
2021-11-12cifs: connect individual channel servers to primary channel serverShyam Prasad N1-5/+1
2021-11-12cifs: protect session channel fields with chan_lockShyam Prasad N1-12/+38
2021-11-08cifs: send workstation name during ntlmssp session setupShyam Prasad N1-70/+118
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-254/+1
2021-08-25cifs: fix wrong release in sess_alloc_buffer() failed pathDing Hui1-1/+1
2021-06-20cifs: use SPDX-Licence-IdentifierSteve French1-13/+1
2021-06-20cifs: fix ipv6 formating in cifs_ses_add_channelAurelien Aptel1-1/+1
2021-05-08smb3: do not attempt multichannel to server which does not support itSteve French1-0/+6
2021-03-06cifs: fix credit accounting for extra channelAurelien Aptel1-0/+1
2021-02-22cifs: change confusing field serverName (to ip_addr)Steve French1-1/+1
2020-12-14cifs: simplify handling of cifs_sb/ctx->local_nlsRonnie Sahlberg1-12/+11
2020-12-13cifs: switch to new mount apiRonnie Sahlberg1-1/+1
2020-12-13cifs: rename smb_vol as smb3_fs_context and move it to fs_context.hRonnie Sahlberg1-25/+26
2020-12-13cifs: Fix fall-through warnings for ClangGustavo A. R. Silva1-0/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-3/+3
2020-08-02cifs: convert to use be32_add_cpu()Qinglang Miao1-2/+1
2020-08-02cifs: Remove the superfluous breakLiao Pingfang1-1/+0
2020-06-04cifs: multichannel: try to rebind when reconnecting a channelAurelien Aptel1-0/+16
2020-06-04cifs: multichannel: use pointer for binding channelAurelien Aptel1-1/+2
2020-06-02cifs: fix minor typos in comments and log messagesSteve French1-4/+4
2020-06-01cifs: Standardize logging outputJoe Perches1-14/+14
2020-02-06cifs: make multichannel warning more visibleAurelien Aptel1-1/+1
2019-12-04cifs: fix possible uninitialized access and race on iface_listAurelien Aptel1-3/+26
2019-12-04cifs: Fix lookup of SMB connections on multichannelPaulo Alcantara (SUSE)1-0/+3
2019-11-25cifs: try harder to open new channelsAurelien Aptel1-10/+22
2019-11-25cifs: try opening channels after mountingAurelien Aptel1-0/+213
2019-11-25cifs: switch servers depending on binding stateAurelien Aptel1-2/+3
2019-09-23fs/cifs/sess.c: Remove set but not used variable 'capabilities'zhengbin1-2/+1
2019-08-27cifs: replace various strncpy with strscpy and similarRonnie Sahlberg1-9/+17
2018-12-23cifs: remove set but not used variable 'smb_buf'YueHaibing1-2/+0
2018-12-23cifs: suppress some implicit-fallthrough warningsGustavo A. R. Silva1-1/+1
2018-08-23cifs: check kmalloc before useNicholas Mc Guire1-0/+6
2017-03-02smb2: Enforce sec= mount optionSachin Prabhu1-2/+2
2017-02-01CIFS: Enable encryption during session setup phasePavel Shilovsky1-12/+10
2017-02-01CIFS: Make SendReceive2() takes resp iovPavel Shilovsky1-1/+4
2016-06-23cifs: check hash calculating succeededLuis de Bethencourt1-0/+2
2016-06-23cifs: dynamic allocation of ntlmssp blobJerome Marchand1-34/+42
2016-06-23cifs: use CIFS_MAX_DOMAINNAME_LEN when converting the domain nameJerome Marchand1-1/+1
2016-05-17fs/cifs: correctly to anonymous authentication for the NTLM(v2) authenticationStefan Metzmacher1-14/+18
2016-05-17fs/cifs: correctly to anonymous authentication for the NTLM(v1) authenticationStefan Metzmacher1-18/+23
2016-05-17fs/cifs: correctly to anonymous authentication for the LANMAN authenticationStefan Metzmacher1-12/+16
2016-05-17fs/cifs: correctly to anonymous authentication via NTLMSSPStefan Metzmacher1-12/+20
2015-10-21KEYS: Merge the type-specific data with the payload dataDavid Howells1-1/+1
2014-12-10Merge branch 'akpm' (patchbomb from Andrew)Linus Torvalds1-1/+1
2014-12-10fs/cifs: remove obsolete __constantFabian Frederick1-1/+1
2014-12-07Set UID in sess_auth_rawntlmssp_authenticate tooSachin Prabhu1-0/+5
2014-09-16cifs: remove dead codeArnd Bergmann1-17/+0
2014-08-21cifs: fix a possible null pointer deref in decode_ascii_ssetupNamjae Jeon1-3/+4
2014-08-02Remove sparse build warningSteve French1-1/+1
2014-07-31cifs: Separate rawntlmssp auth from CIFS_SessSetup()Sachin Prabhu1-227/+263
2014-07-31cifs: Split Kerberos authentication off CIFS_SessSetup()Sachin Prabhu1-62/+153
2014-07-31cifs: Split ntlm and ntlmv2 authentication methods off CIFS_SessSetup()Sachin Prabhu1-84/+232
2014-07-31cifs: Split lanman auth from CIFS_SessSetup()Sachin Prabhu1-45/+258
2013-10-07cifs: Allow LANMAN auth method for servers supporting unencapsulated authenti...Sachin Prabhu1-2/+2
2013-09-18cifs: stop trying to use virtual circuitsJeff Layton1-83/+1
2013-09-08cifs: Add a variable specific to NTLMSSP for key exchange.Shirish Pargaonkar1-2/+6
2013-09-08cifs: Process post session setup code in respective dialect functions.Shirish Pargaonkar1-3/+37
2013-09-08cifs: Move string length definitions to uapiScott Lovenberg1-5/+5
2013-07-30cifs: extend the buffer length enought for sprintf() usingChen Gang1-3/+3
2013-06-24move sectype to the cifs_ses instead of TCP_Server_InfoJeff Layton1-1/+56
2013-06-24cifs: track the enablement of signing in the TCP_Server_InfoJeff Layton1-6/+3
2013-06-24cifs: remove the cifs_ses->flags fieldJeff Layton1-6/+1
2013-06-24cifs: throw a warning if negotiate or sess_setup ops are passed NULL server o...Jeff Layton1-1/+3
2013-06-24cifs: make decode_ascii_ssetup void returnJeff Layton1-11/+7
2013-05-04[CIFS] cifs: Rename cERROR and cFYI to cifs_dbgJoe Perches1-32/+37
2013-05-04fs: cifs: use kmemdup instead of kmalloc + memcpySilviu-Mihai Popescu1-4/+4
2012-09-26CIFS: Fix possible freed pointer dereference in CIFS_SessSetupPavel Shilovsky1-1/+2
2012-07-24CIFS: Add session setup/logoff capability for SMB2Pavel Shilovsky1-3/+3
2012-07-24CIFS: Move protocol specific session setup/logoff code to ops structPavel Shilovsky1-1/+1
2012-07-24CIFS: Move protocol specific negotiate code to ops structPavel Shilovsky1-1/+1
2012-07-23cifs: after upcalling for krb5 creds, invalidate key rather than revoking itJeff Layton1-1/+1
2012-02-02cifs: Fix oops in session setup code for null user mountsShirish Pargaonkar1-4/+3
2012-01-31cifs: check offset in decode_ntlmssp_challenge()Dan Carpenter1-0/+4
2012-01-18CIFS: Rename *UCS* functions to *UTF16*Steve French1-17/+17
2011-10-29cifs: Assume passwords are encoded according to iocharset (try #2)Shirish Pargaonkar1-1/+1
2011-10-12cifs: untangle server->maxBuf and CIFSMaxBufSizeJeff Layton1-1/+3
2011-08-03Revert "cifs: advertise the right receive buffer size to the server"Steve French1-2/+1
2011-07-31cifs: advertise the right receive buffer size to the serverJeff Layton1-1/+2
2011-07-12cifs: Fix signing failure when server mandates signing for NTLMSSPShirish Pargaonkar1-5/+5
2011-05-27[CIFS] Rename three structures to avoid camel caseSteve French1-21/+21
2011-05-19cifs: keep BCC in little-endian formatJeff Layton1-1/+1
2011-05-19consistently use smb_buf_length as be32 for cifs (try 3)Steve French1-2/+3
2011-05-19[CIFS] Use ecb des kernel crypto APIs instead ofSteve French1-1/+1
2011-04-29cifs: check for bytes_remaining going to zero in CIFS_SessSetupJeff Layton1-1/+3
2011-04-29cifs: change bleft in decode_unicode_ssetup back to signed typeJeff Layton1-14/+1
2011-04-12various endian fixes to cifsSteve French1-2/+2
2011-04-12Allow user names longer than 32 bytesSteve French1-10/+9
2011-02-21cifs: Fix regression in LANMAN (LM) auth codeShirish Pargaonkar1-4/+4
2011-01-20cifs: use get/put_unaligned functions to access ByteCountJeff Layton1-7/+6
2011-01-20cifs: remove code for setting timeouts on requestsJeff Layton1-1/+1
2011-01-09cifs: move "ntlmssp" and "local_leases" options out of experimental codeJeff Layton1-60/+54
2011-01-06cifs: Support NTLM2 session security during NTLMSSP authentication [try #5]Shirish Pargaonkar1-19/+14
2010-10-29cifs: Cleanup and thus reduce smb session structure and fields used during au...Shirish Pargaonkar1-11/+18
2010-10-29NTLM auth and sign - Use appropriate server challengeShirish Pargaonkar1-4/+8
2010-10-27NTLM auth and sign - minor error corrections and cleanupShirish Pargaonkar1-1/+1
2010-10-26NTLM auth and sign - Define crypto hash functions and create and send keys ne...Shirish Pargaonkar1-7/+19
2010-10-26NTLM auth and sign - Allocate session key/client response dynamicallyShirish Pargaonkar1-68/+39
2010-10-21cifs: convert cifs_tcp_ses_lock from a rwlock to a spinlockSuresh Jayaraman1-2/+2
2010-10-19Clean up two declarations of blob_lenShirish Pargaonkar1-5/+8
2010-10-14NTLM authentication and signing - Calculate auth response per smb sessionShirish Pargaonkar1-20/+8
2010-10-06ntlm authentication and signing - Correct response length for ntlmv2 authenti...Shirish Pargaonkar1-3/+6
2010-09-29cifs NTLMv2/NTLMSSP ntlmv2 within ntlmssp autentication codeShirish Pargaonkar1-38/+81
2010-09-29cifs NTLMv2/NTLMSSP Change variable name mac_key to session key to reflect th...Shirish Pargaonkar1-5/+5
2010-09-08Revert "[CIFS] Fix ntlmv2 auth with ntlmssp"Steve French1-89/+29
2010-09-08Revert "missing changes during ntlmv2/ntlmssp auth and sign"Steve French1-8/+5
2010-09-08Revert "[CIFS] Eliminate unused variable warning"Steve French1-2/+1
2010-08-26[CIFS] Eliminate unused variable warningSteve French1-1/+2
2010-08-23missing changes during ntlmv2/ntlmssp auth and signShirish Pargaonkar1-5/+8
2010-08-20[CIFS] Fix ntlmv2 auth with ntlmsspSteve French1-29/+89
2010-06-16cifs: remove bogus first_time check in NTLMv2 session setup codeJeff Layton1-9/+1
2010-05-05cifs: have decode_negTokenInit set flags in server structJeff Layton1-1/+1
2010-04-28cifs: eliminate "first_time" parm to CIFS_SessSetupJeff Layton1-7/+14
2010-04-21[CIFS] Neaten cERROR and cFYI macros, reduce text spaceJoe Perches1-29/+29
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2010-02-06[CIFS] Maximum username length check in session setup does not matchSteve French1-6/+5
2009-06-25[CIFS] cleanup asn handling for ntlmsspSteve French1-1/+1
2009-05-06[CIFS] Fix SMB uid in NTLMSSP authenticate requestSteve French1-0/+4
2009-05-04[CIFS] NTLMSSP reenabled after move from connect.c to sess.cSteve French1-3/+249
2009-05-01[CIFS] Fix endian conversion of vcnum fieldSteve French1-1/+1
2009-04-30[CIFS] rename cifs_strndup to cifs_strndup_from_ucsSteve French1-4/+4
2009-04-30cifs: fix session setup unicode string saving to use new unicode helpersJeff Layton1-58/+22
2009-04-17cifs: add cFYI messages with some of the saved strings from ssetup/tconJeff Layton1-2/+7
2009-04-17cifs: fix unicode string area word alignment in session setupJeff Layton1-21/+23
2009-02-21[CIFS] Fix multiuser mounts so server does not invalidate earlier security co...Steve French1-2/+85
2009-02-21[CIFS] Fix oops in cifs_strfromUCS_le mounting to servers which do not specif...Steve French1-2/+2
2008-12-26cifs: have calc_lanman_hash take more granular argsJeff Layton1-1/+4
2008-09-24cifs: explicitly revoke SPNEGO key after session setupJeff Layton1-1/+3
2008-08-28[CIFS] Turn off Unicode during session establishment for plaintext authentica...Steve French1-0/+2
2008-08-26[CIFS] check version in spnego upcall responseSteve French1-0/+9
2008-08-19[CIFS] distinguish between Kerberos and MSKerberos in upcallSteve French1-1/+1
2008-02-12[CIFS] clean up some hard to read ifdefsSteve French1-4/+0
2007-12-31[CIFS] fix unicode string alignment in SPNEGO setupJeff Layton1-1/+1
2007-12-31[CIFS] use krb5 session key from first SMB session after a NegProtJeff Layton1-3/+5
2007-11-16[CIFS] Have CIFS_SessSetup build correct SPNEGO SessionSetup requestSteve French1-17/+74
2007-11-13[CIFS] Fix buffer overflow if server sends corrupt response to smallSteve French1-1/+1
2007-10-18[CIFS] log better errors on failed mountsSteve French1-1/+2
2007-10-16[CIFS] Break up unicode_sessetup string functionsJeff Layton1-25/+48
2007-08-30[CIFS] formatting cleanup found by checkpatchSteve French1-17/+10
2007-08-18[CIFS] Check return code on failed allocCyrill Gorcunov1-0/+4
2007-07-17[CIFS] More whitespace/formatting fixes (noticed by checkpatch)Steve French1-1/+2
2007-07-13[CIFS] whitespace/formatting fixesSteve French1-5/+5
2007-07-09[CIFS] Fix packet signatures for NTLMv2 caseSteve French1-1/+1
2007-07-08[CIFS] more whitespace fixesSteve French1-4/+5
2007-07-07[CIFS] more whitespace cleanupSteve French1-111/+114
2007-01-22[CIFS] Fix oops when Windows server sent bad domain name null terminatorSteve French1-5/+8
2006-11-08[CIFS] Fix mount failure when domain not specifiedSteve French1-10/+13
2006-10-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6Linus Torvalds1-11/+12
2006-10-02[PATCH] namespaces: utsname: use init_utsname when appropriateSerge E. Hallyn1-3/+3
2006-09-30[CIFS] Do not send newer QFSInfo to legacy servers which can not support itSteve French1-11/+12
2006-08-15[CIFS] endian errors in lanman protocol supportSteve French1-1/+1
2006-06-28[CIFS] Fix authentication choice so we do not force NTLMv2 unless theSteve French1-1/+2
2006-06-27[CIFS] Fix alignment of unicode strings in previous patchSteve French1-7/+15
2006-06-27[CIFS] Fix allocation of buffers for new session setup routine to allowSteve French1-20/+24
2006-06-23[CIFS] Enable sec flags on mount for cifs (part one)Steve French1-5/+2
2006-06-08[CIFS] NTLMv2 support part 5Steve French1-1/+1
2006-06-05[CIFS] NTLMv2 support part 3Steve French1-3/+3
2006-06-05[CIFS] NTLMv2 support part 2Steve French1-4/+9
2006-06-04[CIFS] Fix mask so can set new cifs security flags properlySteve French1-2/+3
2006-06-04CIFS] Support for older servers which require plaintext passwords - part 2Steve French1-1/+2
2006-06-01[CIFS] Support for setting up SMB sessions to legacy lanman servers part 2Steve French1-44/+53
2006-06-01[CIFS] Missing include shows up on some architecturesSteve French1-0/+1