1. 12 11月, 2018 2 次提交
    • S
      batman-adv: Add inconsistent claim netlink dump detection · 24d71b92
      Sven Eckelmann 提交于
      The netlink dump functionality transfers a large number of entries from the
      kernel to userspace. It is rather likely that the transfer has to
      interrupted and later continued. During that time, it can happen that
      either new entries are added or removed. The userspace could than either
      receive some entries multiple times or miss entries.
      
      Commit 670dc283 ("netlink: advertise incomplete dumps") introduced a
      mechanism to inform userspace about this problem. Userspace can then decide
      whether it is necessary or not to retry dumping the information again.
      
      The netlink dump functions have to be switched to exclusive locks to avoid
      changes while the current message is prepared. The already existing
      generation sequence counter from the hash helper can be used for this
      simple hash.
      Reported-by: NMatthias Schiffer <mschiffer@universe-factory.net>
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      24d71b92
    • S
      batman-adv: Add inconsistent backbone netlink dump detection · b00d0e6a
      Sven Eckelmann 提交于
      The netlink dump functionality transfers a large number of entries from the
      kernel to userspace. It is rather likely that the transfer has to
      interrupted and later continued. During that time, it can happen that
      either new entries are added or removed. The userspace could than either
      receive some entries multiple times or miss entries.
      
      Commit 670dc283 ("netlink: advertise incomplete dumps") introduced a
      mechanism to inform userspace about this problem. Userspace can then decide
      whether it is necessary or not to retry dumping the information again.
      
      The netlink dump functions have to be switched to exclusive locks to avoid
      changes while the current message is prepared. The already existing
      generation sequence counter from the hash helper can be used for this
      simple hash.
      Reported-by: NMatthias Schiffer <mschiffer@universe-factory.net>
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      b00d0e6a
  2. 07 9月, 2018 1 次提交
  3. 23 6月, 2018 1 次提交
  4. 27 2月, 2018 1 次提交
  5. 26 2月, 2018 2 次提交
    • S
      batman-adv: Fix netlink dumping of BLA backbones · fce672db
      Sven Eckelmann 提交于
      The function batadv_bla_backbone_dump_bucket must be able to handle
      non-complete dumps of a single bucket. It tries to do that by saving the
      latest dumped index in *idx_skip to inform the caller about the current
      state.
      
      But the caller only assumes that buckets were not completely dumped when
      the return code is non-zero. This function must therefore also return a
      non-zero index when the dumping of an entry failed. Otherwise the caller
      will just skip all remaining buckets.
      
      And the function must also reset *idx_skip back to zero when it finished a
      bucket. Otherwise it will skip the same number of entries in the next
      bucket as the previous one had.
      
      Fixes: ea4152e1 ("batman-adv: add backbone table netlink support")
      Reported-by: NLinus Lüssing <linus.luessing@c0d3.blue>
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      fce672db
    • S
      batman-adv: Fix netlink dumping of BLA claims · b0264ecd
      Sven Eckelmann 提交于
      The function batadv_bla_claim_dump_bucket must be able to handle
      non-complete dumps of a single bucket. It tries to do that by saving the
      latest dumped index in *idx_skip to inform the caller about the current
      state.
      
      But the caller only assumes that buckets were not completely dumped when
      the return code is non-zero. This function must therefore also return a
      non-zero index when the dumping of an entry failed. Otherwise the caller
      will just skip all remaining buckets.
      
      And the function must also reset *idx_skip back to zero when it finished a
      bucket. Otherwise it will skip the same number of entries in the next
      bucket as the previous one had.
      
      Fixes: 04f3f5bf ("batman-adv: add B.A.T.M.A.N. Dump BLA claims via netlink")
      Reported-by: NLinus Lüssing <linus.luessing@c0d3.blue>
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      b0264ecd
  6. 22 12月, 2017 1 次提交
  7. 16 12月, 2017 3 次提交
  8. 23 5月, 2017 1 次提交
  9. 22 3月, 2017 3 次提交
  10. 17 3月, 2017 1 次提交
  11. 26 1月, 2017 1 次提交
  12. 19 1月, 2017 1 次提交
    • T
      net: Remove usage of net_device last_rx member · 4a7c9726
      Tobias Klauser 提交于
      The network stack no longer uses the last_rx member of struct net_device
      since the bonding driver switched to use its own private last_rx in
      commit 9f242738 ("bonding: use last_arp_rx in slave_last_rx()").
      
      However, some drivers still (ab)use the field for their own purposes and
      some driver just update it without actually using it.
      
      Previously, there was an accompanying comment for the last_rx member
      added in commit 4dc89133 ("net: add a comment on netdev->last_rx")
      which asked drivers not to update is, unless really needed. However,
      this commend was removed in commit f8ff080d ("bonding: remove
      useless updating of slave->dev->last_rx"), so some drivers added later
      on still did update last_rx.
      
      Remove all usage of last_rx and switch three drivers (sky2, atp and
      smc91c92_cs) which actually read and write it to use their own private
      copy in netdev_priv.
      
      Compile-tested with allyesconfig and allmodconfig on x86 and arm.
      
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Cc: Jay Vosburgh <j.vosburgh@gmail.com>
      Cc: Veaceslav Falico <vfalico@gmail.com>
      Cc: Andy Gospodarek <andy@greyhouse.net>
      Cc: Mirko Lindner <mlindner@marvell.com>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
      Acked-by: NEric Dumazet <edumazet@google.com>
      Reviewed-by: NJay Vosburgh <jay.vosburgh@canonical.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4a7c9726
  13. 09 8月, 2016 6 次提交
  14. 05 7月, 2016 2 次提交
  15. 30 6月, 2016 1 次提交
  16. 10 5月, 2016 2 次提交
  17. 04 5月, 2016 5 次提交
  18. 23 2月, 2016 4 次提交
  19. 10 2月, 2016 2 次提交