1. 19 10月, 2015 3 次提交
  2. 16 10月, 2015 1 次提交
  3. 15 10月, 2015 1 次提交
  4. 13 10月, 2015 7 次提交
  5. 11 10月, 2015 3 次提交
  6. 09 10月, 2015 3 次提交
  7. 08 10月, 2015 3 次提交
  8. 07 10月, 2015 1 次提交
  9. 06 10月, 2015 1 次提交
  10. 05 10月, 2015 13 次提交
    • J
      i40e: fix offload of GRE tunnels · fec31fff
      Jesse Brandeburg 提交于
      The driver still was not offloading TSO on GRE tunnels because
      it forgot to set the GSO_GRE flag, causing lots of retransmits.
      
      This fixes generic GRE traffic (like a tunnel added like below)
      whereas before it would get 1Gb/s or less, now on a 10G adapter
      it gets 8.7Gb/s.
      
      ip ad ad 11.1.0.2/24 dev ens2f0
      ip l set ens2f0 up
      ip link add gre2 type gretap remote 11.1.0.1 local 11.1.0.2 dev ens2f0
      ip l set gre2 up
      ip ad ad 192.168.124.2/24 dev gre2
      ping 192.168.124.1
      netperf -H 192.168.124.1
      Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fec31fff
    • A
      iwlwifi: mvm: flush fw_dump_wk when mvm fails to start · dbf73d4a
      Andrei Otcheretianski 提交于
      FW dump may be triggered when running init ucode, for example due to a
      sysassert. In this case fw_dump_wk may run after mvm is freed, resulting
      in a kernel panic.
      Fix it by flushing the work.
      
      Fixes: 01b988a708af ("iwlwifi: mvm: allow to collect debug data when restart is disabled")
      Cc: <stable@vger.kernel.org> [3.18+]
      Signed-off-by: NAndrei Otcheretianski <andrei.otcheretianski@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      dbf73d4a
    • A
      iwlwifi: mvm: init card correctly on ctkill exit check · 1a3fe0b2
      Arik Nemtsov 提交于
      During the CT-kill exit flow, the card is powered up and partially
      initialized to check if the temperature is already low enough.
      Unfortunately the init bails early because the CT-kill flag is set.
      Make the code bail early only for HW RF-kill, as was intended by the
      author. CT-kill is self-imposed and is not really RF-kill.
      
      Fixes: 31b8b343 ("iwlwifi: fix RFkill while calibrating")
      Cc: <stable@vger.kernel.org> [3.18+]
      Signed-off-by: NArik Nemtsov <arikx.nemtsov@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      1a3fe0b2
    • L
      iwlwifi: pci: add a few more PCI subvendor IDs for the 7265 series · f08f6258
      Luca Coelho 提交于
      Add 3 new subdevice IDs for the 0x095A device ID and 2 for the 0x095B
      device ID.
      
      Cc: <stable@vger.kernerl.org> [3.13+]
      Reported-by: NJeremy <jeremy.bomkamp@gmail.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      f08f6258
    • J
      iwlwifi: fix firmware filename for 3160 · b5a48134
      Johannes Berg 提交于
      The MODULE_FIRMWARE() for 3160 should be using the 7260 version as
      it's done in the device configuration struct instead of referencing
      IWL3160_UCODE_API_OK which doesn't even exist.
      
      Cc: <stable@vger.kernel.org> [3.8+]
      Reported-by: NHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      b5a48134
    • A
      iwlwifi: mvm: clear csa countdown when AP is stopped · e9cb0327
      Avraham Stern 提交于
      The csa_countdown flag was not cleared when the AP is stopped.
      As a result, if the AP was stopped after csa_countdown had started,
      all the folowing channel switch commands would fail.
      Fix that by clearing the csa_countdown flag when the AP is stopped.
      
      Cc: <stable@vger.kernel.org> [3.17+]
      Signed-off-by: NAvraham Stern <avraham.stern@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      e9cb0327
    • J
      iwlwifi: mvm: fix D3 firmware PN programming · 2cf5eb3a
      Johannes Berg 提交于
      The code to send the RX PN data (for each TID) to the firmware
      has a devastating bug: it overwrites the data for TID 0 with
      all the TID data, leaving the remaining TIDs zeroed. This will
      allow replays to actually be accepted by the firmware, which
      could allow waking up the system.
      
      Cc: <stable@vger.kernel.org> [3.1+]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      2cf5eb3a
    • J
      iwlwifi: dvm: fix D3 firmware PN programming · 5bd16687
      Johannes Berg 提交于
      The code to send the RX PN data (for each TID) to the firmware
      has a devastating bug: it overwrites the data for TID 0 with
      all the TID data, leaving the remaining TIDs zeroed. This will
      allow replays to actually be accepted by the firmware, which
      could allow waking up the system.
      
      Cc: <stable@vger.kernel.org> [3.1+]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      5bd16687
    • J
      iwlwifi: mvm: fix D3 CCMP TX PN assignment · 6645d5e4
      Johannes Berg 提交于
      When going into/coming out of D3, the TX PN must be programmed into
      and restored from the firmware respectively. The restore was broken
      due to my previous commit to move PN assignment into the driver.
      Sending the PN to the firmware still worked since we now use the
      counter that's shared with mac80211, but accessing it through the
      mac80211 API makes no sense now.
      
      Fix this by reading/writing the counter directly. This actually
      simplifies the code since we don't need to round-trip through the
      key_seq structure.
      
      Fixes: ca8c0f4b ("iwlwifi: mvm: move TX PN assignment for CCMP to the driver")
      Cc: <stable@vger.kernel.org> [4.1+]
      Reported-by: NLuca Coelho <luciano.coelho@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      6645d5e4
    • V
      net: lpc_eth: fix warnings caused by enabling unprepared clock · 33a8316d
      Vladimir Zapolskiy 提交于
      If common clock framework is configured, the driver generates warnings,
      which are fixed by this change:
      
          WARNING: CPU: 0 PID: 1 at linux/drivers/clk/clk.c:727 clk_core_enable+0x2c/0xa4()
          Modules linked in:
          CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0-rc2+ #141
          Hardware name: LPC32XX SoC (Flattened Device Tree)
          Backtrace:
          [<>] (dump_backtrace) from [<>] (show_stack+0x18/0x1c)
          [<>] (show_stack) from [<>] (dump_stack+0x20/0x28)
          [<>] (dump_stack) from [<>] (warn_slowpath_common+0x90/0xb8)
          [<>] (warn_slowpath_common) from [<>] (warn_slowpath_null+0x24/0x2c)
          [<>] (warn_slowpath_null) from [<>] (clk_core_enable+0x2c/0xa4)
          [<>] (clk_core_enable) from [<>] (clk_enable+0x24/0x38)
          [<>] (clk_enable) from [<>] (lpc_eth_drv_probe+0xfc/0x99c)
          [<>] (lpc_eth_drv_probe) from [<>] (platform_drv_probe+0x50/0xa0)
          [<>] (platform_drv_probe) from [<>] (driver_probe_device+0x18c/0x408)
          [<>] (driver_probe_device) from [<>] (__driver_attach+0x70/0x94)
          [<>] (__driver_attach) from [<>] (bus_for_each_dev+0x74/0x98)
          [<>] (bus_for_each_dev) from [<>] (driver_attach+0x20/0x28)
          [<>] (driver_attach) from [<>] (bus_add_driver+0x11c/0x248)
          [<>] (bus_add_driver) from [<>] (driver_register+0xa4/0xe8)
          [<>] (driver_register) from [<>] (__platform_driver_register+0x50/0x64)
          [<>] (__platform_driver_register) from [<>] (lpc_eth_driver_init+0x18/0x20)
          [<>] (lpc_eth_driver_init) from [<>] (do_one_initcall+0x11c/0x1dc)
          [<>] (do_one_initcall) from [<>] (kernel_init_freeable+0x10c/0x1d4)
          [<>] (kernel_init_freeable) from [<>] (kernel_init+0x10/0xec)
          [<>] (kernel_init) from [<>] (ret_from_fork+0x14/0x24)
      Signed-off-by: NVladimir Zapolskiy <vz@mleia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      33a8316d
    • D
      net: usb: asix: Fix crash on skb alloc failure · f6194bcf
      David B. Robins 提交于
      If asix_rx_fixup_internal() fails to allocate rx->ax_skb, it will return
      but not clear rx->size. rx points to driver private data. A later call
      assumes that nonzero size means ax_skb was allocated and passes a null
      ax_skb to skb_put. Changed allocation failure return to clear size first.
      
      Found testing board with AX88772B devices.
      Signed-off-by: NDavid B. Robins <linux@davidrobins.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f6194bcf
    • G
      amd-xgbe: fix potential memory leak in xgbe-debugfs · 9dc80a74
      Geliang Tang 提交于
      Added kfree() to avoid the memory leak when debugfs_create_dir() fails.
      Signed-off-by: NGeliang Tang <geliangtang@163.com>
      Acked-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9dc80a74
    • G
      ppp: don't override sk->sk_state in pppoe_flush_dev() · e6740165
      Guillaume Nault 提交于
      Since commit 2b018d57 ("pppoe: drop PPPOX_ZOMBIEs in pppoe_release"),
      pppoe_release() calls dev_put(po->pppoe_dev) if sk is in the
      PPPOX_ZOMBIE state. But pppoe_flush_dev() can set sk->sk_state to
      PPPOX_ZOMBIE _and_ reset po->pppoe_dev to NULL. This leads to the
      following oops:
      
      [  570.140800] BUG: unable to handle kernel NULL pointer dereference at 00000000000004e0
      [  570.142931] IP: [<ffffffffa018c701>] pppoe_release+0x50/0x101 [pppoe]
      [  570.144601] PGD 3d119067 PUD 3dbc1067 PMD 0
      [  570.144601] Oops: 0000 [#1] SMP
      [  570.144601] Modules linked in: l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel pppoe pppox ppp_generic slhc loop crc32c_intel ghash_clmulni_intel jitterentropy_rng sha256_generic hmac drbg ansi_cprng aesni_intel aes_x86_64 ablk_helper cryptd lrw gf128mul glue_helper acpi_cpufreq evdev serio_raw processor button ext4 crc16 mbcache jbd2 virtio_net virtio_blk virtio_pci virtio_ring virtio
      [  570.144601] CPU: 1 PID: 15738 Comm: ppp-apitest Not tainted 4.2.0 #1
      [  570.144601] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
      [  570.144601] task: ffff88003d30d600 ti: ffff880036b60000 task.ti: ffff880036b60000
      [  570.144601] RIP: 0010:[<ffffffffa018c701>]  [<ffffffffa018c701>] pppoe_release+0x50/0x101 [pppoe]
      [  570.144601] RSP: 0018:ffff880036b63e08  EFLAGS: 00010202
      [  570.144601] RAX: 0000000000000000 RBX: ffff880034340000 RCX: 0000000000000206
      [  570.144601] RDX: 0000000000000006 RSI: ffff88003d30dd20 RDI: ffff88003d30dd20
      [  570.144601] RBP: ffff880036b63e28 R08: 0000000000000001 R09: 0000000000000000
      [  570.144601] R10: 00007ffee9b50420 R11: ffff880034340078 R12: ffff8800387ec780
      [  570.144601] R13: ffff8800387ec7b0 R14: ffff88003e222aa0 R15: ffff8800387ec7b0
      [  570.144601] FS:  00007f5672f48700(0000) GS:ffff88003fc80000(0000) knlGS:0000000000000000
      [  570.144601] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  570.144601] CR2: 00000000000004e0 CR3: 0000000037f7e000 CR4: 00000000000406a0
      [  570.144601] Stack:
      [  570.144601]  ffffffffa018f240 ffff8800387ec780 ffffffffa018f240 ffff8800387ec7b0
      [  570.144601]  ffff880036b63e48 ffffffff812caabe ffff880039e4e000 0000000000000008
      [  570.144601]  ffff880036b63e58 ffffffff812cabad ffff880036b63ea8 ffffffff811347f5
      [  570.144601] Call Trace:
      [  570.144601]  [<ffffffff812caabe>] sock_release+0x1a/0x75
      [  570.144601]  [<ffffffff812cabad>] sock_close+0xd/0x11
      [  570.144601]  [<ffffffff811347f5>] __fput+0xff/0x1a5
      [  570.144601]  [<ffffffff811348cb>] ____fput+0x9/0xb
      [  570.144601]  [<ffffffff81056682>] task_work_run+0x66/0x90
      [  570.144601]  [<ffffffff8100189e>] prepare_exit_to_usermode+0x8c/0xa7
      [  570.144601]  [<ffffffff81001a26>] syscall_return_slowpath+0x16d/0x19b
      [  570.144601]  [<ffffffff813babb1>] int_ret_from_sys_call+0x25/0x9f
      [  570.144601] Code: 48 8b 83 c8 01 00 00 a8 01 74 12 48 89 df e8 8b 27 14 e1 b8 f7 ff ff ff e9 b7 00 00 00 8a 43 12 a8 0b 74 1c 48 8b 83 a8 04 00 00 <48> 8b 80 e0 04 00 00 65 ff 08 48 c7 83 a8 04 00 00 00 00 00 00
      [  570.144601] RIP  [<ffffffffa018c701>] pppoe_release+0x50/0x101 [pppoe]
      [  570.144601]  RSP <ffff880036b63e08>
      [  570.144601] CR2: 00000000000004e0
      [  570.200518] ---[ end trace 46956baf17349563 ]---
      
      pppoe_flush_dev() has no reason to override sk->sk_state with
      PPPOX_ZOMBIE. pppox_unbind_sock() already sets sk->sk_state to
      PPPOX_DEAD, which is the correct state given that sk is unbound and
      po->pppoe_dev is NULL.
      
      Fixes: 2b018d57 ("pppoe: drop PPPOX_ZOMBIEs in pppoe_release")
      Tested-by: NOleksii Berezhniak <core@irc.lg.ua>
      Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e6740165
  11. 03 10月, 2015 1 次提交
  12. 30 9月, 2015 3 次提交