Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112885 - net-dialup/fritzcapi-2.6.42: Removing FritzCard PCMCIA V2.0 makes kernel oops
Summary: net-dialup/fritzcapi-2.6.42: Removing FritzCard PCMCIA V2.0 makes kernel oops
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 01:11 UTC by Dead Schorsch
Modified: 2005-12-25 05:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
reattach.oops (reattach.oops,5.61 KB, text/plain)
2005-11-18 10:03 UTC, Stefan Schweizer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dead Schorsch 2005-11-18 01:11:47 UTC
After a successful, capi and pppd based ISDN session, removing the card from the
slot causes kernel (2.6.13 & .14) to go mad:

fcpcmcia: CS delcard: io 140, irq 3
Trying to free free IRQ0
Unable to handle kernel NULL pointer dereference at virtual address 00000004
 printing eip:
fac26882
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: bsd_comp ppp_synctty ppp_deflate zlib_deflate ppp_generic
slhc zlib_inflate capifs fcpcmcia_cs fcpcmcia ker nelcapi ndiswrapper rfcomm
l2cap snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq
snd_seq_device parport_pc pa rport rtc eth1394 ohci1394 ieee1394 tg3 nvidia
snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd soundcore snd_pa
ge_alloc ehci_hcd hci_usb bluetooth uhci_hcd usbcore yenta_socket rsrc_nonstatic
pcmcia pcmcia_core cpufreq_ondemand speedstep _centrino freq_table thermal
processor battery ac ide_cd cdrom
CPU:    0
EIP:    0060:[<fac26882>]    Tainted: P      VLI
EFLAGS: 00010282   (2.6.14-gentoo-r2)
EIP is at queue_exit+0x42/0x120 [fcpcmcia]
eax: 00000000   ebx: f0c16a04   ecx: 00000000   edx: f79f4000
esi: f0c16a40   edi: f0c16a58   ebp: f79f5ef8   esp: f79f5e38
ds: 007b   es: 007b   ss: 0068
Process pccardd (pid: 1600, threadinfo=f79f4000 task=f788b0b0)
Stack: 00000000 f0c16a04 f0c16a04 fac24712 f0c16a40 f7f61d40 fac24a95 f0c16a04
       fac2591f f7f61d40 f968a8c0 00000000 fac2559f f0c16a58 fac2e52b 00000140
       00000003 f96897bb 00000140 00000003 f79f5ef8 f96898d5 f7f61d40 f79f5ef8
Call Trace:
 [<fac24712>] stop+0x42/0x70 [fcpcmcia]
 [<fac24a95>] reset_ctrl+0x25/0xb0 [fcpcmcia]
 [<fac2591f>] lprintf+0x1f/0x30 [fcpcmcia]
 [<fac2559f>] fcpcmcia_delcard+0x3f/0x60 [fcpcmcia]
 [<f96897bb>] cs_release+0x1b/0x80 [fcpcmcia_cs]
 [<f96898d5>] cs_event+0xb5/0xd0 [fcpcmcia_cs]
 [<f9309484>] send_event_callback+0x64/0x70 [pcmcia]
 [<f9309420>] send_event_callback+0x0/0x70 [pcmcia]
 [<c025512d>] bus_for_each_dev+0x5d/0x80
 [<f93094ce>] send_event+0x3e/0x50 [pcmcia]
 [<f9309420>] send_event_callback+0x0/0x70 [pcmcia]
 [<f9309582>] ds_event+0xa2/0xe0 [pcmcia]
 [<f92fc8a0>] send_event+0xa0/0x130 [pcmcia_core]
 [<f92fc951>] socket_remove_drivers+0x21/0x30 [pcmcia_core]
 [<f92fc970>] socket_shutdown+0x10/0x40 [pcmcia_core]
 [<f92fcff0>] socket_remove+0x10/0x80 [pcmcia_core]
 [<f92fd0c8>] socket_detect_change+0x68/0x70 [pcmcia_core]
 [<f92fd297>] pccardd+0x1c7/0x260 [pcmcia_core]
 [<c0116ba0>] default_wake_function+0x0/0x20
 [<c0102e82>] ret_from_fork+0x6/0x14
 [<c0116ba0>] default_wake_function+0x0/0x20
 [<f92fd0d0>] pccardd+0x0/0x260 [pcmcia_core]
 [<c0101009>] kernel_thread_helper+0x5/0xc
