1. 12 6月, 2013 1 次提交
    • J
      team: move add to port list before port enablement · 72df935d
      Jiri Pirko 提交于
      team_port_enable() adds port to port_hashlist. Reader sees port
      in team_get_port_by_index_rcu() and returns it, but
      team_get_first_port_txable_rcu() tries to go through port_list, where the
      port is not inserted yet -> NULL pointer dereference.
      Fix this by reordering port_list and port_hashlist insertion.
      Panic is easily triggeable when txing packets and adding/removing port
      in a loop.
      
      Introduced by commit 3d249d4c "net: introduce ethernet teaming device"
      Signed-off-by: NJiri Pirko <jiri@resnulli.us>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72df935d
  2. 01 6月, 2013 1 次提交
  3. 20 4月, 2013 2 次提交
  4. 16 4月, 2013 1 次提交
  5. 10 3月, 2013 1 次提交
  6. 08 3月, 2013 1 次提交
  7. 07 3月, 2013 1 次提交
  8. 07 2月, 2013 1 次提交
  9. 05 2月, 2013 2 次提交
  10. 07 1月, 2013 1 次提交
  11. 05 1月, 2013 1 次提交
  12. 04 1月, 2013 1 次提交
  13. 03 1月, 2013 1 次提交
  14. 30 12月, 2012 2 次提交
  15. 29 11月, 2012 1 次提交
  16. 05 10月, 2012 1 次提交
  17. 28 9月, 2012 1 次提交
  18. 23 9月, 2012 1 次提交
  19. 22 9月, 2012 1 次提交
  20. 11 9月, 2012 1 次提交
  21. 25 8月, 2012 2 次提交
  22. 20 8月, 2012 1 次提交
  23. 15 8月, 2012 1 次提交
  24. 04 8月, 2012 3 次提交
  25. 25 7月, 2012 1 次提交
  26. 21 7月, 2012 1 次提交
  27. 19 7月, 2012 1 次提交
  28. 18 7月, 2012 1 次提交
  29. 12 7月, 2012 2 次提交
  30. 30 6月, 2012 1 次提交
  31. 29 6月, 2012 1 次提交
    • T
      net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new() · 58050fce
      Thomas Graf 提交于
      Using NLMSG_GOODSIZE results in multiple pages being used as
      nlmsg_new() will automatically add the size of the netlink
      header to the payload thus exceeding the page limit.
      
      NLMSG_DEFAULT_SIZE takes this into account.
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Cc: Jiri Pirko <jpirko@redhat.com>
      Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Cc: Sergey Lapin <slapin@ossfans.org>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
      Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Reviewed-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      58050fce
  32. 27 6月, 2012 2 次提交