1. 15 9月, 2009 3 次提交
    • G
      net-next-2.6 [PATCH 1/1] dccp: ccids whitespace-cleanup / CodingStyle · aa1b1ff0
      Gerrit Renker 提交于
      No code change, cosmetical changes only:
      
       * whitespace cleanup via scripts/cleanfile,
       * remove self-references to filename at top of files,
       * fix coding style (extraneous brackets),
       * fix documentation style (kernel-doc-nano-HOWTO).
      
      Thanks are due to Ivo Augusto Calado who raised these issues by
      submitting good-quality patches.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aa1b1ff0
    • J
      genetlink: fix netns vs. netlink table locking · d136f1bd
      Johannes Berg 提交于
      Since my commits introducing netns awareness into
      genetlink we can get this problem:
      
      BUG: scheduling while atomic: modprobe/1178/0x00000002
      2 locks held by modprobe/1178:
       #0:  (genl_mutex){+.+.+.}, at: [<ffffffff8135ee1a>] genl_register_mc_grou
       #1:  (rcu_read_lock){.+.+..}, at: [<ffffffff8135eeb5>] genl_register_mc_g
      Pid: 1178, comm: modprobe Not tainted 2.6.31-rc8-wl-34789-g95cb731-dirty #
      Call Trace:
       [<ffffffff8103e285>] __schedule_bug+0x85/0x90
       [<ffffffff81403138>] schedule+0x108/0x588
       [<ffffffff8135b131>] netlink_table_grab+0xa1/0xf0
       [<ffffffff8135c3a7>] netlink_change_ngroups+0x47/0x100
       [<ffffffff8135ef0f>] genl_register_mc_group+0x12f/0x290
      
      because I overlooked that netlink_table_grab() will
      schedule, thinking it was just the rwlock. However,
      in the contention case, that isn't actually true.
      
      Fix this by letting the code grab the netlink table
      lock first and then the RCU for netns protection.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d136f1bd
    • M
      Have atalk_route_packet() return NET_RX_SUCCESS not NET_XMIT_SUCCESS · 8be8057e
      Mark Smith 提交于
      Have atalk_route_packet() return NET_RX_SUCCESS not NET_XMIT_SUCCESS
      
      atalk_route_packet() returns NET_RX_DROP if it's call to
      aarp_send_ddp() returns NET_XMIT_DROP. If aarp_send_ddp() returns
      anything else atalk_route_packet() should return NET_RX_SUCCESS, not
      NET_XMIT_SUCCESS.
      Signed-off-by: NMark Smith <markzzzsmith@yahoo.com.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8be8057e
  2. 12 9月, 2009 7 次提交
  3. 10 9月, 2009 1 次提交
    • P
      net_sched: fix estimator lock selection for mq child qdiscs · 23bcf634
      Patrick McHardy 提交于
      When new child qdiscs are attached to the mq qdisc, they are actually
      attached as root qdiscs to the device queues. The lock selection for
      new estimators incorrectly picks the root lock of the existing and
      to be replaced qdisc, which results in a use-after-free once the old
      qdisc has been destroyed.
      
      Mark mq qdisc instances with a new flag and treat qdiscs attached to
      mq as children similar to regular root qdiscs.
      
      Additionally prevent estimators from being attached to the mq qdisc
      itself since it only updates its byte and packet counters during dumps.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      23bcf634
  4. 09 9月, 2009 3 次提交
  5. 06 9月, 2009 6 次提交
  6. 05 9月, 2009 20 次提交