2002-10-31 11:01:56

by Gregoire Favre

[permalink] [raw]
Subject: 2.5.45 : kernel BUG at kernel/workqueue.c:69! (ISDN?)

Hello,

I got this:

serio: i8042 KBD port at 0x60,0x64 irq 1
ISDN subsystem initialized
PPP BSD Compression module registered
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.5 (kernel)
HiSax: Layer1 Revision 2.41.6.5
HiSax: Layer2 Revision 2.25.6.4
HiSax: TeiMgr Revision 2.17.6.3
HiSax: Layer3 Revision 2.17.6.5
HiSax: LinkLayer Revision 2.51.6.6
HiSax: Approval certification failed because of
HiSax: unauthorized source code changes
get_drv 0: 0 -> 1
HiSax: Card 1 Protocol NONE Id=HiSax (0)
HiSax: AVM PCI driver Rev. 1.22.6.6
FritzPnP: no ISA PnP present
AVM PCI: stat 0x2020a
AVM PCI: Class A Rev 2
HiSax: AVM Fritz!PCI config irq:16 base:0xB800
AVM PCI: ISAC version (0): 2086/2186 V1.1
AVM Fritz PnP/PCI: IRQ 16 count 0
get_drv 0: 1 -> 2
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
put_drv 0: 2 -> 1
------------[ cut here ]------------
kernel BUG at kernel/workqueue.c:69!
invalid operand: 0000

CPU: 0
EIP: 0060:[<c0129775>] Not tainted
EFLAGS: 00010213
eax: 00000000 ebx: dff8e000 ecx: c03c90d4 edx: c17e3958
esi: c17e3958 edi: c17e395c ebp: dffa2280 esp: dff8febc
ds: 0068 es: 0068 ss: 0068
Process swapper (pid: 1, threadinfo=dff8e000 task=dff8c080)
Stack: 00000004 c17e3000 dff8e000 00000000 c0413bfa c17e3000 00000002 00000052
c17e3000 00000003 c02e7018 c17e3000 00000003 c17e30be c17e3000 c04127ff
c17e3000 000000f2 00000000 c03ad64b c17e3000 c17e3000 dff8ff92 c17e30be
Call Trace: [<c02e7018>] [<c011ba65>] [<c010506f>] [<c0105032>] [<c01055a1>]
Code: 0f 0b 45 00 32 32 38 c0 eb 8b 90 83 ec 10 89 7c 24 08 89 1c
<0>Kernel panic: Attempted to kill init!
Debug: sleeping function called from illegal context at include/linux/rwsem.h:43
Call Trace: [<c016339a>] [<c01633d9>] [<c0147985>] [<c011afec>] [<c011ece0>] [<c0108506>] [<c01083c5>] [<c010856d>] [<c0129775>] [<c02d7e54>] [<c021cc3b>] [<c0107e59>] [<c02d0068>] [<c0129775>] [<c02e7018>] [<c011ba65>] [<c010506f>] [<c0105032>] [<c01055a1>]

which gives with ksymoops -m /usr/src/linux-2.5/System.map -v /usr/src/linux-2.5/vmlinux -K -L -O:

ksymoops 2.4.5 on i686 2.4.20-pre10. Options used
-v /usr/src/linux-2.5/vmlinux (specified)
-K (specified)
-L (specified)
-O (specified)
-m /usr/src/linux-2.5/System.map (specified)

kernel BUG at kernel/workqueue.c:69!
invalid operand: 0000
CPU: 0
EIP: 0060:[<c0129775>] Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010213
eax: 00000000 ebx: dff8e000 ecx: c03c90d4 edx: c17e3958
esi: c17e3958 edi: c17e395c ebp: dffa2280 esp: dff8febc
ds: 0068 es: 0068 ss: 0068
Stack: 00000004 c17e3000 dff8e000 00000000 c0413bfa c17e3000 00000002 00000052
c17e3000 00000003 c02e7018 c17e3000 00000003 c17e30be c17e3000 c04127ff
c17e3000 000000f2 00000000 c03ad64b c17e3000 c17e3000 dff8ff92 c17e30be
Call Trace: [<c02e7018>] [<c011ba65>] [<c010506f>] [<c0105032>] [<c01055a1>]
Code: 0f 0b 45 00 32 32 38 c0 eb 8b 90 83 ec 10 89 7c 24 08 89 1c


>>EIP; c0129775 <queue_work+91/9c> <=====

>>ebx; dff8e000 <END_OF_CODE+1fadd3ec/????>
>>ecx; c03c90d4 <console_sem+0/10>
>>edx; c17e3958 <END_OF_CODE+1332d44/????>
>>esi; c17e3958 <END_OF_CODE+1332d44/????>
>>edi; c17e395c <END_OF_CODE+1332d48/????>
>>ebp; dffa2280 <END_OF_CODE+1faf166c/????>
>>esp; dff8febc <END_OF_CODE+1fadf2a8/????>

