1. 11 10月, 2015 5 次提交
    • D
      Merge branch 'for-upstream' of... · 7bcfeead
      David S. Miller 提交于
      Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
      
      Johan Hedberg says:
      
      ====================
      pull request: bluetooth-next 2015-10-08
      
      Here's another set of Bluetooth & 802.15.4 patches for the 4.4 kernel.
      
      802.15.4:
       - Many improvements & fixes to the mrf24j40 driver
       - Fixes and cleanups to nl802154, mac802154 & ieee802154 code
      
      Bluetooth:
       - New chipset support in btmrvl driver
       - Fixes & cleanups to btbcm, btmrvl, bpa10x & btintel drivers
       - Support for vendor specific diagnostic data through common API
       - Cleanups to the 6lowpan code
       - New events & message types for monitor channel
      
      Please let me know if there are any issues pulling. Thanks.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7bcfeead
    • W
      BNX2: fix a Null Pointer for stats_blk · 8fae307c
      wangweidong 提交于
      we have two processes to do:
      P1#: ifconfig eth0 down; which will call bnx2_close, then will
      , and set Null to stats_blk
      P2#: ifconfig eth0; which will call bnx2_get_stats64, it will
      use stats_blk.
      In one case:
          --P1#--                   --P2#--
                                    stats_blk(no null)
          bnx2_free_mem
          ->bp->stats_blk = NULL
                                    GET_64BIT_NET_STATS
      
      then it will cause 'NULL Pointer' Problem.
      it is as well with 'ethtool -S ethx'.
      
      Allocate the statistics block at probe time so that this problem is
      impossible
      Signed-off-by: NWang Weidong <wangweidong1@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8fae307c
    • E
      net: synack packets can be attached to request sockets · e446f9df
      Eric Dumazet 提交于
      selinux needs few changes to accommodate fact that SYNACK messages
      can be attached to a request socket, lacking sk_security pointer
      
      (Only syncookies are still attached to a TCP_LISTEN socket)
      
      Adds a new sk_listener() helper, and use it in selinux and sch_fq
      
      Fixes: ca6fb065 ("tcp: attach SYNACK messages to request sockets instead of listener")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Reported by: kernel test robot <ying.huang@linux.intel.com>
      Cc: Paul Moore <paul@paul-moore.com>
      Cc: Stephen Smalley <sds@tycho.nsa.gov>
      Cc: Eric Paris <eparis@parisplace.org>
      Acked-by: NPaul Moore <paul@paul-moore.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e446f9df
    • H
      cxgb4: Enhance driver to update FW, when FW is too old · 21d11bd6
      Hariprasad Shenai 提交于
      t4_check_fw_version() can return several error codes (-EINVAL, -EBUSY,
      -EAGAIN). The present code sets the adapter state to UNINIT only if its
      an EFAULT. In all the error cases set the adapter to uninitialized state.
      
      In t4_check_fw_version() if call to t4_get_fw_version() fails, repeat the
      operation a few times before returning failure.
      Signed-off-by: NHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21d11bd6
    • A
      bpf: fix cb access in socket filter programs · ff936a04
      Alexei Starovoitov 提交于
      eBPF socket filter programs may see junk in 'u32 cb[5]' area,
      since it could have been used by protocol layers earlier.
      
      For socket filter programs used in af_packet we need to clean
      20 bytes of skb->cb area if it could be used by the program.
      For programs attached to TCP/UDP sockets we need to save/restore
      these 20 bytes, since it's used by protocol layers.
      
      Remove SK_RUN_FILTER macro, since it's no longer used.
      
      Long term we may move this bpf cb area to per-cpu scratch, but that
      requires addition of new 'per-cpu load/store' instructions,
      so not suitable as a short term fix.
      
      Fixes: d691f9e8 ("bpf: allow programs to write to certain skb fields")
      Reported-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NAlexei Starovoitov <ast@plumgrid.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff936a04
  2. 09 10月, 2015 35 次提交