Bug 251081

Summary: pppoe doesn't work after resume -> module ppp_generic can't be re-modprobe'd
Product: [openSUSE] openSUSE 10.2 Reporter: Homepage-AG des StGH <tobias.t>
Component: NetworkAssignee: Pavel Machek <pavel>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 10.2   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Complete output of dmesg on the clean VM-installation (see comment #6 for details)

Description Homepage-AG des StGH 2007-03-03 22:57:51 UTC
After resuming from suspend2disk, suspend2ram or even standby I cannot connect to the Internet by my DSL connection until reboot.

After a bit of search I compared the lsmod output before and after hibernating & resuming. I found that ppp_generic and its "decendants" pppox and pppoe were missing.

While looking for the reason I tried to remove the module and reinstall it again immediately:

rmmod pppoe
rmmod pppox
rmmod ppp_generic
modprobe ppp_generic

The last command (modprobe...) simply returns "Killed". If I execute it again or try to load the other two modules, modprobe hangs without any error message.

After system reboot everything works fine again.

Thanks in advance for your help!
Comment 1 Jeff Mahoney 2007-03-06 16:59:43 UTC
Can you provide the output of dmesg after the first "Killed?" The kernel is oopsing here, and the second modprobe is hanging due to locks that were held by the killed modprobe.
Comment 2 Homepage-AG des StGH 2007-03-07 13:51:20 UTC
Here's the output of dmesg.
I hope I didn't forget anything.

PPP generic driver version 2.4.2
kobject_add failed for ppp with -EEXIST, don't try to register things with the same name in the same directory.

Call Trace:
 [<ffffffff80310436>] kobject_add+0x16e/0x199
 [<ffffffff80310579>] kobject_register+0x20/0x3a
 [<ffffffff803105dc>] kobject_add_dir+0x49/0x55
 [<ffffffff803703c2>] virtual_device_parent+0x5e/0x80
 [<ffffffff8036e1cc>] device_add+0x4f/0x4e7
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff8036e736>] device_create+0xc0/0xef
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff80370ea8>] class_register+0xfe/0x130
 [<ffffffff88106067>] :ppp_generic:ppp_init+0x67/0x94
 [<ffffffff80299bcc>] sys_init_module+0x172f/0x18e5
 [<ffffffff8025800e>] system_call+0x7e/0x83

Unable to handle kernel NULL pointer dereference at 0000000000000010 RIP:
 [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
PGD 1dce7067 PUD 1817067 PMD 0
Oops: 0000 [1] SMP
last sysfs file: /devices/pci0000:00/0000:00:0a.0/subsystem_device
CPU 0
Modules linked in: ppp_generic ipt_MASQUERADE af_packet slhc nls_utf8 xt_pkttype ipt_TCPMSS ipt_LOG xt_limit dazuko snd_pcm_oss snd_mixer_oss snd_seq snd_seq_device cpufreq_conservative cpufreq_ondemand cpufreq_userspace cpufreq_powersave powernow_k8 freq_table button battery ac ip6t_REJECT xt_tcpudp ipt_REJECT xt_state iptable_mangle iptable_nat ip_nat iptable_filter ip6table_mangle ip_conntrack nfnetlink ip_tables ip6table_filter ip6_tables x_tables ipv6 loop dm_mod sg usblp usb_storage nvidia ide_cd cdrom floppy snd_intel8x0 forcedeth snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd soundcore snd_page_alloc ehci_hcd ohci_hcd i2c_nforce2 i2c_core usbcore parport_pc lp parport ext2 mbcache edd fan thermal processor sata_nv libata amd74xx sd_mod scsi_mod ide_disk ide_core
Pid: 6286, comm: modprobe Tainted: P     U 2.6.18.2-34-default #1
RIP: 0010:[<ffffffff802eb5f2>]  [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
RSP: 0018:ffff81000322fc68  EFLAGS: 00010286
RAX: ffff810019da77c0 RBX: ffff81001f7a1cf0 RCX: ffff81000322fca0
RDX: ffff81001f7a1cf8 RSI: 0000000000000000 RDI: ffff81001f7a1cf0
RBP: ffff81001f7a1cf0 R08: 00000000ffffffff R09: 0000000006c00000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff81001f7a1c00
R13: ffff81000322fca0 R14: 0000000000000000 R15: ffff810019da77c0
FS:  00002b2633aa56f0(0000) GS:ffffffff805b7000(0000) knlGS:00000000f7dc36c0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000010 CR3: 000000001f0f1000 CR4: 00000000000006e0
Process modprobe (pid: 6286, threadinfo ffff81000322e000, task ffff81001f7f2080)
Stack:  ffff81001f7a1cf0 ffff81001f7a1d58 ffff81001f7a1c00 0000000000000000
 0000000000000000 ffffffff802ebb7d ffff810019da77c0 0000000000000000
 ffff81001f7a1cf0 ffffffff803103a4 ffff81001026c800 ffff81001f7a1c00
Call Trace:
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff803103a4>] kobject_add+0xdc/0x199
 [<ffffffff8036e225>] device_add+0xa8/0x4e7
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff8036e736>] device_create+0xc0/0xef
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff80370ea8>] class_register+0xfe/0x130
 [<ffffffff88106067>] :ppp_generic:ppp_init+0x67/0x94
 [<ffffffff80299bcc>] sys_init_module+0x172f/0x18e5
 [<ffffffff8025800e>] system_call+0x7e/0x83