Trace; c02e7018 <AVM_card_msg+6a/d0>
Trace; c011ba65 <release_console_sem+cb/ce>
Trace; c010506f <init+3d/15a>
Trace; c0105032 <init+0/15a>
Trace; c01055a1 <kernel_thread_helper+5/c>

Code; c0129775 <queue_work+91/9c>
00000000 <_EIP>:
Code; c0129775 <queue_work+91/9c> <=====
0: 0f 0b ud2a <=====
Code; c0129777 <queue_work+93/9c>
2: 45 inc %ebp
Code; c0129778 <queue_work+94/9c>
3: 00 32 add %dh,(%edx)
Code; c012977a <queue_work+96/9c>
5: 32 38 xor (%eax),%bh
Code; c012977c <queue_work+98/9c>
7: c0 eb 8b shr $0x8b,%bl
Code; c012977f <queue_work+9b/9c>
a: 90 nop
Code; c0129780 <delayed_work_timer_fn+0/86>
b: 83 ec 10 sub $0x10,%esp
Code; c0129783 <delayed_work_timer_fn+3/86>
e: 89 7c 24 08 mov %edi,0x8(%esp,1)
Code; c0129787 <delayed_work_timer_fn+7/86>
12: 89 1c 00 mov %ebx,(%eax,%eax,1)

<0>Kernel panic: Attempted to kill init!
Call Trace: [<c016339a>] [<c01633d9>] [<c0147985>] [<c011afec>] [<c011ece0>] [<c0108506>] [<c01083c5>] [<c010856d>] [<c0129775>] [<c02d7e54>] [<c021cc3b>] [<c0107e59>] [<c02d0068>] [<c0129775>] [<c02e7018>] [<c011ba65>] [<c010506f>] [<c0105032>] [<c01055a1>]
Warning (Oops_read): Code line not seen, dumping what data is available


Trace; c016339a <get_super_to_sync+80/aa>
Trace; c01633d9 <sync_inodes+15/90>
Trace; c0147985 <sys_sync+1b/32>
Trace; c011afec <panic+100/106>
Trace; c011ece0 <complete_and_exit+0/1c>
Trace; c0108506 <do_invalid_op+0/6e>
Trace; c01083c5 <die+87/8e>
Trace; c010856d <do_invalid_op+67/6e>
Trace; c0129775 <queue_work+91/9c>
Trace; c02d7e54 <VHiSax_putstatus+19a/218>
Trace; c021cc3b <vsnprintf+20d/460>
Trace; c0107e59 <error_code+2d/38>
Trace; c02d0068 <ipppd_write+22/1a4>
Trace; c0129775 <queue_work+91/9c>
Trace; c02e7018 <AVM_card_msg+6a/d0>
Trace; c011ba65 <release_console_sem+cb/ce>
Trace; c010506f <init+3d/15a>
Trace; c0105032 <init+0/15a>
Trace; c01055a1 <kernel_thread_helper+5/c>

lspci -v:
00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 11)
Flags: bus master, fast devsel, latency 0
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [e4] #09 [a104]
Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 11) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, fast devsel, latency 32
Bus: primary=00, secondary=01, subordinate=02, sec-latency=32
Memory behind bridge: dec00000-dfdfffff
Prefetchable memory behind bridge: da800000-de9fffff

00:1d.0 USB Controller: Intel Corp.: Unknown device 24c2 (rev 01) (prog-if 00 [UHCI])
Subsystem: Micro-star International Co Ltd: Unknown device 3982
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at d800 [size=32]

00:1d.1 USB Controller: Intel Corp.: Unknown device 24c4 (rev 01) (prog-if 00 [UHCI])
Subsystem: Micro-star International Co Ltd: Unknown device 3982
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at dc00 [size=32]

00:1d.7 USB Controller: Intel Corp.: Unknown device 24cd (rev 01) (prog-if 20 [EHCI])
Subsystem: Micro-star International Co Ltd: Unknown device 3981
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at dfffbc00 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] #0a [2080]

00:1e.0 PCI bridge: Intel Corp. 82801BA/CA PCI Bridge (rev 81) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=32
I/O behind bridge: 0000b000-0000bfff
Memory behind bridge: dfe00000-dfefffff
Prefetchable memory behind bridge: dea00000-deafffff

00:1f.0 ISA bridge: Intel Corp.: Unknown device 24c0 (rev 01)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: Micro-star International Co Ltd: Unknown device 3982
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at <unassigned> [size=8]
I/O ports at <unassigned> [size=4]
I/O ports at <unassigned> [size=8]
I/O ports at <unassigned> [size=4]
I/O ports at fc00 [size=16]
Memory at 20000000 (32-bit, non-prefetchable) [size=1K]

00:1f.3 SMBus: Intel Corp.: Unknown device 24c3 (rev 01)
Subsystem: Micro-star International Co Ltd: Unknown device 3982
Flags: medium devsel, IRQ 17
I/O ports at 0c00 [size=32]

