1. 01 11月, 2011 2 次提交
  2. 26 10月, 2011 9 次提交
  3. 25 10月, 2011 9 次提交
  4. 24 10月, 2011 7 次提交
  5. 22 10月, 2011 1 次提交
  6. 21 10月, 2011 8 次提交
  7. 20 10月, 2011 4 次提交
    • I
      net: do not take an additional reference in skb_frag_set_page · a0bec1cd
      Ian Campbell 提交于
      I audited all of the callers in the tree and only one of them (pktgen) expects
      it to do so. Taking this reference is pretty obviously confusing and error
      prone.
      
      In particular I looked at the following commits which switched callers of
      (__)skb_frag_set_page to the skb paged fragment api:
      
      6a930b9f cxgb3: convert to SKB paged frag API.
      5dc3e196 myri10ge: convert to SKB paged frag API.
      0e0634d2 vmxnet3: convert to SKB paged frag API.
      86ee8130 virtionet: convert to SKB paged frag API.
      4a22c4c9 sfc: convert to SKB paged frag API.
      18324d69 cassini: convert to SKB paged frag API.
      b061b39e benet: convert to SKB paged frag API.
      b7b6a688 bnx2: convert to SKB paged frag API.
      804cf14e net: xfrm: convert to SKB frag APIs
      ea2ab693 net: convert core to skb paged frag APIs
      Signed-off-by: NIan Campbell <ian.campbell@citrix.com>
      Acked-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a0bec1cd
    • R
      neigh: fix rcu splat in neigh_update() · e049f288
      roy.qing.li@gmail.com 提交于
      when use dst_get_neighbour to get neighbour, we need
      rcu_read_lock to protect, since dst_get_neighbour uses
      rcu_dereference.
      
      The bug was reported by Ari Savolainen <ari.m.savolainen@gmail.com>
      
      [  105.612095]
      [  105.612096] ===================================================
      [  105.612100] [ INFO: suspicious rcu_dereference_check() usage. ]
      [  105.612101] ---------------------------------------------------
      [  105.612103] include/net/dst.h:91 invoked rcu_dereference_check()
      without protection!
      [  105.612105]
      [  105.612106] other info that might help us debug this:
      [  105.612106]
      [  105.612108]
      [  105.612108] rcu_scheduler_active = 1, debug_locks = 0
      [  105.612110] 1 lock held by dnsmasq/2618:
      [  105.612111]  #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff815df8c7>]
      rtnl_lock+0x17/0x20
      [  105.612120]
      [  105.612121] stack backtrace:
      [  105.612123] Pid: 2618, comm: dnsmasq Not tainted 3.1.0-rc1 #41
      [  105.612125] Call Trace:
      [  105.612129]  [<ffffffff810ccdcb>] lockdep_rcu_dereference+0xbb/0xc0
      [  105.612132]  [<ffffffff815dc5a9>] neigh_update+0x4f9/0x5f0
      [  105.612135]  [<ffffffff815da001>] ? neigh_lookup+0xe1/0x220
      [  105.612139]  [<ffffffff81639298>] arp_req_set+0xb8/0x230
      [  105.612142]  [<ffffffff8163a59f>] arp_ioctl+0x1bf/0x310
      [  105.612146]  [<ffffffff810baa40>] ? lock_hrtimer_base.isra.26+0x30/0x60
      [  105.612150]  [<ffffffff8163fb75>] inet_ioctl+0x85/0x90
      [  105.612154]  [<ffffffff815b5520>] sock_do_ioctl+0x30/0x70
      [  105.612157]  [<ffffffff815b55d3>] sock_ioctl+0x73/0x280
      [  105.612162]  [<ffffffff811b7698>] do_vfs_ioctl+0x98/0x570
      [  105.612165]  [<ffffffff811a5c40>] ? fget_light+0x340/0x3a0
      [  105.612168]  [<ffffffff811b7bbf>] sys_ioctl+0x4f/0x80
      [  105.612172]  [<ffffffff816fdcab>] system_call_fastpath+0x16/0x1b
      Reported-by: NAri Savolainen <ari.m.savolainen@gmail.com>
      Signed-off-by: NRongQing <roy.qing.li@gmail.com>
      Acked-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e049f288
    • D
      filter: use unsigned int to silence static checker warning · 4f25af27
      Dan Carpenter 提交于
      This is just a cleanup.
      
      My testing version of Smatch warns about this:
      net/core/filter.c +380 check_load_and_stores(6)
      	warn: check 'flen' for negative values
      
      flen comes from the user.  We try to clamp the values here between 1
      and BPF_MAXINSNS but the clamp doesn't work because it could be
      negative.  This is a bug, but it's not exploitable.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4f25af27
    • K
      cleanup: remove unnecessary include. · 25c8295b
      Kevin Wilson 提交于
      This cleanup patch removes unnecessary include from net/ipv6/ip6_fib.c.
      Signed-off-by: NKevin Wilson <wkevils@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      25c8295b