1. 09 9月, 2018 1 次提交
  2. 08 8月, 2018 3 次提交
  3. 29 5月, 2018 1 次提交
    • A
      IB: Revert "remove redundant INFINIBAND kconfig dependencies" · 533d1dae
      Arnd Bergmann 提交于
      Several subsystems depend on INFINIBAND_ADDR_TRANS, which in turn depends
      on INFINIBAND. However, when with CONFIG_INIFIBAND=m, this leads to a
      link error when another driver using it is built-in. The
      INFINIBAND_ADDR_TRANS dependency is insufficient here as this is
      a 'bool' symbol that does not force anything to be a module in turn.
      
      fs/cifs/smbdirect.o: In function `smbd_disconnect_rdma_work':
      smbdirect.c:(.text+0x1e4): undefined reference to `rdma_disconnect'
      net/9p/trans_rdma.o: In function `rdma_request':
      trans_rdma.c:(.text+0x7bc): undefined reference to `rdma_disconnect'
      net/9p/trans_rdma.o: In function `rdma_destroy_trans':
      trans_rdma.c:(.text+0x830): undefined reference to `ib_destroy_qp'
      trans_rdma.c:(.text+0x858): undefined reference to `ib_dealloc_pd'
      
      Fixes: 9533b292 ("IB: remove redundant INFINIBAND kconfig dependencies")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NGreg Thelen <gthelen@google.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      533d1dae
  4. 09 5月, 2018 1 次提交
  5. 27 4月, 2018 1 次提交
  6. 02 4月, 2018 2 次提交
  7. 25 1月, 2018 2 次提交
    • R
      cifs: fix build errors for SMB_DIRECT · 0933d6fa
      Randy Dunlap 提交于
      Prevent build errors when CIFS=y and INFINIBAND=m.
      
      fs/cifs/smbdirect.o: In function `smbd_qp_async_error_upcall':
      smbdirect.c:(.text+0x28c): undefined reference to `ib_event_msg'
      fs/cifs/smbdirect.o: In function `smbd_destroy_rdma_work':
      smbdirect.c:(.text+0xfde): undefined reference to `ib_drain_qp'
      smbdirect.c:(.text+0xfea): undefined reference to `rdma_destroy_qp'
      smbdirect.c:(.text+0x12a0): undefined reference to `ib_free_cq'
      smbdirect.c:(.text+0x12ac): undefined reference to `ib_free_cq'
      smbdirect.c:(.text+0x12b8): undefined reference to `ib_dealloc_pd'
      smbdirect.c:(.text+0x12c4): undefined reference to `rdma_destroy_id'
      fs/cifs/smbdirect.o: In function `_smbd_get_connection':
      smbdirect.c:(.text+0x168c): undefined reference to `rdma_create_id'
      smbdirect.c:(.text+0x1713): undefined reference to `rdma_resolve_addr'
      smbdirect.c:(.text+0x1780): undefined reference to `rdma_resolve_route'
      smbdirect.c:(.text+0x17e3): undefined reference to `rdma_destroy_id'
      smbdirect.c:(.text+0x183d): undefined reference to `rdma_destroy_id'
      smbdirect.c:(.text+0x199d): undefined reference to `ib_alloc_cq'
      smbdirect.c:(.text+0x19d9): undefined reference to `ib_alloc_cq'
      smbdirect.c:(.text+0x1a89): undefined reference to `rdma_create_qp'
      smbdirect.c:(.text+0x1b3c): undefined reference to `rdma_connect'
      smbdirect.c:(.text+0x2538): undefined reference to `rdma_destroy_qp'
      smbdirect.c:(.text+0x2549): undefined reference to `ib_free_cq'
      smbdirect.c:(.text+0x255a): undefined reference to `ib_free_cq'
      smbdirect.c:(.text+0x2563): undefined reference to `ib_dealloc_pd'
      smbdirect.c:(.text+0x256c): undefined reference to `rdma_destroy_id'
      smbdirect.c:(.text+0x25f0): undefined reference to `__ib_alloc_pd'
      smbdirect.c:(.text+0x26bb): undefined reference to `rdma_disconnect'
      fs/cifs/smbdirect.o: In function `smbd_disconnect_rdma_work':
      smbdirect.c:(.text+0x62): undefined reference to `rdma_disconnect'
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc:	Steve French <sfrench@samba.org>
      Cc:	linux-cifs@vger.kernel.org
      Cc:	samba-technical@lists.samba.org (moderated for non-subscribers)
      Signed-off-by: NSteve French <smfrench@gmail.com>
      0933d6fa
    • L
      CIFS: SMBD: Introduce kernel config option CONFIG_CIFS_SMB_DIRECT · 2b6ed880
      Long Li 提交于
      Build SMB Direct code when this option is set.
      Signed-off-by: NLong Li <longli@microsoft.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      Acked-by: Ronnie Sahlberg <lsahlber.redhat.com>
      2b6ed880
  8. 02 1月, 2018 1 次提交
  9. 26 10月, 2017 1 次提交
  10. 09 7月, 2017 1 次提交
  11. 06 7月, 2017 1 次提交
  12. 02 2月, 2017 3 次提交
  13. 28 6月, 2015 1 次提交
  14. 26 8月, 2014 1 次提交
  15. 27 6月, 2013 1 次提交
    • S
      [CIFS] SMB3 Signing enablement · 429b46f4
      Steve French 提交于
      SMB3 uses a much faster method of signing (which is also better in other ways),
      AES-CMAC.  With the kernel now supporting AES-CMAC since last release, we
      are overdue to allow SMB3 signing (today only CIFS and SMB2 and SMB2.1,
      but not SMB3 and SMB3.1 can sign) - and we need this also for checking
      secure negotation and also per-share encryption (two other new SMB3 features
      which we need to implement).
      
      This patch needs some work in a few areas - for example we need to
      move signing for SMB2/SMB3 from per-socket to per-user (we may be able to
      use the "nosharesock" mount option in the interim for the multiuser case),
      and Shirish found a bug in the earlier authentication overhaul
      (setting signing flags properly) - but those can be done in followon
      patches.
      Signed-off-by: NShirish Pargaonkar <shirishpargaonkar@gmail.com>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      429b46f4
  16. 22 1月, 2013 1 次提交
  17. 06 12月, 2012 1 次提交
  18. 02 10月, 2012 1 次提交
  19. 25 9月, 2012 2 次提交
  20. 23 5月, 2012 1 次提交
    • S
      CIFS: Introduce SMB2 Kconfig option · 675f36fb
      Steve French 提交于
      SMB2 is the followon to the CIFS (and SMB) protocols
      and the default for Windows since Windows Vista, and also
      now implemented by various non-Windows servers. SMB2
      is more secure, has various performance advantages, including
      larger i/o sizes, flow control, better caching model and more.
      SMB2 also resolves some scalability limits in the CIFS
      protocol and adds many new features while being much
      simpler (only a few dozen commands instead of hundreds)
      and since the protocol is clearer it is also more consistently
      implemented across servers and thus easier to optimize.
      
      After much discussion with Jeff Layton, Jeremy Allison
      and others at Connectathon, we decided to move the SMB2
      code from a distinct .ko and fstype into distinct
      C files that optionally build in cifs.ko. As a result
      the Kconfig gets simpler.
      
      To avoid destabilizing CIFS, the SMB2 code is going
      to be moved into its own experimental CONFIG_CIFS_SMB2 ifdef
      as it is merged and rereviewed. The changes to stable
      CIFS (builds with the SMB2 ifdef off) are expected to be
      fairly small.
      Reviewed-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      Signed-off-by: NPavel Shilovsky <piastry@etersoft.ru>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      675f36fb
  21. 01 2月, 2012 1 次提交
  22. 19 1月, 2012 1 次提交
  23. 25 6月, 2011 1 次提交
  24. 07 6月, 2011 1 次提交
  25. 04 6月, 2011 1 次提交
  26. 24 5月, 2011 1 次提交
  27. 19 5月, 2011 3 次提交
    • S
      [CIFS] Use ecb des kernel crypto APIs instead of · 43988d76
      Steve French 提交于
       local cifs functions (repost)
      
      Using kernel crypto APIs for DES encryption during LM and NT hash generation
      instead of local functions within cifs.
      Source file smbdes.c is deleted sans four functions, one of which
      uses ecb des functionality provided by kernel crypto APIs.
      
      Remove function SMBOWFencrypt.
      
      Add return codes to various functions such as calc_lanman_hash,
      SMBencrypt, and SMBNTencrypt.  Includes fix noticed by Dan Carpenter.
      Signed-off-by: NShirish Pargaonkar <shirishpargaonkar@gmail.com>
      CC: Dan Carpenter <error27@gmail.com>
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      43988d76
    • S
      cifs: cleanup: Rename and remove config flags · 25720873
      Shirish Pargaonkar 提交于
      Remove config flag CIFS_EXPERIMENTAL.
      Do export operations under new config flag CIFS_NFSD_EXPORT
      Signed-off-by: NShirish Pargaonkar <shirishpargaonkar@gmail.com>
      Reviewed-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      25720873
    • S
      Introduce SMB2 Kconfig option · b34cb85c
      Steve French 提交于
      SMB2 is the followon to the CIFS (and SMB) protocols
      and the default for Windows since Windows Vista, and also
      now implemented by various non-Windows servers.  SMB2
      is more secure, has various performance advantages, including
      larger i/o sizes, flow control, better caching model and more.
      SMB2 also resolves some scalability limits in the cifs
      protocol and adds many new features while being much
      simpler (only a few dozen commands instead of hundreds)
      and since the protocol is clearer it is
      also more consistently implemented across servers
      and thus easier to optimize.
      
      After much discussion with Jeff Layton, Jeremy Allison
      and others at Connectathon, we decided to move the smb2
      code from a distinct .ko and fstype into distinct
      C files that optionally build in cifs.ko.  As a result
      the Kconfig gets simpler.
      
      To avoid destabilizing cifs, the smb2 code is going
      to be moved into its own experimental CONFIG_CIFS_SMB2 ifdef
      as it is merged and rereviewed.  The changes to stable
      cifs (builds with the smb2 ifdef off) are expected to be
      fairly small.
      Reviewed-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      b34cb85c
  28. 31 1月, 2011 1 次提交
  29. 30 11月, 2010 1 次提交
  30. 14 11月, 2010 1 次提交
    • S
      [CIFS] fs/cifs/Kconfig: CIFS depends on CRYPTO_HMAC · 362d3129
      Steve French 提交于
      linux-2.6.37-rc1: I compiled a kernel with CIFS which subsequently
      failed with an error indicating it couldn't initialize crypto module
      "hmacmd5".  CONFIG_CRYPTO_HMAC=y fixed the problem.
      
      This patch makes CIFS depend on CRYPTO_HMAC in kconfig.
      
      Signed-off-by: Jody Bruchon<jody@nctritech.com>
      CC: Shirish Pargaonkar <shirishp@us.ibm.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      362d3129
  31. 27 10月, 2010 1 次提交
    • S
      NTLM auth and sign - Define crypto hash functions and create and send keys needed for key exchange · d2b91521
      Shirish Pargaonkar 提交于
      Mark dependency on crypto modules in Kconfig.
      
      Defining per structures sdesc and cifs_secmech which are used to store
      crypto hash functions and contexts.  They are stored per smb connection
      and used for all auth mechs to genereate hash values and signatures.
      
      Allocate crypto hashing functions, security descriptiors, and respective
      contexts when a smb/tcp connection is established.
      Release them when a tcp/smb connection is taken down.
      
      md5 and hmac-md5 are two crypto hashing functions that are used
      throught the life of an smb/tcp connection by various functions that
      calcualte signagure and ntlmv2 hash, HMAC etc.
      
      structure ntlmssp_auth is defined as per smb connection.
      
      ntlmssp_auth holds ciphertext which is genereated by rc4/arc4 encryption of
      secondary key, a nonce using ntlmv2 session key and sent in the session key
      field of the type 3 message sent by the client during ntlmssp
      negotiation/exchange
      
      A key is exchanged with the server if client indicates so in flags in
      type 1 messsage and server agrees in flag in type 2 message of ntlmssp
      negotiation.  If both client and agree, a key sent by client in
      type 3 message of ntlmssp negotiation in the session key field.
      The key is a ciphertext generated off of secondary key, a nonce, using
      ntlmv2 hash via rc4/arc4.
      
      Signing works for ntlmssp in this patch. The sequence number within
      the server structure needs to be zero until session is established
      i.e. till type 3 packet of ntlmssp exchange of a to be very first
      smb session on that smb connection is sent.
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NShirish Pargaonkar <shirishpargaonkar@gmail.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      d2b91521