00:1f.5 Multimedia audio controller: Intel Corp.: Unknown device 24c5 (rev 01)
Subsystem: Micro-star International Co Ltd: Unknown device 3982
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at d400 [size=256]
I/O ports at d000 [size=64]
Memory at dffffe00 (32-bit, non-prefetchable) [size=512]
Memory at dffffd00 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP (rev 01) (prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. Millennium G550 Dual Head DDR 32Mb
Flags: bus master, medium devsel, latency 32, IRQ 16
Memory at dc000000 (32-bit, prefetchable) [size=32M]
Memory at dfdfc000 (32-bit, non-prefetchable) [size=16K]
Memory at df000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at dfdc0000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Capabilities: [f0] AGP version 2.0

03:00.0 Network controller: AVM Audiovisuelles MKTG & Computer System GmbH A1 ISDN [Fritz] (rev 02)
Subsystem: AVM Audiovisuelles MKTG & Computer System GmbH FRITZ!Card ISDN Controller
Flags: medium devsel, IRQ 16
Memory at dfefefe0 (32-bit, non-prefetchable) [size=32]
I/O ports at b800 [size=32]

03:01.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
Subsystem: Technotrend Systemtechnik GmbH: Unknown device 0000
Flags: bus master, medium devsel, latency 32, IRQ 17
Memory at dfefec00 (32-bit, non-prefetchable) [size=512]

03:02.0 SCSI storage controller: Adaptec AIC-7892A U160/m (rev 02)
Subsystem: Adaptec 29160LP Low Profile Ultra160 SCSI Controller
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 18
BIST result: 00
I/O ports at bc00 [disabled] [size=256]
Memory at dfeff000 (64-bit, non-prefetchable) [size=4K]
Expansion ROM at dfec0000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2

03:03.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U
Flags: bus master, medium devsel, latency 32, IRQ 19
I/O ports at b400 [disabled] [size=256]
Memory at dfefd000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at dfee0000 [disabled] [size=64K]

03:04.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
Subsystem: Technotrend Systemtechnik GmbH: Unknown device 0000
Flags: bus master, medium devsel, latency 32, IRQ 16
Memory at dfefea00 (32-bit, non-prefetchable) [size=512]

03:08.0 Ethernet controller: Intel Corp.: Unknown device 103a (rev 81)
Subsystem: Intel Corp.: Unknown device 1039
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at dfef8000 (32-bit, non-prefetchable) [size=4K]
I/O ports at b000 [size=64]
Capabilities: [dc] Power Management version 2

and ver_linux:
Gnu C 3.2
Gnu make 3.79.1
util-linux 2.11w
mount 2.11w
modutils 2.4.19
e2fsprogs 1.27ea
reiserfsprogs 3.6.3
xfsprogs 2.0.6
PPP 2.4.1
isdn4k-utils 3.1pre1
Linux C Library 2.2.5
Dynamic linker (ldd) 2.2.5
Procps 2.0.10
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 4.5.2

Should I tell anything else? I know that ISDN isn't working in 2.5 for
some times, (even don't compil...) but as it got some changes I wanted
to try ;-)

Thank you and have a great day,

Gr?goire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]


2002-10-31 20:06:54

by Kai Germaschewski

[permalink] [raw]
Subject: Re: 2.5.45 : kernel BUG at kernel/workqueue.c:69! (ISDN?)

On Thu, 31 Oct 2002, Gregoire Favre wrote:

> ------------[ cut here ]------------
> kernel BUG at kernel/workqueue.c:69!

Well, I thought I had all of these fixed...

> CPU: 0
> EIP: 0060:[<c0129775>] Not tainted
> EFLAGS: 00010213
> eax: 00000000 ebx: dff8e000 ecx: c03c90d4 edx: c17e3958
> esi: c17e3958 edi: c17e395c ebp: dffa2280 esp: dff8febc
> ds: 0068 es: 0068 ss: 0068
> Process swapper (pid: 1, threadinfo=dff8e000 task=dff8c080)
> Stack: 00000004 c17e3000 dff8e000 00000000 c0413bfa c17e3000 00000002 00000052
> c17e3000 00000003 c02e7018 c17e3000 00000003 c17e30be c17e3000 c04127ff
> c17e3000 000000f2 00000000 c03ad64b c17e3000 c17e3000 dff8ff92 c17e30be
> Call Trace: [<c02e7018>] [<c011ba65>] [<c010506f>] [<c0105032>] [<c01055a1>]
> Code: 0f 0b 45 00 32 32 38 c0 eb 8b 90 83 ec 10 89 7c 24 08 89 1c
> <0>Kernel panic: Attempted to kill init!
> Debug: sleeping function called from illegal context at include/linux/rwsem.h:43
> Call Trace: [<c016339a>] [<c01633d9>] [<c0147985>] [<c011afec>] [<c011ece0>] [<c0108506>] [<c01083c5>] [<c010856d>] [<c0129775>] [<c02d7e54>] [<c021cc3b>] [<c0107e59>] [<c02d0068>] [<c0129775>] [<c02e7018>] [<c011ba65>] [<c010506f>] [<c0105032>] [<c01055a1>]

