1. 05 4月, 2011 1 次提交
  2. 02 4月, 2011 2 次提交
    • I
      tcp: len check is unnecessarily devastating, change to WARN_ON · 2fceec13
      Ilpo Järvinen 提交于
      All callers are prepared for alloc failures anyway, so this error
      can safely be boomeranged to the callers domain without super
      bad consequences. ...At worst the connection might go into a state
      where each RTO tries to (unsuccessfully) re-fragment with such
      a mis-sized value and eventually dies.
      Signed-off-by: NIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2fceec13
    • W
      sctp: malloc enough room for asconf-ack chunk · 2cab86be
      Wei Yongjun 提交于
      Sometime the ASCONF_ACK parameters can equal to the fourfold of
      ASCONF parameters, this only happend in some special case:
      
        ASCONF parameter is :
          Unrecognized Parameter (4 bytes)
        ASCONF_ACK parameter should be:
          Error Cause Indication parameter (8 bytes header)
           + Error Cause (4 bytes header)
             + Unrecognized Parameter (4bytes)
      
      Four 4bytes Unrecognized Parameters in ASCONF chunk will cause panic.
      
      Pid: 0, comm: swapper Not tainted 2.6.38-next+ #22 Bochs Bochs
      EIP: 0060:[<c0717eae>] EFLAGS: 00010246 CPU: 0
      EIP is at skb_put+0x60/0x70
      EAX: 00000077 EBX: c09060e2 ECX: dec1dc30 EDX: c09469c0
      ESI: 00000000 EDI: de3c8d40 EBP: dec1dc58 ESP: dec1dc2c
       DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
      Process swapper (pid: 0, ti=dec1c000 task=c09aef20 task.ti=c0980000)
      Stack:
       c09469c0 e1894fa4 00000044 00000004 de3c8d00 de3c8d00 de3c8d44 de3c8d40
       c09060e2 de25dd80 de3c8d40 dec1dc7c e1894fa4 dec1dcb0 00000040 00000004
       00000000 00000800 00000004 00000004 dec1dce0 e1895a2b dec1dcb4 de25d960
      Call Trace:
       [<e1894fa4>] ? sctp_addto_chunk+0x4e/0x89 [sctp]
       [<e1894fa4>] sctp_addto_chunk+0x4e/0x89 [sctp]
       [<e1895a2b>] sctp_process_asconf+0x32f/0x3d1 [sctp]
       [<e188d554>] sctp_sf_do_asconf+0xf8/0x173 [sctp]
       [<e1890b02>] sctp_do_sm+0xb8/0x159 [sctp]
       [<e18a2248>] ? sctp_cname+0x0/0x52 [sctp]
       [<e189392d>] sctp_assoc_bh_rcv+0xac/0xe3 [sctp]
       [<e1897d76>] sctp_inq_push+0x2d/0x30 [sctp]
       [<e18a21b2>] sctp_rcv+0x7a7/0x83d [sctp]
       [<c077a95c>] ? ipv4_confirm+0x118/0x125
       [<c073a970>] ? nf_iterate+0x34/0x62
       [<c074789d>] ? ip_local_deliver_finish+0x0/0x194
       [<c074789d>] ? ip_local_deliver_finish+0x0/0x194
       [<c0747992>] ip_local_deliver_finish+0xf5/0x194
       [<c074789d>] ? ip_local_deliver_finish+0x0/0x194
       [<c0747a6e>] NF_HOOK.clone.1+0x3d/0x44
       [<c0747ab3>] ip_local_deliver+0x3e/0x44
       [<c074789d>] ? ip_local_deliver_finish+0x0/0x194
       [<c074775c>] ip_rcv_finish+0x29f/0x2c7
       [<c07474bd>] ? ip_rcv_finish+0x0/0x2c7
       [<c0747a6e>] NF_HOOK.clone.1+0x3d/0x44
       [<c0747cae>] ip_rcv+0x1f5/0x233
       [<c07474bd>] ? ip_rcv_finish+0x0/0x2c7
       [<c071dce3>] __netif_receive_skb+0x310/0x336
       [<c07221f3>] netif_receive_skb+0x4b/0x51
       [<e0a4ed3d>] cp_rx_poll+0x1e7/0x29c [8139cp]
       [<c072275e>] net_rx_action+0x65/0x13a
       [<c0445a54>] __do_softirq+0xa1/0x149
       [<c04459b3>] ? __do_softirq+0x0/0x149
       <IRQ>
       [<c0445891>] ? irq_exit+0x37/0x72
       [<c040a7e9>] ? do_IRQ+0x81/0x95
       [<c07b3670>] ? common_interrupt+0x30/0x38
       [<c0428058>] ? native_safe_halt+0xa/0xc
       [<c040f5d7>] ? default_idle+0x58/0x92
       [<c0408fb0>] ? cpu_idle+0x96/0xb2
       [<c0797989>] ? rest_init+0x5d/0x5f
       [<c09fd90c>] ? start_kernel+0x34b/0x350
       [<c09fd0cb>] ? i386_start_kernel+0xba/0xc1
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2cab86be
  3. 01 4月, 2011 1 次提交
  4. 31 3月, 2011 3 次提交
  5. 30 3月, 2011 4 次提交
  6. 29 3月, 2011 11 次提交
  7. 28 3月, 2011 12 次提交
  8. 27 3月, 2011 1 次提交
    • O
      NFS: Ensure that rpc_release_resources_task() can be called twice. · a271c5a0
      OGAWA Hirofumi 提交于
      BUG: atomic_dec_and_test(): -1: atomic counter underflow at:
      Pid: 2827, comm: mount.nfs Not tainted 2.6.38 #1
      Call Trace:
       [<ffffffffa02223a0>] ? put_rpccred+0x44/0x14e [sunrpc]
       [<ffffffffa021bbe9>] ? rpc_ping+0x4e/0x58 [sunrpc]
       [<ffffffffa021c4a5>] ? rpc_create+0x481/0x4fc [sunrpc]
       [<ffffffffa022298a>] ? rpcauth_lookup_credcache+0xab/0x22d [sunrpc]
       [<ffffffffa028be8c>] ? nfs_create_rpc_client+0xa6/0xeb [nfs]
       [<ffffffffa028c660>] ? nfs4_set_client+0xc2/0x1f9 [nfs]
       [<ffffffffa028cd3c>] ? nfs4_create_server+0xf2/0x2a6 [nfs]
       [<ffffffffa0295d07>] ? nfs4_remote_mount+0x4e/0x14a [nfs]
       [<ffffffff810dd570>] ? vfs_kern_mount+0x6e/0x133
       [<ffffffffa029605a>] ? nfs_do_root_mount+0x76/0x95 [nfs]
       [<ffffffffa029643d>] ? nfs4_try_mount+0x56/0xaf [nfs]
       [<ffffffffa0297434>] ? nfs_get_sb+0x435/0x73c [nfs]
       [<ffffffff810dd59b>] ? vfs_kern_mount+0x99/0x133
       [<ffffffff810dd693>] ? do_kern_mount+0x48/0xd8
       [<ffffffff810f5b75>] ? do_mount+0x6da/0x741
       [<ffffffff810f5c5f>] ? sys_mount+0x83/0xc0
       [<ffffffff8100293b>] ? system_call_fastpath+0x16/0x1b
      
      Well, so, I think this is real bug of nfs codes somewhere. With some
      review, the code
      
      rpc_call_sync()
          rpc_run_task
              rpc_execute()
                  __rpc_execute()
                      rpc_release_task()
                          rpc_release_resources_task()
                              put_rpccred()                <= release cred
          rpc_put_task
              rpc_do_put_task()
                  rpc_release_resources_task()
                      put_rpccred()                        <= release cred again
      
      seems to be release cred unintendedly.
      Signed-off-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      a271c5a0
  9. 26 3月, 2011 1 次提交
  10. 25 3月, 2011 4 次提交
    • D
      ipv4: Fix nexthop caching wrt. scoping. · 37e826c5
      David S. Miller 提交于
      Move the scope value out of the fib alias entries and into fib_info,
      so that we always use the correct scope when recomputing the nexthop
      cached source address.
      Reported-by: NJulian Anastasov <ja@ssi.bg>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      37e826c5
    • D
      ipv4: Invalidate nexthop cache nh_saddr more correctly. · 436c3b66
      David S. Miller 提交于
      Any operation that:
      
      1) Brings up an interface
      2) Adds an IP address to an interface
      3) Deletes an IP address from an interface
      
      can potentially invalidate the nh_saddr value, requiring
      it to be recomputed.
      
      Perform the recomputation lazily using a generation ID.
      Reported-by: NJulian Anastasov <ja@ssi.bg>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      436c3b66
    • T
      Bluetooth: Fix warning with hci_cmd_timer · b77dcf84
      Thomas Gleixner 提交于
      After we made debugobjects working again, we got the following:
      
      WARNING: at lib/debugobjects.c:262 debug_print_object+0x8e/0xb0()
      Hardware name: System Product Name
      ODEBUG: free active (active state 0) object type: timer_list hint: hci_cmd_timer+0x0/0x60
      Pid: 2125, comm: dmsetup Tainted: G        W   2.6.38-06707-gc62b3898 #110375
      Call Trace:
       [<ffffffff8104700a>] warn_slowpath_common+0x7a/0xb0
       [<ffffffff810470b6>] warn_slowpath_fmt+0x46/0x50
       [<ffffffff812d3a5e>] debug_print_object+0x8e/0xb0
       [<ffffffff81bd8810>] ? hci_cmd_timer+0x0/0x60
       [<ffffffff812d4685>] debug_check_no_obj_freed+0x125/0x230
       [<ffffffff810f1063>] ? check_object+0xb3/0x2b0
       [<ffffffff810f3630>] kfree+0x150/0x190
       [<ffffffff81be4d06>] ? bt_host_release+0x16/0x20
       [<ffffffff81be4d06>] bt_host_release+0x16/0x20
       [<ffffffff813a1907>] device_release+0x27/0xa0
       [<ffffffff812c519c>] kobject_release+0x4c/0xa0
       [<ffffffff812c5150>] ? kobject_release+0x0/0xa0
       [<ffffffff812c61f6>] kref_put+0x36/0x70
       [<ffffffff812c4d37>] kobject_put+0x27/0x60
       [<ffffffff813a21f7>] put_device+0x17/0x20
       [<ffffffff81bda4f9>] hci_free_dev+0x29/0x30
       [<ffffffff81928be6>] vhci_release+0x36/0x70
       [<ffffffff810fb366>] fput+0xd6/0x1f0
       [<ffffffff810f8fe6>] filp_close+0x66/0x90
       [<ffffffff810f90a9>] sys_close+0x99/0xf0
       [<ffffffff81d4c96b>] system_call_fastpath+0x16/0x1b
      
      That timer was introduced with commit 6bd32326(Bluetooth: Use
      proper timer for hci command timout)
      
      Timer seems to be running when the thing is closed. Removing the timer
      unconditionally fixes the problem. And yes, it needs to be fixed
      before the HCI_UP check.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Tested-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      b77dcf84
    • A
      Bluetooth: delete hanging L2CAP channel · a0cc9a1b
      Andrei Emeltchenko 提交于
      Sometimes L2CAP connection remains hanging. Make sure that
      L2CAP channel is deleted.
      Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@nokia.com>
      Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
      a0cc9a1b