1. 17 5月, 2017 1 次提交
    • R
      mac80211: strictly check mesh address extension mode · 5667c86a
      Rajkumar Manoharan 提交于
      Mesh forwarding path checks for address extension mode to fetch
      appropriate proxied address and MPP address. Existing condition
      that looks for 6 address format is not strict enough so that
      frames with improper values are processed and invalid entries
      are added into MPP table. Fix that by adding a stricter check before
      processing the packet.
      
      Per IEEE Std 802.11s-2011 spec. Table 7-6g1 lists address extension
      mode 0x3 as reserved one. And also Table Table 9-13 does not specify
      0x3 as valid address field.
      
      Fixes: 9b395bc3 ("mac80211: verify that skb data is present")
      Signed-off-by: NRajkumar Manoharan <rmanohar@qti.qualcomm.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      5667c86a
  2. 28 4月, 2017 1 次提交
  3. 18 4月, 2017 1 次提交
  4. 13 4月, 2017 1 次提交
  5. 31 3月, 2017 1 次提交
  6. 06 3月, 2017 2 次提交
  7. 28 1月, 2017 1 次提交
    • E
      net: adjust skb->truesize in pskb_expand_head() · 158f323b
      Eric Dumazet 提交于
      Slava Shwartsman reported a warning in skb_try_coalesce(), when we
      detect skb->truesize is completely wrong.
      
      In his case, issue came from IPv6 reassembly coping with malicious
      datagrams, that forced various pskb_may_pull() to reallocate a bigger
      skb->head than the one allocated by NIC driver before entering GRO
      layer.
      
      Current code does not change skb->truesize, leaving this burden to
      callers if they care enough.
      
      Blindly changing skb->truesize in pskb_expand_head() is not
      easy, as some producers might track skb->truesize, for example
      in xmit path for back pressure feedback (sk->sk_wmem_alloc)
      
      We can detect the cases where it should be safe to change
      skb->truesize :
      
      1) skb is not attached to a socket.
      2) If it is attached to a socket, destructor is sock_edemux()
      
      My audit gave only two callers doing their own skb->truesize
      manipulation.
      
      I had to remove skb parameter in sock_edemux macro when
      CONFIG_INET is not set to avoid a compile error.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Reported-by: NSlava Shwartsman <slavash@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      158f323b
  8. 13 1月, 2017 1 次提交
  9. 06 1月, 2017 1 次提交
  10. 05 1月, 2017 1 次提交
  11. 13 12月, 2016 1 次提交
  12. 15 11月, 2016 1 次提交
  13. 27 10月, 2016 3 次提交
  14. 18 10月, 2016 1 次提交
  15. 13 10月, 2016 2 次提交
  16. 12 10月, 2016 2 次提交
  17. 30 9月, 2016 3 次提交
  18. 14 9月, 2016 2 次提交
  19. 12 8月, 2016 1 次提交
  20. 06 7月, 2016 1 次提交
  21. 29 6月, 2016 1 次提交
    • F
      cfg80211: fix proto in ieee80211_data_to_8023 for frames without LLC header · c041778c
      Felix Fietkau 提交于
      The PDU length of incoming LLC frames is set to the total skb payload size
      in __ieee80211_data_to_8023() of net/wireless/util.c which incorrectly
      includes the length of the IEEE 802.11 header.
      
      The resulting LLC frame header has a too large PDU length, causing the
      llc_fixup_skb() function of net/llc/llc_input.c to reject the incoming
      skb, effectively breaking STP.
      
      Solve the problem by properly substracting the IEEE 802.11 frame header size
      from the PDU length, allowing the LLC processor to pick up the incoming
      control messages.
      
      Special thanks to Gerry Rozema for tracking down the regression and proposing
      a suitable patch.
      
      Fixes: 2d1c304c ("cfg80211: add function for 802.3 conversion with separate output buffer")
      Cc: stable@vger.kernel.org
      Reported-by: NGerry Rozema <gerryr@rozeware.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      c041778c
  22. 20 5月, 2016 1 次提交
  23. 12 5月, 2016 1 次提交
  24. 26 4月, 2016 1 次提交
  25. 12 4月, 2016 1 次提交
  26. 05 3月, 2016 1 次提交
  27. 24 2月, 2016 5 次提交
  28. 04 12月, 2015 1 次提交