> Trace; c02e7018 <AVM_card_msg+6a/d0>
> Trace; c011ba65 <release_console_sem+cb/ce>
> Trace; c010506f <init+3d/15a>
> Trace; c0105032 <init+0/15a>
> Trace; c01055a1 <kernel_thread_helper+5/c>

I cannot really make much sense of the traces, though, are you sure
System.map matched the kernel where the oops happened? You might want to
select CONFIG_KALLSYMS, that guarantees correct resolving of symbols
without the need to run the oops through ksymoops.

--Kai


2002-10-31 21:48:21

by Gregoire Favre

[permalink] [raw]
Subject: Re: 2.5.45 : kernel BUG at kernel/workqueue.c:69! (ISDN?)

On Thu, Oct 31, 2002 at 02:13:14PM -0600, Kai Germaschewski wrote:

> > kernel BUG at kernel/workqueue.c:69!

> Well, I thought I had all of these fixed...

Oops: sorry for reporting...

> I cannot really make much sense of the traces, though, are you sure
> System.map matched the kernel where the oops happened? You might want to
> select CONFIG_KALLSYMS, that guarantees correct resolving of symbols
> without the need to run the oops through ksymoops.

If the insmoding of the module isn't enough, I'll recompil with
CONFIG_KALLSYMS:

kernel BUG at kernel/workqueue.c:69!
invalid operand: 0000
hisax dvb-ttpci alps_bsrv2 binfmt_misc floppy alps_bsru6 eepro100 mii ext2 ehci-hcd usbcore
CPU: 0
EIP: 0060:[<c0129775>] Not tainted
EFLAGS: 00010213
eax: 00000000 ebx: c77b6000 ecx: 00000001 edx: c9d7e958
esi: c9d7e958 edi: c9d7e95c ebp: dffa2280 esp: c77b7e04
ds: 0068 es: 0068 ss: 0068
Process insmod (pid: 4345, threadinfo=c77b6000 task=c8528680)
Stack: 00000004 c9d7e000 c77b6000 00011bd7 e38b227a c9d7e000 00000002 00000052
c9d7e000 00000003 e38af95c c9d7e000 00000003 c9d7e0be c9d7e000 e389f9e3
c9d7e000 000000f2 00000000 e38b3169 c9d7e000 c9d7e000 c77b7eda c9d7e0be
Call Trace: [<e38b227a>] [<e38af95c>] [<e389f9e3>] [<e38b3169>] [<e389fe0b>] [<e38b317e>] [<e38b7e48>] [<e38b7e64>] [<e38a0005>] [<e38b7e48>] [<e38b6042>] [<e38a2287>] [<e38b316f>] [<e38b7e6a>] [<e38a0550>] [<e38b3229>] [<c011c895>] [<e389f060>] [<e389f060>] [<c0107457>]
Code: 0f 0b 45 00 98 0e 37 c0 eb 8b 90 83 ec 10 89 7c 24 08 89 1c
<6>note: insmod[4345] exited with preempt_count 2
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1

ksymoops 2.4.5 on i686 2.5.45. Options used
-V (default)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.5.45/ (default)
-m /boot/System.map-2.5.45 (default)

Warning: You did not tell me where to find symbol information. I will
assume that the log matches the kernel and modules that are running
right now and I'll use the default options above for symbol resolution.
If the current kernel and/or modules do not match the log, you can get
more accurate output by telling me the kernel version and where to find
map, modules, ksyms etc. ksymoops -h explains the options.

SGI XFS CVS-09/15/02:17 with no debug enabled
Call Trace: [<c013609a>] [<c013613c>] [<c013640a>] [<c013651c>] [<c0184ad0>] [<c0184bcd>] [<c0184df8>] [<c0210000>] [<c02cf7d7>] [<c02cf3cd>] [<c0117e04>] [<c02cdb83>] [<e389fca9>] [<e38b7e48>] [<e38b7e64>] [<e38a0005>] [<e38b7e48>] [<e38b6042>] [<e38a2287>] [<e38b316f>] [<e38b7e6a>] [<e38a0550>] [<e38b3229>] [<c011c895>] [<e389f060>] [<e389f060>] [<c0107457>]
Warning (Oops_read): Code line not seen, dumping what data is available


