1. 28 Jun, 2017 2 commits
    • Miaoqing Pan's avatar
      ath9k: fix tx99 bus error · bde717ab
      Miaoqing Pan authored
      The hard coded register 0x9864 and 0x9924 are invalid
      for ar9300 chips.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarMiaoqing Pan <miaoqing@codeaurora.org>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      bde717ab
    • Miaoqing Pan's avatar
      ath9k: fix tx99 use after free · cf8ce1ea
      Miaoqing Pan authored
      One scenario that could lead to UAF is two threads writing
      simultaneously to the "tx99" debug file. One of them would
      set the "start" value to true and follow to ath9k_tx99_init().
      Inside the function it would set the sc->tx99_state to true
      after allocating sc->tx99skb. Then, the other thread would
      execute write_file_tx99() and call ath9k_tx99_deinit().
      sc->tx99_state would be freed. After that, the first thread
      would continue inside ath9k_tx99_init() and call
      r = ath9k_tx99_send(sc, sc->tx99_skb, &txctl);
      that would make use of the freed sc->tx99_skb memory.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarMiaoqing Pan <miaoqing@codeaurora.org>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      cf8ce1ea
  2. 27 Jun, 2017 9 commits
  3. 25 Jun, 2017 28 commits
  4. 23 Jun, 2017 1 commit
    • David S. Miller's avatar
      Merge branch 'phy-internal' · cf3db45d
      David S. Miller authored
      Florian Fainelli says:
      
      ====================
      net: phy: Support "internal" PHY interface
      
      This makes the "internal" phy-mode property generally available and
      documented and this allows us to remove some custom parsing code
      we had for bcmgenet and bcm_sf2 which both used that specific value.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cf3db45d