Code: 58 0c 8b 82 80 00 00 00 48 0f 85 da 00 00 00 89 14 24 e8 e2 4b 66 c5 8b 06
8b 40 04 89 04 24 e8 c5 ef ff ff 8b 06 89 58 04 8b 06 <8b> 58 04 85 db 75 c7 8b
48 08 85 c9 74 39 8b 40 08 8b 50 08 8b



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




christoph_dahlen@dld8-fblk31j ~ $ emerge --info
Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.12.0_pre10
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="de_DE.utf8"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi acpi4linux activefilter aim alsa antlr apache2 artworkextra
async audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib
cddb cdinstall cdparanoia cdr chroot crypt cups curl dbus dga divx4linux doc dvb
dvd eds emboss encode esd ethereal evo exif expat fam fbcon ffmpeg flac
font-server foomaticdb fortran ftp gd gdbm gif gimp gimpprint glut gnome gnomedb
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl iconv idn ieee1394
imagemagick imap imlib imlib2 ipv6 irmc java jikes jpeg junit lcms ldap libg++
libwww lirc live lzw-tiff mad mbox mhash mime mmx mmx2 mng motif mozilla
moznocompose moznoirc moznomail mozp3p mozplaintext mozsvg mp3 mpeg mpeg4 msn
ncurses netbeans nls nocd nptl nvidia odbc ogg oggvorbis openal opengl pam
pcmcia pcre pda pdflib perl php png posix postgres ppds python quicktime
readline samba scanner sdl slang smime sockets sox speex spell sse sse2 ssl svg
svga tcpd tetex tga tiff truetype-fonts type1-fonts udev unicode usb userlocales
videos vidix vorbis wmf xfs xine xinerama xml2 xosd xpm xv xvid xvmc zlib
fritzcapi_cards_fcpcmcia linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2005-11-18 04:18:10 UTC
Can you please try version 2.6.42?
Comment 2 Dead Schorsch 2005-11-18 04:20:41 UTC
Sorry, typo. Actually, I am using version 2.6.42
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2005-11-18 05:14:08 UTC
Are you using pcmciautils or pcmcia-cs?
Are you using an init script, or just plugging it in?
What do you have in dmesg before unplugging it?

I have the following in dmesg and your error suggests, that you have problems
with IRQ. I do not know, but maybe it can help to use some irq-options on the
kernel cmdline. I am using # cat /proc/cmdline
[..]acpi=noirq[..]

dmesg>>
cs: memory probe 0xe8100000-0xe81fffff: excluding 0xe8100000-0xe810ffff
CAPI Subsystem Rev 1.1.2.8
fcpcmcia: module license 'Proprietary' taints kernel.
fcpcmcia: AVM FRITZ!Card PCMCIA driver, revision 0.7.2
fcpcmcia: (fcpcmcia built on Nov 18 2005 at 14:00:45)
fcpcmcia: -- 32 bit CAPI driver --
fcpcmcia: Driver 'fcpcmcia' attached to fcpcmcia-stack. (152)
fcpcmcia_cs: Attaching device...
fcpcmcia_cs: testing i/o 0x140-0x147
fcpcmcia_cs: Ready to call card driver for 'ISDN A'...
fcpcmcia: CS addcard: io 140, irq 3
fcpcmcia: Stack version 3.11-07
kcapi: Controller 1: fcpcmcia-0140-03 attached
kcapi: card 1 "fcpcmcia-0140-03" ready.
fcpcmcia_cs: Card driver for 'ISDN A' has been set up: i/o 140, irq 3
capifs: Rev 1.1.2.3
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
fcpcmcia: CS delcard: io 140, irq 3
kcapi: card 1 down.
kcapi: Controller 1: fcpcmcia-0140-03 unregistered
fcpcmcia_cs: Detaching device...
<<dmesg
Comment 4 Dead Schorsch 2005-11-18 05:26:37 UTC
Started with acpi=noirq too now.

