Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753144Ab1D0HLx (ORCPT ); Wed, 27 Apr 2011 03:11:53 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:51319 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295Ab1D0HLv convert rfc822-to-8bit (ORCPT ); Wed, 27 Apr 2011 03:11:51 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Eq0V1KoCu8hUKI+f+2nMhXW2RJ27sWx5JpgI6h6EIfSm5Idk0Wci5Uiau/jb4GAIKR gBmwI7BJcliux7v2KyNfQCn7z75Xmm1mYcwAI7evjtX8SxNMEpR/JCLRtXv6ao3PbkYw pjKalmheSx2WMrt6jWNRlgKWeCyGgPDts4DtA= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 27 Apr 2011 15:11:50 +0800 Message-ID: Subject: Re: kernel panic after unplug usb bluetooth dongle From: Dave Young To: Yong Zhang Cc: Bluettooth Linux , Linux Kernel Mailing List , Thomas Gleixner Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5645 Lines: 128 On Wed, Apr 27, 2011 at 2:41 PM, Yong Zhang wrote: > On Wed, Apr 27, 2011 at 2:35 PM, Dave Young wrote: >> Hi, >> >> Unplug usb bluetooth dongle make kernel panic as below. Thomas, any >> idea about it? >> >> usb 6-1: USB disconnect, device number 3 >> btusb_intr_complete: hci0 urb ffff8801275bb9c0 failed to resubmit (19) >> btusb_bulk_complete: hci0 urb ffff8801275bb540 failed to resubmit (19) >> btusb_bulk_complete: hci0 urb ffff8801275bb6c0 failed to resubmit (19) >> btusb_send_frame: hci0 urb ffff8801275bb6c0 submission failed >> BUG: unable to handle kernel NULL pointer dereference at           (null) >> IP: [] get_next_timer_interrupt+0x13d/0x21d > > Seems a hrtimer is freed abnormaly. > > Could you try to build your kernel with CONFIG_DEBUG_OBJECTS_TIMERS=y > Tried, did not see any new stuff in dmesg. > Thanks, > Yong > >> PGD 12609c067 PUD 1260b5067 PMD 0 >> Oops: 0000 [#1] SMP >> last sysfs file: /sys/devices/virtual/dmi/id/chassis_type >> CPU 0 >> Modules linked in: tun rfcomm bnep snd_pcm_oss snd_mixer_oss kvm_intel >> kvm btusb bluetooth snd_hda_codec_analog snd_hda_intel dell_wmi >> sparse_keymap snd_hda_codec snd_hwdep e1000e snd_pcm wmi snd_timer >> 8139too rfkill snd_page_alloc >> >> Pid: 0, comm: swapper Not tainted 2.6.39-rc5 #224 Dell Inc. OptiPlex >> 780                 /0V4W66 >> RIP: 0010:[]  [] >> get_next_timer_interrupt+0x13d/0x21d >> RSP: 0018:ffffffff817dddf8  EFLAGS: 00010097 >> RAX: 0000000000000000 RBX: ffffffff819adb80 RCX: 000000000000003e >> RDX: 0000000000000000 RSI: 000000000000003e RDI: 0000000000000000 >> RBP: ffffffff817dde58 R08: ffffffff817dde08 R09: 00000000010000fe >> R10: 0000000000000000 R11: 0000000000000001 R12: 000000010000fdf7 >> R13: ffffffff819aefb0 R14: ffffffff819aebd0 R15: 0000000000000040 >> FS:  0000000000000000(0000) GS:ffff880127c00000(0000) knlGS:0000000000000000 >> CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b >> CR2: 0000000000000000 CR3: 000000012605a000 CR4: 00000000000406b0 >> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 >> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 >> Process swapper (pid: 0, threadinfo ffffffff817dc000, task ffffffff81800020) >> Stack: >>  ffffffff817dde28 ffffffff8105c769 ffffffff819aebd0 ffffffff819aefd0 >>  ffffffff819af3d0 ffffffff819af7d0 ffffffff817dde48 000000000000ccc0 >>  ffff880127c0e2a0 00000000a983c6e8 0000000000000000 000000010000fdf7 >> Call Trace: >>  [] ? sched_clock_local+0x1c/0x80 >>  [] tick_nohz_stop_sched_tick+0x370/0x390 >>  [] cpu_idle+0x2f/0x9a >>  [] rest_init+0xad/0xb1 >>  [] ? csum_partial_copy_generic+0x16c/0x16c >>  [] start_kernel+0x399/0x3a4 >>  [] ? early_idt_handlers+0x140/0x140 >>  [] x86_64_start_reservations+0xb6/0xba >>  [] x86_64_start_kernel+0x100/0x10f >> Code: 04 4a 8b 14 30 4d 8d 2c 06 eb 20 4c 89 d0 f6 42 18 01 75 11 48 >> 8b 42 10 41 bb 01 00 00 00 4c 39 d0 49 0f 49 c2 48 89 fa 49 89 c2 >>  8b 3a 4c 39 ea 0f 18 0f 75 d5 45 85 db 74 10 85 f6 74 04 39 >> RIP  [] get_next_timer_interrupt+0x13d/0x21d >>  RSP >> CR2: 0000000000000000 >> ---[ end trace 5621bb82abfeb30f ]--- >> Kernel panic - not syncing: Attempted to kill the idle task! >> Pid: 0, comm: swapper Tainted: G      D     2.6.39-rc5 #224 >> Call Trace: >>  [] panic+0xb7/0x1c9 >>  [] do_exit+0xb6/0x7b3 >>  [] ? kmsg_dump+0x120/0x12f >>  [] ? kmsg_dump+0x91/0x12f >>  [] oops_end+0xc1/0xc9 >>  [] no_context+0x1f3/0x202 >>  [] __bad_area_nosemaphore+0x1bb/0x1e1 >>  [] ? mark_lock+0x22/0x261 >>  [] ? __lock_acquire+0xe05/0xe14 >>  [] bad_area_nosemaphore+0xe/0x10 >>  [] do_page_fault+0x20b/0x421 >>  [] ? __lock_acquire+0xe05/0xe14 >>  [] ? __lock_acquire+0xe05/0xe14 >>  [] ? _raw_spin_unlock_irq+0x2b/0x37 >>  [] ? trace_hardirqs_off_thunk+0x3a/0x3c >>  [] page_fault+0x25/0x30 >>  [] ? get_next_timer_interrupt+0x13d/0x21d >>  [] ? get_next_timer_interrupt+0x49/0x21d >>  [] ? sched_clock_local+0x1c/0x80 >>  [] tick_nohz_stop_sched_tick+0x370/0x390 >>  [] cpu_idle+0x2f/0x9a >>  [] rest_init+0xad/0xb1 >>  [] ? csum_partial_copy_generic+0x16c/0x16c >>  [] start_kernel+0x399/0x3a4 >>  [] ? early_idt_handlers+0x140/0x140 >>  [] x86_64_start_reservations+0xb6/0xba >>  [] x86_64_start_kernel+0x100/0x10f >> >> -- >> Regards >> dave >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at  http://vger.kernel.org/majordomo-info.html >> Please read the FAQ at  http://www.tux.org/lkml/ >> > > > > -- > Only stand for myself > -- Regards dave -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/