Code: 48 8b 7e 10 48 89 d3 48 81 c7 c0 00 00 00 e8 2a 1f f7 ff fc
RIP  [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
 RSP <ffff81000322fc68>
CR2: 0000000000000010
Comment 3 Greg Kroah-Hartman 2007-03-08 01:27:44 UTC
Can you duplicate this without the nvidia driver loaded?
Comment 4 Homepage-AG des StGH 2007-03-09 08:22:49 UTC
Here you are:

PPP generic driver version 2.4.2
kobject_add failed for ppp with -EEXIST, don't try to register things with the same name in the same directory.

Call Trace:
 [<ffffffff80310436>] kobject_add+0x16e/0x199
 [<ffffffff80310579>] kobject_register+0x20/0x3a
 [<ffffffff803105dc>] kobject_add_dir+0x49/0x55
 [<ffffffff803703c2>] virtual_device_parent+0x5e/0x80
 [<ffffffff8036e1cc>] device_add+0x4f/0x4e7
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff8036e736>] device_create+0xc0/0xef
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff80370ea8>] class_register+0xfe/0x130
 [<ffffffff88106067>] :ppp_generic:ppp_init+0x67/0x94
 [<ffffffff80299bcc>] sys_init_module+0x172f/0x18e5
 [<ffffffff8025800e>] system_call+0x7e/0x83

Unable to handle kernel NULL pointer dereference at 0000000000000010 RIP: 
 [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
PGD 3bd82067 PUD 8a75067 PMD 0 
Oops: 0000 [1] SMP 
last sysfs file: /devices/pci0000:00/0000:00:00.0/resource
CPU 0 
Modules linked in: ppp_generic ipt_MASQUERADE af_packet slhc nls_utf8 xt_pkttype ipt_TCPMSS ipt_LOG xt_limit dazuko snd_pcm_oss snd_mixer_oss snd_seq snd_seq_device cpufreq_conservative cpufreq_ondemand cpufreq_userspace cpufreq_powersave powernow_k8 freq_table button battery ac ip6t_REJECT xt_tcpudp ipt_REJECT xt_state iptable_mangle iptable_nat ip_nat iptable_filter ip6table_mangle ip_conntrack nfnetlink ip_tables ip6table_filter ip6_tables x_tables ipv6 loop dm_mod sg usblp usb_storage forcedeth i2c_nforce2 i2c_core snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd soundcore snd_page_alloc ohci_hcd ide_cd cdrom ehci_hcd usbcore floppy parport_pc lp parport ext2 mbcache edd fan thermal processor sata_nv libata amd74xx sd_mod scsi_mod ide_disk ide_core
Pid: 9239, comm: modprobe Tainted: P     U 2.6.18.2-34-default #1
RIP: 0010:[<ffffffff802eb5f2>]  [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
RSP: 0018:ffff810007939c68  EFLAGS: 00010286
RAX: ffff81003cd258c0 RBX: ffff810039fdf4f0 RCX: ffff810007939ca0
RDX: ffff810039fdf4f8 RSI: 0000000000000000 RDI: ffff810039fdf4f0
RBP: ffff810039fdf4f0 R08: 00000000ffffffff R09: 0000000006c00000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff810039fdf400
R13: ffff810007939ca0 R14: 0000000000000000 R15: ffff81003cd258c0
FS:  00002b1930d3a6f0(0000) GS:ffffffff805b7000(0000) knlGS:00000000f7db26c0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000010 CR3: 0000000004b31000 CR4: 00000000000006e0
Process modprobe (pid: 9239, threadinfo ffff810007938000, task ffff8100223177f0)
Stack:  ffff810039fdf4f0 ffff810039fdf558 ffff810039fdf400 0000000000000000
 0000000000000000 ffffffff802ebb7d ffff81003cd258c0 0000000000000000
 ffff810039fdf4f0 ffffffff803103a4 ffff8100380b8c00 ffff810039fdf400
Call Trace:
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff803103a4>] kobject_add+0xdc/0x199
 [<ffffffff8036e225>] device_add+0xa8/0x4e7
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff8036e736>] device_create+0xc0/0xef
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff80370ea8>] class_register+0xfe/0x130
 [<ffffffff88106067>] :ppp_generic:ppp_init+0x67/0x94
 [<ffffffff80299bcc>] sys_init_module+0x172f/0x18e5
 [<ffffffff8025800e>] system_call+0x7e/0x83