At plugin time:

cs: memory probe 0xf6000000-0xfbffffff: excluding 0xf6000000-0xfa1fffff
0xfae00000-0xfb3fffff
CAPI Subsystem Rev 1.1.2.8
fcpcmcia: AVM FRITZ!Card PCMCIA driver, revision 0.7.2
fcpcmcia: (fcpcmcia built on Nov 15 2005 at 10:33:57)
fcpcmcia: -- 32 bit CAPI driver --
fcpcmcia: Driver 'fcpcmcia' attached to fcpcmcia-stack. (152)
fcpcmcia_cs: Attaching device...
fcpcmcia_cs: testing i/o 0x140-0x147
fcpcmcia_cs: Ready to call card driver for 'ISDN A'...
fcpcmcia: CS addcard: io 140, irq 3
fcpcmcia: Stack version 3.11-07
kcapi: Controller 1: fcpcmcia-0140-03 attached
kcapi: card 1 "fcpcmcia-0140-03" ready.
fcpcmcia_cs: Card driver for 'ISDN A' has been set up: i/o 140, irq 3

At remove time:

fcpcmcia: CS delcard: io 140, irq 3
kcapi: card 1 down.
kcapi: Controller 1: fcpcmcia-0140-03 unregistered
fcpcmcia_cs: Detaching device..

Hmm .. reinsert card again:

Unable to handle kernel paging request at virtual address 312f5384
 printing eip:
fac24a86
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: fcpcmcia_cs fcpcmcia kernelcapi ndiswrapper rfcomm l2cap
snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device
parport_pc parport rtc eth1394 ohci1394 ieee1394 tg3 nvidia snd_intel8x0
snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd soundcore snd_page_alloc
ehci_hcd hci_usb bluetooth uhci_hcd usbcore yenta_socket rsrc_nonstatic pcmcia
pcmcia_core cpufreq_ondemand speedstep_centrino freq_table thermal processor
battery ac ide_cd cdrom
CPU:    0
EIP:    0060:[<fac24a86>]    Tainted: P      VLI
EFLAGS: 00010296   (2.6.14-gentoo-r2)
EIP is at reset_ctrl+0x16/0xb0 [fcpcmcia]
eax: eee7d858   ebx: ee938f40   ecx: 00000000   edx: 00000001
esi: 312f5350   edi: eee7d858   ebp: ee938f40   esp: f7dc19fc
ds: 007b   es: 007b   ss: 0068
Process pccardd (pid: 1600, threadinfo=f7dc0000 task=f7ce1a90)
Stack: fac62840 fac2591f ee938f40 f7dc1a54 eea8df43 fac2559f eee7d858 fac2e52b
       00000140 00000003 f96897bb 00000140 00000003 fffffff0 f968961e ee938f40
       f9689a38 eea8df40 00000140 00000003 ee938f58 eea8df40 4e445349 00004120