Trace; c013609a <kmem_flagcheck+5e/60>
Trace; c013613c <cache_grow+a0/224>
Trace; c013640a <cache_alloc_refill+14a/1b4>
Trace; c013651c <kmem_cache_alloc+40/42>
Trace; c0184ad0 <devfsd_notify_de+58/fc>
Trace; c0184bcd <devfsd_notify+59/86>
Trace; c0184df8 <devfs_register+1fe/350>
Trace; c0210000 <xfs_write+8a/666>
Trace; c02cf7d7 <isdn_register_devfs+71/86>
Trace; c02cf3cd <isdn_add_channels+97/b4>
Trace; c0117e04 <default_wake_function+32/3e>
Trace; c02cdb83 <register_isdn+11f/1c6>
Trace; e389fca9 <[hisax]checkcard+1cb/41a>
Trace; e38b7e48 <[hisax]cards+0/0>
Trace; e38b7e64 <[hisax]HiSaxID+0/8>
Trace; e38a0005 <[hisax]HiSax_inithardware+cd/1a4>
Trace; e38b7e48 <[hisax]cards+0/0>
Trace; e38b6042 <[hisax].rodata.end+3217/4f75>
Trace; e38a2287 <[hisax]Isdnl1New+9b/b6>
Trace; e38b316f <[hisax].rodata.end+344/4f75>
Trace; e38b7e6a <[hisax]HiSaxID+6/8>
Trace; e38a0550 <[hisax]HiSax_init+186/302>
Trace; e38b3229 <[hisax].rodata.end+3fe/4f75>
Trace; c011c895 <sys_init_module+4eb/62e>
Trace; e389f060 <[hisax]HiSax_getrev+0/0>
Trace; e389f060 <[hisax]HiSax_getrev+0/0>
Trace; c0107457 <syscall_call+7/b>

kernel BUG at kernel/workqueue.c:69!
invalid operand: 0000
CPU: 0
EIP: 0060:[<c0129775>] Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010213
eax: 00000000 ebx: c77b6000 ecx: 00000001 edx: c9d7e958
esi: c9d7e958 edi: c9d7e95c ebp: dffa2280 esp: c77b7e04
ds: 0068 es: 0068 ss: 0068
Stack: 00000004 c9d7e000 c77b6000 00011bd7 e38b227a c9d7e000 00000002 00000052
c9d7e000 00000003 e38af95c c9d7e000 00000003 c9d7e0be c9d7e000 e389f9e3
c9d7e000 000000f2 00000000 e38b3169 c9d7e000 c9d7e000 c77b7eda c9d7e0be
Call Trace: [<e38b227a>] [<e38af95c>] [<e389f9e3>] [<e38b3169>] [<e389fe0b>] [<e38b317e>] [<e38b7e48>] [<e38b7e64>] [<e38a0005>] [<e38b7e48>] [<e38b6042>] [<e38a2287>] [<e38b316f>] [<e38b7e6a>] [<e38a0550>] [<e38b3229>] [<c011c895>] [<e389f060>] [<e389f060>] [<c0107457>]
Code: 0f 0b 45 00 98 0e 37 c0 eb 8b 90 83 ec 10 89 7c 24 08 89 1c


>>EIP; c0129775 <queue_work+91/9c> <=====

>>ebx; c77b6000 <_end+73205ec/2245264c>
>>edx; c9d7e958 <_end+98e8f44/2245264c>
>>esi; c9d7e958 <_end+98e8f44/2245264c>
>>edi; c9d7e95c <_end+98e8f48/2245264c>
>>ebp; dffa2280 <_end+1fb0c86c/2245264c>
>>esp; c77b7e04 <_end+73223f0/2245264c>

Trace; e38b227a <[hisax]clear_pending_isac_ints+f2/13e>
Trace; e38af95c <[hisax]AVM_card_msg+6a/d0>
Trace; e389f9e3 <[hisax]init_card+b9/1b4>
Trace; e38b3169 <[hisax].rodata.end+33e/4f75>
Trace; e389fe0b <[hisax]checkcard+32d/41a>
Trace; e38b317e <[hisax].rodata.end+353/4f75>
Trace; e38b7e48 <[hisax]cards+0/0>
Trace; e38b7e64 <[hisax]HiSaxID+0/8>
Trace; e38a0005 <[hisax]HiSax_inithardware+cd/1a4>
Trace; e38b7e48 <[hisax]cards+0/0>
Trace; e38b6042 <[hisax].rodata.end+3217/4f75>
Trace; e38a2287 <[hisax]Isdnl1New+9b/b6>
Trace; e38b316f <[hisax].rodata.end+344/4f75>
Trace; e38b7e6a <[hisax]HiSaxID+6/8>
Trace; e38a0550 <[hisax]HiSax_init+186/302>
Trace; e38b3229 <[hisax].rodata.end+3fe/4f75>
Trace; c011c895 <sys_init_module+4eb/62e>
Trace; e389f060 <[hisax]HiSax_getrev+0/0>
Trace; e389f060 <[hisax]HiSax_getrev+0/0>
Trace; c0107457 <syscall_call+7/b>

