1. 19 8月, 2017 3 次提交
    • H
      Add OPA extended LID support · 62ede777
      Hiatt, Don 提交于
      This patch series primarily increases sizes of variables that hold
      lid values from 16 to 32 bits. Additionally, it adds a check in
      the IB mad stack to verify a properly formatted MAD when OPA
      extended LIDs are used.
      Signed-off-by: NDon Hiatt <don.hiatt@intel.com>
      Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      62ede777
    • A
      infiniband: avoid overflow warning · 5f8a4db7
      Arnd Bergmann 提交于
      A sockaddr_in structure on the stack getting passed into rdma_ip2gid
      triggers this warning, since we memcpy into a larger sockaddr_in6
      structure:
      
      In function 'memcpy',
          inlined from 'rdma_ip2gid' at include/rdma/ib_addr.h:175:3,
          inlined from 'addr_event.isra.4.constprop' at drivers/infiniband/core/roce_gid_mgmt.c:693:2,
          inlined from 'inetaddr_event' at drivers/infiniband/core/roce_gid_mgmt.c:716:9:
      include/linux/string.h:305:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
      
      The warning seems appropriate here, but the code is also clearly
      correct, so we really just want to shut up this instance of the
      output.
      
      The best way I found so far is to avoid the memcpy() call and instead
      replace it with a struct assignment.
      
      Fixes: 6974f0c4 ("include/linux/string.h: add the option of fortified string.h functions")
      Cc: Daniel Micay <danielmicay@gmail.com>
      Cc: Kees Cook <keescook@chromium.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      5f8a4db7
    • G
      PCI/IB: add support for pci driver attribute groups · 92d50fc1
      Greg Kroah-Hartman 提交于
      Some drivers (specifically the nes IB driver), want to create a lot of
      sysfs driver attributes.  Instead of open-coding the creation and
      removal of these files (and getting it wrong btw), it's a better idea to
      let the driver core handle all of this logic for us.
      
      So add a new field to the pci driver structure, **groups, that allows
      pci drivers to specify an attribute group list it wishes to have created
      when it is registered with the driver core.
      
      Big bonus is now the driver doesn't race with userspace when the sysfs
      files are created vs. when the kobject is announced, so any script/tool
      that actually wanted to use these files will not have to poll waiting
      for them to show up.
      
      Cc: Faisal Latif <faisal.latif@intel.com>
      Cc: Doug Ledford <dledford@redhat.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NBjorn Helgaas <bhelgaas@google.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      92d50fc1
  2. 10 8月, 2017 19 次提交
  3. 09 8月, 2017 10 次提交
  4. 05 8月, 2017 1 次提交
  5. 01 8月, 2017 1 次提交
  6. 27 7月, 2017 2 次提交
  7. 24 7月, 2017 4 次提交