Call Trace:
 [<fac2591f>] lprintf+0x1f/0x30 [fcpcmcia]
 [<fac2559f>] fcpcmcia_delcard+0x3f/0x60 [fcpcmcia]
 [<f96897bb>] cs_release+0x1b/0x80 [fcpcmcia_cs]
 [<f968961e>] cs_config+0x29e/0x420 [fcpcmcia_cs]
 [<c01d5500>] __copy_to_user_ll+0x20/0x90
 [<c0115fe7>] activate_task+0x67/0x80
 [<c0116095>] try_to_wake_up+0x45/0x120
 [<c013157f>] autoremove_wake_function+0x2f/0x60
 [<c0116bf8>] __wake_up_common+0x38/0x70
 [<c0116c83>] __wake_up+0x53/0x80
 [<c011003b>] mark_offset_tsc_hpet+0xcb/0x180
 [<f92fe819>] pccard_get_next_tuple+0x209/0x310 [pcmcia_core]
 [<f92fe321>] pccard_get_first_tuple+0x91/0x150 [pcmcia_core]
 [<f92ffe58>] pccard_read_tuple+0xa8/0xc0 [pcmcia_core]
 [<f9689820>] cs_event+0x0/0xd0 [fcpcmcia_cs]
 [<f96898e6>] cs_event+0xc6/0xd0 [fcpcmcia_cs]
 [<f93097e1>] pcmcia_register_client+0x221/0x2e0 [pcmcia]
 [<c017b5ca>] __d_lookup+0x11a/0x190
 [<c017b5ca>] __d_lookup+0x11a/0x190
 [<f968916a>] cs_attach+0xea/0x140 [fcpcmcia_cs]
 [<f93084a2>] pcmcia_device_probe+0xc2/0x180 [pcmcia]
 [<c019ffbc>] sysfs_make_dirent+0x2c/0xa0
 [<c0255c68>] driver_probe_device+0x38/0xd0
 [<c0255d00>] __device_attach+0x0/0x10
 [<c025525d>] bus_for_each_drv+0x5d/0x80
 [<c0255d84>] device_attach+0x74/0x80
 [<c0255d00>] __device_attach+0x0/0x10
 [<c02553f5>] bus_add_device+0x35/0xd0
 [<c025977a>] device_pm_add+0x6a/0xb0
 [<c02541cd>] device_add+0xdd/0x180
 [<f930898a>] pcmcia_device_add+0x17a/0x230 [pcmcia]
 [<f9308aed>] pcmcia_card_add+0xad/0xd0 [pcmcia]
 [<c02854ce>] pci_write+0x3e/0x50
 [<c01d6b55>] pci_bus_write_config_dword+0x65/0x90
 [<c01d1077>] kobject_get+0x17/0x20
 [<c02573a8>] class_device_get+0x18/0x20
 [<f92fc1dd>] pcmcia_get_socket+0x5d/0xa0 [pcmcia_core]
 [<f9309564>] ds_event+0x84/0xe0 [pcmcia]
 [<f92fc8a0>] send_event+0xa0/0x130 [pcmcia_core]
 [<f92fcd08>] socket_insert+0xb8/0x1b0 [pcmcia_core]
 [<f92fd0bb>] socket_detect_change+0x5b/0x70 [pcmcia_core]
 [<f92fd297>] pccardd+0x1c7/0x260 [pcmcia_core]
 [<c0116ba0>] default_wake_function+0x0/0x20
 [<c0102e82>] ret_from_fork+0x6/0x14
 [<c0116ba0>] default_wake_function+0x0/0x20
 [<f92fd0d0>] pccardd+0x0/0x260 [pcmcia_core]
 [<c0101009>] kernel_thread_helper+0x5/0xc
Code: 3b 44 24 50 0f 4f 44 24 50 83 c4 30 5b 5e 5f 5d c3 8d 74 26 00 83 ec 14 89
7c 24 10 8b 7c 24 18 89 5c 24 08 89 74 24 0c 8b 77 04 <8b> 46 34 85 c0 75 23 89
34 24 e8 3b fc ff ff 89 7c 24 18 8b 5c

Looks even longer ...
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2005-11-18 10:03:07 UTC
Created attachment 73141 [details]
reattach.oops

hmh, I also get an oops when plugging in the card again.

But the driver has binary parts, and I do not have the experience to fix the
problem.

Can you please report the problem to AVM by opening a ticket there:
http://www.avm.de/de/Service/index.html
Click on "Support"
Comment 6 Dead Schorsch 2005-11-22 03:56:27 UTC
Answer is as expected (for non-German natives, it reads: "Go away!"):

Ticket-ID CID771246

Sehr geehrter Herr Dahlen,

wie Sie bereits bef
Comment 7 Dead Schorsch 2005-11-22 03:56:27 UTC
Answer is as expected (for non-German natives, it reads: "Go away!"):

Ticket-ID CID771246

Sehr geehrter Herr Dahlen,

wie Sie bereits befürchtet  haben, können wir dazu keinen Support leisten.

Da mir keine vergleichbaren Fälle mit entsprechneden SuSE Versionen bekannt
sind
muss es einen Zusammenhang zum verwendeten Kernel oder irgendeiner mit dem
PCMCIA Bus
verbundenen Komponente geben.

Mit freundlichen Grüßen

Dirk Hartel (AVM Support)
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2005-12-25 05:54:29 UTC
well, I do not think there is much we can do here :(