Code; c0129775 <queue_work+91/9c>
00000000 <_EIP>:
Code; c0129775 <queue_work+91/9c> <=====
0: 0f 0b ud2a <=====
Code; c0129777 <queue_work+93/9c>
2: 45 inc %ebp
Code; c0129778 <queue_work+94/9c>
3: 00 98 0e 37 c0 eb add %bl,0xebc0370e(%eax)
Code; c012977e <queue_work+9a/9c>
9: 8b 90 83 ec 10 89 mov 0x8910ec83(%eax),%edx
Code; c0129784 <delayed_work_timer_fn+4/86>
f: 7c 24 jl 35 <_EIP+0x35> c01297aa <delayed_work_timer_fn+2a/86>
Code; c0129786 <delayed_work_timer_fn+6/86>
11: 08 89 1c 00 00 00 or %cl,0x1c(%ecx)

Thank you very much,

Gr?goire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

2002-10-31 22:18:03

by Kai Germaschewski

[permalink] [raw]
Subject: Re: 2.5.45 : kernel BUG at kernel/workqueue.c:69! (ISDN?)

On Thu, 31 Oct 2002, Gregoire Favre wrote:

> On Thu, Oct 31, 2002 at 02:13:14PM -0600, Kai Germaschewski wrote:
>
> > > kernel BUG at kernel/workqueue.c:69!
>
> > Well, I thought I had all of these fixed...
>
> Oops: sorry for reporting...

Well, since I obviously hadn't, thanks for reporting this ;)

These traces still have a lot of weird things in it, but I think I figured
out what went wrong now. As a workaround, the following should do.

===== drivers/isdn/hisax/avm_pci.c 1.11 vs edited =====
--- 1.11/drivers/isdn/hisax/avm_pci.c Tue Oct 29 19:50:48 2002
+++ edited/drivers/isdn/hisax/avm_pci.c Thu Oct 31 16:19:26 2002
@@ -731,10 +731,10 @@
release_region(cs->hw.avm.cfg_reg, 32);
return(0);
case CARD_INIT:
- clear_pending_isac_ints(cs);
initisac(cs);
- clear_pending_hdlc_ints(cs);
+ clear_pending_isac_ints(cs);
inithdlc(cs);
+ clear_pending_hdlc_ints(cs);
outb(AVM_STATUS0_DIS_TIMER | AVM_STATUS0_RES_TIMER,
cs->hw.avm.cfg_reg + 2);
WriteISAC(cs, ISAC_MASK, 0);

Anyway, actually, this driver has been superseded by hisax_fcpcipnp, so
I'd prefer if you used the new driver ("modprobe hisax_fcpcipnp", no
parameters necessary), to find bugs there. Also, be advised that this is
not the last bug you'll find in current 2.5 ISDN, but I'll be thankful for
any reports and testing ;)

--Kai


2002-10-31 22:32:04

by Gregoire Favre

[permalink] [raw]
Subject: Re: 2.5.45 : kernel BUG at kernel/workqueue.c:69! (ISDN?)

On Thu, Oct 31, 2002 at 04:24:27PM -0600, Kai Germaschewski wrote:

> Well, since I obviously hadn't, thanks for reporting this ;)

That's a pleasure ;-)

> These traces still have a lot of weird things in it, but I think I figured
> out what went wrong now. As a workaround, the following should do.
>
> ===== drivers/isdn/hisax/avm_pci.c 1.11 vs edited =====
> --- 1.11/drivers/isdn/hisax/avm_pci.c Tue Oct 29 19:50:48 2002
> +++ edited/drivers/isdn/hisax/avm_pci.c Thu Oct 31 16:19:26 2002
> @@ -731,10 +731,10 @@
> release_region(cs->hw.avm.cfg_reg, 32);
> return(0);
> case CARD_INIT:
> - clear_pending_isac_ints(cs);
> initisac(cs);
> - clear_pending_hdlc_ints(cs);
> + clear_pending_isac_ints(cs);
> inithdlc(cs);
> + clear_pending_hdlc_ints(cs);
> outb(AVM_STATUS0_DIS_TIMER | AVM_STATUS0_RES_TIMER,
> cs->hw.avm.cfg_reg + 2);
> WriteISAC(cs, ISAC_MASK, 0);

I'll try ;-)

> Anyway, actually, this driver has been superseded by hisax_fcpcipnp, so
> I'd prefer if you used the new driver ("modprobe hisax_fcpcipnp", no
> parameters necessary), to find bugs there. Also, be advised that this is
> not the last bug you'll find in current 2.5 ISDN, but I'll be thankful for
> any reports and testing ;)

I'll compile that way now ;-)

Thank you very much,

Gr?goire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

2002-11-01 00:38:23

by Gregoire Favre

[permalink] [raw]
Subject: Re: 2.5.45 : kernel BUG at kernel/workqueue.c:69! (ISDN?)

Hello again,

