1. 06 3月, 2010 3 次提交
  2. 04 3月, 2010 4 次提交
  3. 03 3月, 2010 1 次提交
  4. 27 2月, 2010 1 次提交
  5. 26 2月, 2010 2 次提交
  6. 25 2月, 2010 5 次提交
  7. 23 2月, 2010 1 次提交
  8. 20 2月, 2010 2 次提交
    • E
      net: Fix sysctl restarts... · 88af182e
      Eric W. Biederman 提交于
      Yuck.  It turns out that when we restart sysctls we were restarting
      with the values already changed.  Which unfortunately meant that
      the second time through we thought there was no change and skipped
      all kinds of work, despite the fact that there was indeed a change.
      
      I have fixed this the simplest way possible by restoring the changed
      values when we restart the sysctl write.
      
      One of my coworkers spotted this bug when after disabling forwarding
      on an interface pings were still forwarded.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      88af182e
    • P
      netfilter: nf_conntrack_reasm: properly handle packets fragmented into a single fragment · 9e2dcf72
      Patrick McHardy 提交于
      When an ICMPV6_PKT_TOOBIG message is received with a MTU below 1280,
      all further packets include a fragment header.
      
      Unlike regular defragmentation, conntrack also needs to "reassemble"
      those fragments in order to obtain a packet without the fragment
      header for connection tracking. Currently nf_conntrack_reasm checks
      whether a fragment has either IP6_MF set or an offset != 0, which
      makes it ignore those fragments.
      
      Remove the invalid check and make reassembly handle fragment queues
      containing only a single fragment.
      Reported-and-tested-by: NUlrich Weber <uweber@astaro.com>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      9e2dcf72
  9. 19 2月, 2010 3 次提交
  10. 18 2月, 2010 1 次提交
  11. 17 2月, 2010 5 次提交
  12. 16 2月, 2010 3 次提交
  13. 15 2月, 2010 3 次提交
  14. 13 2月, 2010 4 次提交
    • G
      udp: remove redundant variable · 81d54ec8
      Gerrit Renker 提交于
      The variable 'copied' is used in udp_recvmsg() to emphasize that the passed
      'len' is adjusted to fit the actual datagram length. But the same can be
      done by adjusting 'len' directly. This patch thus removes the indirection.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      81d54ec8
    • S
      IPv6: remove trivial nested _bh suffix · 21809faf
      stephen hemminger 提交于
      Don't need to disable bottom half it is already down in the
      previous lock. Move some blank lines to group locking in same
      context.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21809faf
    • S
      IPv6: keep permanent addresses on admin down · dc2b99f7
      stephen hemminger 提交于
      Permanent IPV6 addresses should not be removed when the link is
      set to admin down, only when device is removed.
      
      When link is lost permanent addresses should be marked as tentative
      so that when link comes back they are subject to duplicate address
      detection (if DAD was enabled for that address).
      
      Other routing systems keep manually configured IPv6 addresses
      when link is set down.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dc2b99f7
    • P
      ipv6: fib: fix crash when changing large fib while dumping it · 2bec5a36
      Patrick McHardy 提交于
      When the fib size exceeds what can be dumped in a single skb, the
      dump is suspended and resumed once the last skb has been received
      by userspace. When the fib is changed while the dump is suspended,
      the walker might contain stale pointers, causing a crash when the
      dump is resumed.
      
      BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
      IP: [<ffffffffa01bce04>] fib6_walk_continue+0xbb/0x124 [ipv6]
      PGD 5347a067 PUD 65c7067 PMD 0
      Oops: 0000 [#1] PREEMPT SMP
      ...
      RIP: 0010:[<ffffffffa01bce04>]
      [<ffffffffa01bce04>] fib6_walk_continue+0xbb/0x124 [ipv6]
      ...
      Call Trace:
       [<ffffffff8104aca3>] ? mutex_spin_on_owner+0x59/0x71
       [<ffffffffa01bd105>] inet6_dump_fib+0x11b/0x1b9 [ipv6]
       [<ffffffff81371af4>] netlink_dump+0x5b/0x19e
       [<ffffffff8134f288>] ? consume_skb+0x28/0x2a
       [<ffffffff81373b69>] netlink_recvmsg+0x1ab/0x2c6
       [<ffffffff81372781>] ? netlink_unicast+0xfa/0x151
       [<ffffffff813483e0>] __sock_recvmsg+0x6d/0x79
       [<ffffffff81348a53>] sock_recvmsg+0xca/0xe3
       [<ffffffff81066d4b>] ? autoremove_wake_function+0x0/0x38
       [<ffffffff811ed1f8>] ? radix_tree_lookup_slot+0xe/0x10
       [<ffffffff810b3ed7>] ? find_get_page+0x90/0xa5
       [<ffffffff810b5dc5>] ? filemap_fault+0x201/0x34f
       [<ffffffff810ef152>] ? fget_light+0x2f/0xac
       [<ffffffff813519e7>] ? verify_iovec+0x4f/0x94
       [<ffffffff81349a65>] sys_recvmsg+0x14d/0x223
      
      Store the serial number when beginning to walk the fib and reload
      pointers when continuing to walk after a change occured. Similar
      to other dumping functions, this might cause unrelated entries to
      be missed when entries are deleted.
      Tested-by: NBen Greear <greearb@candelatech.com>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2bec5a36
  15. 12 2月, 2010 1 次提交
  16. 11 2月, 2010 1 次提交