Code: 48 8b 7e 10 48 89 d3 48 81 c7 c0 00 00 00 e8 2a 1f f7 ff fc 
RIP  [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
 RSP <ffff810007939c68>
CR2: 0000000000000010
Comment 5 Jeff Mahoney 2007-03-21 20:58:59 UTC
This trace is still tainted with a proprietary module.
Comment 6 Homepage-AG des StGH 2007-04-15 18:50:06 UTC
Sorry that it took so long to answer. I had some trouble providing an un-tainted version of this. Now I have set up a clean installation of openSuSE 10.2 in a VM and tested modprobe ppp_generic right after the installation (and prior to installing anything, e. g. VMware tools).

So here is a part of the output of dmesg:
(I put the complete output into a plain-text file I added as an attachment.)


PPP generic driver version 2.4.2
kobject_add failed for ppp with -EEXIST, don't try to register things with the same name in the same directory.

Call Trace:
 [<ffffffff80310436>] kobject_add+0x16e/0x199
 [<ffffffff80310579>] kobject_register+0x20/0x3a
 [<ffffffff803105dc>] kobject_add_dir+0x49/0x55
 [<ffffffff803703c2>] virtual_device_parent+0x5e/0x80
 [<ffffffff8036e1cc>] device_add+0x4f/0x4e7
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff8036e736>] device_create+0xc0/0xef
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff80370ea8>] class_register+0xfe/0x130
 [<ffffffff880cc067>] :ppp_generic:ppp_init+0x67/0x94
 [<ffffffff80299bcc>] sys_init_module+0x172f/0x18e5
 [<ffffffff8025800e>] system_call+0x7e/0x83

Unable to handle kernel NULL pointer dereference at 0000000000000010 RIP: 
 [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
PGD d904067 PUD a679067 PMD 0 
Oops: 0000 [1] SMP 
last sysfs file: /devices/pci0000:00/0000:00:07.1/ide1/1.0/media
CPU 0 
Modules linked in: ppp_generic slhc lp parport_pc parport ip6t_REJECT xt_tcpudp xt_pkttype ipt_REJECT ipt_LOG xt_limit xt_state iptable_mangle iptable_nat ip_nat ip6table_mangle ip_conntrack nfnetlink ip6table_filter ip6_tables af_packet iptable_filter ip_tables x_tables joydev st sr_mod ipv6 button battery ac loop dm_mod floppy e1000 shpchp pci_hotplug ide_cd i2c_piix4 cdrom i2c_core intel_agp ext3 mbcache jbd edd fan sg ide_generic mptspi mptscsih mptbase scsi_transport_spi piix thermal processor sd_mod scsi_mod ide_disk ide_core
Pid: 10348, comm: modprobe Tainted: G     U 2.6.18.2-34-default #1
RIP: 0010:[<ffffffff802eb5f2>]  [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
RSP: 0018:ffff81000cea5c68  EFLAGS: 00010286
RAX: ffff81001520c6c0 RBX: ffff810001de20f0 RCX: ffff81000cea5ca0
RDX: ffff810001de20f8 RSI: 0000000000000000 RDI: ffff810001de20f0
RBP: ffff810001de20f0 R08: 00000000ffffffff R09: 0000000006c00000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff810001de2000
R13: ffff81000cea5ca0 R14: 0000000000000000 R15: ffff81001520c6c0
FS:  00002b5d7b8d46f0(0000) GS:ffffffff805b7000(0000) knlGS:00000000f6a39ac0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000010 CR3: 000000000d463000 CR4: 00000000000006e0
Process modprobe (pid: 10348, threadinfo ffff81000cea4000, task ffff810003e530c0)
Stack:  ffff810001de20f0 ffff810001de2158 ffff810001de2000 0000000000000000
 0000000000000000 ffffffff802ebb7d ffff81001520c6c0 0000000000000000
 ffff810001de20f0 ffffffff803103a4 ffff8100153faa00 ffff810001de2000
Call Trace:
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff803103a4>] kobject_add+0xdc/0x199
 [<ffffffff8036e225>] device_add+0xa8/0x4e7
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff8036e736>] device_create+0xc0/0xef
 [<ffffffff802ebb7d>] sysfs_create_dir+0x58/0x76
 [<ffffffff80253deb>] kobject_get+0x12/0x17
 [<ffffffff80370ea8>] class_register+0xfe/0x130
 [<ffffffff880cc067>] :ppp_generic:ppp_init+0x67/0x94
 [<ffffffff80299bcc>] sys_init_module+0x172f/0x18e5
 [<ffffffff8025800e>] system_call+0x7e/0x83


Code: 48 8b 7e 10 48 89 d3 48 81 c7 c0 00 00 00 e8 2a 1f f7 ff fc 
RIP  [<ffffffff802eb5f2>] create_dir+0x11/0x1cf
 RSP <ffff81000cea5c68>
CR2: 0000000000000010
 
Comment 7 Homepage-AG des StGH 2007-04-15 18:51:53 UTC
Created attachment 131226 [details]
Complete output of dmesg on the clean VM-installation (see comment #6 for details)
Comment 8 Pavel Machek 2008-02-05 01:02:38 UTC
Can you rmmod/insmod the ppp modules few times, without suspends in between?
Comment 9 Pavel Machek 2008-03-03 10:30:18 UTC
Inactive for a month, closing....