New: timer.c crash using WI-FI (current process: firefox)
Quoted 58 lines · On Fri, 22 Feb 2008 11:16:40 -0800 (PST) [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=10068
Summary: timer.c crash using WI-FI (current process: firefox) Product: Timers Version: 2.5 KernelVersion: 2.6.24.2 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: blocking Priority: P1 Component: Other AssignedTo: [email protected] ReportedBy: [email protected]Latest working kernel version: 2.6.19.2
Earliest failing kernel version: 2.6.24.2
Distribution: Debian Lenny/Sid
Hardware Environment: athlon XP 2400+ using a zd1211 device (driver zd1211rw) Software Environment: X11 with Gnome; crashed while using firefox (iceweasel)Problem Description:
System crashes completely. It seems related to wireless network usage, I've used my system several times without connecting the wifi device (and without any other network interface enabled).
I haven't found the problem on 2.6.19.2 kernel I think because zd1211rw driver didn't work for my card
Here's the log (not flushed to disk!!!)------------------------------
Kernel BUG at kernel/timer.c: 607! Invalid opcode: 0000 [#1] Modules linked in: cpufreq_stats nls_cp437 sbp2 scsi_mod loop zd1211rwieee80211softmac
parport_pcparport ohci1394snd_intel8x0ieee1394 sis900ehci_hcdide_cdcdrom fanasus_acpibacklight battery acPid 3239, comm: firefox-bin Not tainted (2.6.24.2 #1) EIP:0060 :[<c011e54b>] EFLAGS:00210007 CPU:0 EIP is at
cascade+0x3b/0x57
EAX:0 EBX:0 ECX:5 EDX:d9eb3ca4
ESI:5 EDI:c0485640 EBP:d9ecdf30 ESP:d9ecdf30 DS:007b ES:007b FS:0000 GS:0033 SS:0068...
Call trace
[<c011e6ad>] run_timer_softirq+0x55/0x141 [<c012b8e3>] tick_handle_periodic+0xf/0x54 [<c011bdcc>] __do_softirq+0x35/0x75 [<c011be2e>] do_softirq+022/0x26 [<c01055b0>] do_IRQ+0x58/0x6b [<c033b1a7>] schedule+0x1f0/0x20a [<c01045e7>] common_interrupt+0x23/0x28
Quoted 2 lines
Kernel Panic - not syncing: Fatal exception in interrupt
urgh.
Yes, it's probably a wireless driver bug. But look at the BUG_ON():
static int cascade(tvec_base_t *base, tvec_t *tv, int index)
{
/* cascade all the timers from tv up one level */
struct timer_list *timer, *tmp;
struct list_head tv_list;
list_replace_init(tv->vec + index, &tv_list);
/*
* We are removing _all_ timers from the list, so we
* don't have to detach them individually.
*/
list_for_each_entry_safe(timer, tmp, &tv_list, entry) {
BUG_ON(tbase_get_base(timer->base) != base);
internal_add_timer(base, timer);
}
return index;
}if we're going to detect some bug, we shold provide _some_ information telling the poor programmer what he did wrong! This one is very obscure.
Seems we found a timer on CPU A's list, but the timer thinks it's on timer B's list. Or not on a list at all.
Question is: what sequence of timer interace calls could have caused this to occur? And can we add a check for that bug at the time where it occurs, rather later on in the timer interrupt handler?
Quoted 67 lines · Oleg Nesterov
Quoted 58 lines · Andrew Morton
Quoted 25 lines · On Fri, 22 Feb 2008 11:16:40 -0800 (PST) [email protected] wrote:
Kernel BUG at kernel/timer.c: 607! Invalid opcode: 0000 [#1] Modules linked in: cpufreq_stats nls_cp437 sbp2 scsi_mod loop zd1211rwieee80211softmac
parport_pcparport ohci1394snd_intel8x0ieee1394 sis900ehci_hcdide_cdcdrom fanasus_acpibacklight battery acPid 3239, comm: firefox-bin Not tainted (2.6.24.2 #1) EIP:0060 :[<c011e54b>] EFLAGS:00210007 CPU:0 EIP is at
cascade+0x3b/0x57
EAX:0 EBX:0 ECX:5 EDX:d9eb3ca4
ESI:5 EDI:c0485640 EBP:d9ecdf30 ESP:d9ecdf30 DS:007b ES:007b FS:0000 GS:0033 SS:0068...
Call trace
[<c011e6ad>] run_timer_softirq+0x55/0x141 [<c012b8e3>] tick_handle_periodic+0xf/0x54 [<c011bdcc>] __do_softirq+0x35/0x75 [<c011be2e>] do_softirq+022/0x26 [<c01055b0>] do_IRQ+0x58/0x6b [<c033b1a7>] schedule+0x1f0/0x20a [<c01045e7>] common_interrupt+0x23/0x28Quoted 2 lines
Kernel Panic - not syncing: Fatal exception in interrupt
urgh.
Yes, it's probably a wireless driver bug. But look at the
BUG_ON():static int
cascade(tvec_base_t *base, tvec_t *tv, int index){ /* cascade all the timers from tv up one level */ struct timer_list *timer, *tmp; struct list_head tv_list; list_replace_init(tv->vec + index, &tv_list); /* * We are removing _all_ timers from the list, so we * don't have to detach them individually. */ list_for_each_entry_safe(timer, tmp, &tv_list, entry) { BUG_ON(tbase_get_base(timer->base) != base); internal_add_timer(base, timer); } return index; }if we're going to detect some bug, we shold provide _some_ information telling the poor programmer what he did wrong! This one is very obscure.
Quoted 6 lines
Seems we found a timer on CPU A's list, but the timer thinks it's on timer B's list. Or not on a list at all.
Question is: what sequence of timer interace calls could have caused this to occur? And can we add a check for that bug at the time where it occurs, rather later on in the timer interrupt handler?
Quoted 8 lines
Most probably the pending timer was corrupted. Say it was freed/reused without
del_timer(), or re-initialized.Marco, could you try this patch
http://bugzilla.kernel.org/attachment.cgi?id=14183?
Argh. It can't be applied because of
"time: clean hungarian notation from timers" commit a6fa8e5a6172a5a5bc06ed04f34e50b36c978127
Please find the re-diff below. hopefully it still works. but it doesn't like CONFIG_HOTPLUG_CPU.
Oleg.
include/linux/timer.h renamed from include/linux/timer.h~TMR_DBG +1 -0
@@ -8,6 +8,7 @@struct tvec_base ;struct timer_list { +void (*next_func)(unsigned long );struct list_head entry;unsigned long expires;
kernel/timer.c renamed from kernel/timer.c~TMR_DBG +31 -14
106 lines not on this page · raw message
Quoted 91 lines · Andrew Morton
Quoted 58 lines · On Fri, 22 Feb 2008 11:16:40 -0800 (PST) [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=10068
Summary: timer.c crash using WI-FI (current process: firefox) Product: Timers Version: 2.5 KernelVersion: 2.6.24.2 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: blocking Priority: P1 Component: Other AssignedTo: [email protected] ReportedBy: [email protected]Latest working kernel version: 2.6.19.2
Earliest failing kernel version: 2.6.24.2
Distribution: Debian Lenny/Sid
Hardware Environment: athlon XP 2400+ using a zd1211 device (driver zd1211rw) Software Environment: X11 with Gnome; crashed while using firefox (iceweasel)Problem Description:
System crashes completely. It seems related to wireless network usage, I've used my system several times without connecting the wifi device (and without any other network interface enabled).
I haven't found the problem on 2.6.19.2 kernel I think because zd1211rw driver didn't work for my card
Here's the log (not flushed to disk!!!)------------------------------
Kernel BUG at kernel/timer.c: 607! Invalid opcode: 0000 [#1] Modules linked in: cpufreq_stats nls_cp437 sbp2 scsi_mod loop zd1211rwieee80211softmac
parport_pcparport ohci1394snd_intel8x0ieee1394 sis900ehci_hcdide_cdcdrom fanasus_acpibacklight battery acPid 3239, comm: firefox-bin Not tainted (2.6.24.2 #1) EIP:0060 :[<c011e54b>] EFLAGS:00210007 CPU:0 EIP is at
cascade+0x3b/0x57
EAX:0 EBX:0 ECX:5 EDX:d9eb3ca4
ESI:5 EDI:c0485640 EBP:d9ecdf30 ESP:d9ecdf30 DS:007b ES:007b FS:0000 GS:0033 SS:0068...
Call trace
[<c011e6ad>] run_timer_softirq+0x55/0x141 [<c012b8e3>] tick_handle_periodic+0xf/0x54 [<c011bdcc>] __do_softirq+0x35/0x75 [<c011be2e>] do_softirq+022/0x26 [<c01055b0>] do_IRQ+0x58/0x6b [<c033b1a7>] schedule+0x1f0/0x20a [<c01045e7>] common_interrupt+0x23/0x28Quoted 2 lines
Kernel Panic - not syncing: Fatal exception in interrupt
urgh.
Yes, it's probably a wireless driver bug. But look at the
BUG_ON():static int
cascade(tvec_base_t *base, tvec_t *tv, int index){ /* cascade all the timers from tv up one level */ struct timer_list *timer, *tmp; struct list_head tv_list; list_replace_init(tv->vec + index, &tv_list); /* * We are removing _all_ timers from the list, so we * don't have to detach them individually. */ list_for_each_entry_safe(timer, tmp, &tv_list, entry) { BUG_ON(tbase_get_base(timer->base) != base); internal_add_timer(base, timer); } return index; }if we're going to detect some bug, we shold provide _some_ information telling the poor programmer what he did wrong! This one is very obscure.
Quoted 6 lines
Seems we found a timer on CPU A's list, but the timer thinks it's on timer B's list. Or not on a list at all.
Question is: what sequence of timer interace calls could have caused this to occur? And can we add a check for that bug at the time where it occurs, rather later on in the timer interrupt handler?
Most probably the pending timer was corrupted. Say it was freed/reused without del_timer(), or re-initialized.
Marco, could you try this patch
http://bugzilla.kernel.org/attachment.cgi?id=14183
?
see also http://bugzilla.kernel.org/attachment.cgi?id=14183
The Thomas's patch can also help, but if the pending timer was overwriten ->init_site could be dirtied too.
Oleg.