I can't compil AVM Fritz!Card PCI/PCIv2/PnP support in the kernel:

Generating include/linux/compile.h (updated)
gcc -Wp,-MD,init/.version.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
ld -m elf_i386 -r -o init/built-in.o init/main.o init/version.o init/do_mounts.o
ld -m elf_i386 -e stext -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/built-in.o --start-group arch/i386/kernel/built-in.o arch/i386/mm/built-in.o arch/i386/mach-generic/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o lib/lib.a arch/i386/lib/lib.a drivers/built-in.o sound/built-in.o arch/i386/pci/built-in.o net/built-in.o --end-group -o vmlinux
drivers/built-in.o(.data+0x18ff4): undefined reference to `local symbols in discarded section .exit.text'
make: *** [vmlinux] Error 1

As a module, it compils just perfectly!!!
But modprobe hisax_fcpcipnp result in an oops, this time I compil with
CONFIG_KALLSYMS=y and see if that would say more...

I got (modprobe hisax_fcpcipnp):

hisax_isac: ISAC-S/ISAC-SX ISDN driver v0.1.0
hisax_fcpcipnp: Fritz!Card PCI/PCIv2/PnP ISDN driver v0.0.1
Debug: sleeping function called from illegal context at mm/slab.c:1304
Call Trace:
[<c013663a>] kmem_flagcheck+0x5e/0x60
[<c01366dc>] cache_grow+0xa0/0x224
[<c01369aa>] cache_alloc_refill+0x14a/0x1b4
[<c0136abc>] kmem_cache_alloc+0x40/0x42
[<c0185070>] devfsd_notify_de+0x58/0xfc
[<c018516d>] devfsd_notify+0x59/0x86
[<c0185398>] devfs_register+0x1fe/0x350
[<c0210000>] xfs_read+0x1c4/0x222
[<c02cfd77>] isdn_register_devfs+0x71/0x86
[<c02cf96d>] isdn_add_channels+0x97/0xb4
[<c02ce123>] register_isdn+0x11f/0x1c6
[<c02d8a41>] hisax_register+0x8d/0x158
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<e37aaff0>] new_adapter+0xd2/0xdc [hisax_fcpcipnp]
[<e37ab59e>] .rodata.str1.1+0x47/0x5d [hisax_fcpcipnp]
[<e37ab040>] fcpci_probe+0x20/0xa0 [hisax_fcpcipnp]
[<e37abfe0>] fcpci_driver+0x0/0x7c [hisax_fcpcipnp]
[<c022142e>] pci_device_probe+0x5e/0x6c
[<e37abf60>] fcpci_ids+0x0/0x54 [hisax_fcpcipnp]
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<c0229bd8>] bus_match+0x42/0x6e
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<c0229cde>] driver_attach+0x5c/0x74
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<c0229f8f>] bus_add_driver+0x69/0x94
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<c022a490>] driver_register+0x46/0x52
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<c022153d>] pci_register_driver+0x3b/0x4c
[<e37ac008>] fcpci_driver+0x28/0x7c [hisax_fcpcipnp]
[<e37ab1fb>] init_module+0x1f/0x48 [hisax_fcpcipnp]
[<e37abfe0>] fcpci_driver+0x0/0x7c [hisax_fcpcipnp]
[<c011c8a1>] sys_init_module+0x4eb/0x62e
[<e37aa060>] fcpci_read_isac+0x0/0x64 [hisax_fcpcipnp]
[<e37ab7e8>] .kmodtab+0x0/0xc [hisax_fcpcipnp]
[<e37aa060>] fcpci_read_isac+0x0/0x64 [hisax_fcpcipnp]
[<c0107457>] syscall_call+0x7/0xb

get_drv 0: 0 -> 1
fcpcipnp0: State ST_DRV_NULL Event EV_DRV_REGISTER
fcpcipnp0: ChangeState ST_DRV_LOADED
HiSax: Card 1 Protocol EDSS1 Id=fcpcipnp0 (0)
HiSax: DSS1 Rev. 2.30.6.2
HiSax: 2 channels added
HiSax: MAX_WAITING_CALLS added
get_drv 0: 1 -> 2
fcpcipnp0: State ST_DRV_LOADED Event EV_STAT_RUN
fcpcipnp0: ChangeState ST_DRV_RUNNING
put_drv 0: 2 -> 1
hisax_fcpcipnp: found adapter Fritz!Card PCI at 03:00.0

And compiling the kernel with the "old one":
ISDN subsystem initialized
PPP BSD Compression module registered
psmouse.c: Received PS2++ packet #0, but don't know how to handle.
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.5 (kernel)
HiSax: Layer1 Revision 2.41.6.5
HiSax: Layer2 Revision 2.25.6.4
HiSax: TeiMgr Revision 2.17.6.3
HiSax: Layer3 Revision 2.17.6.5
HiSax: LinkLayer Revision 2.51.6.6
HiSax: Approval certification failed because of
HiSax: unauthorized source code changes
HiSax: Total 1 card defined
get_drv 0: 0 -> 1
HiSax: State ST_DRV_NULL Event EV_DRV_REGISTER
HiSax: ChangeState ST_DRV_LOADED
HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
psmouse.c: Received PS2++ packet #0, but don't know how to handle.
HiSax: AVM PCI driver Rev. 1.22.6.6
FritzPnP: no ISA PnP present
AVM PCI: stat 0x2020a
AVM PCI: Class A Rev 2
HiSax: AVM Fritz!PCI config irq:16 base:0xB800
AVM PCI: ISAC version (0): 2086/2186 V1.1
psmouse.c: Received PS2++ packet #0, but don't know how to handle.
AVM Fritz PnP/PCI: IRQ 16 count 0
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_STAVAIL
put_drv 0: 2 -> 1
AVM Fritz PnP/PCI: IRQ 16 count 3
HiSax: DSS1 Rev. 2.30.6.2
HiSax: 2 channels added
HiSax: MAX_WAITING_CALLS added
get_drv 0: 1 -> 2
HiSax: State ST_DRV_LOADED Event EV_STAT_RUN
HiSax: ChangeState ST_DRV_RUNNING
put_drv 0: 2 -> 1

And if I manage connecting to internet using this last one, you'll
receive it ;-)

Well all that was working under 2.4 perfectly didn't work anymore here:
I don't know how to connect under 2.5: I use my ISDN Router and LAN
again...
Oups my script to enable LAN:
#!/bin/sh
isdn stop
isdnctrl delif ippp0 force
modprobe eepro100
ifconfig eth0 up
/etc/rc.d/init.d/network restart
ifup eth0

gives this:
/usr/local/bin/ROUTEUR: line 3: 3631 Segmentation fault isdnctrl delif ippp0 force

And from dmesg:
ISDN_CMD_LOCK 0/0
ippp0: local hangup
Unable to handle kernel NULL pointer dereference at virtual address 0000004c
printing eip:
c02c5b2f
*pde = 00000000
Oops: 0000
binfmt_misc dvb-ttpci alps_bsrv2 floppy eepro100 mii ext2 ehci-hcd usbcore
CPU: 0
EIP: 0060:[<c02c5b2f>] Not tainted
EFLAGS: 00010282
EIP is at fsm_event+0x1b/0xe6
eax: 0000004c ebx: d4382000 ecx: d438220c edx: dffef1e0
esi: 0000004c edi: 0000001c ebp: bffffb04 esp: ca4e9cd0
ds: 0068 es: 0068 ss: 0068
Process isdnctrl (pid: 3631, threadinfo=ca4e8000 task=d1a21380)
Stack: 0000568c 00000286 0000001d 00000001 d4382008 d4382000 d111de80 d4382004
bffffb04 c02cf8ac 0000004c 0000001c 00000000 c02c2d44 00000000 ffffffff
fffffff2 bffffb04 ca4e9d2c c02c37de d111de80 bffffb04 00000009 70707069
Call Trace:
[<c02cf8ac>] isdn_slot_free+0x22/0x26
[<c02c2d44>] isdn_net_dev_delete+0x50/0xbe
[<c02c37de>] isdn_net_ioctl+0xfc/0x320
[<c01accf6>] check_journal_end+0x172/0x286
[<c01ad28a>] do_journal_end+0xcc/0xbc8
[<c0139d72>] buffered_rmqueue+0xce/0x168
[<c014202e>] do_page_cache_readahead+0x74/0x152
[<c0139ea8>] __alloc_pages+0x9c/0x2b0
[<c0139d72>] buffered_rmqueue+0xce/0x168
[<c0139ea8>] __alloc_pages+0x9c/0x2b0
[<c0123c4c>] update_process_times+0x46/0x52
[<c0123ac5>] update_wall_time+0xd/0x36
[<c0123d8d>] do_timer+0xe9/0xee
[<c010ce3f>] do_timer_interrupt+0x4f/0x100
[<c0126acf>] collect_signal+0xab/0xea
[<c012eae4>] do_wp_page+0x302/0x37e
[<c02cefb8>] isdn_ctrl_ioctl+0x68/0x65c
[<c012f543>] handle_mm_fault+0x7d/0xae
[<c0115af7>] do_page_fault+0x25b/0x488
[<c0126746>] sys_rt_sigaction+0x82/0xba
[<c021f100>] copy_from_user+0x4c/0x50
[<c0156dcb>] sys_ioctl+0xed/0x28a
[<c011589c>] do_page_fault+0x0/0x488
[<c0107457>] syscall_call+0x7/0xb

Code: 8b 0e 8b 5e 04 8b 41 04 39 c3 7d 05 3b 79 08 7c 3b c7 04 24

I think it will be quiete hard to use ISDN under 2.5...

Thank you very much,

Gr?goire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]