** Description changed:

+ SRU justification:
+ 
+ Impact: One of the updates from 2.6.28.10 for unknown reasons messed up
+ the backport of the patch from upstream, placing some code at the wrong
+ place which causes an Oops as soon as the module is loaded and the
+ hardware gets probed.
+ 
+ Fix: Move the code section to the same place the upstream patch had
+ intended the code to go.
+ 
+ Testcase: Plugging in the Gigaset ISDN hardware, which causes the module
+ to be loaded and the hardware to be probed (fix verified by reporter).
+ 
+ ---
+ 
  Binary package hint: linux-image-2.6.28-15-generic
  
  Ubuntu: 9.04 64bit
  
  Since upgrading to the regular 2.6.28-15 kernel, there's an error when 
connecting a gigaset ISDN phone via USB:
  snippet from /var/log/kern.log:
  
  Aug 23 01:12:33 sith kernel: [10943.104011] usb 7-2: new full speed USB 
device using uhci_hcd and address 2
  Aug 23 01:12:33 sith kernel: [10943.309106] usb 7-2: configuration #1 chosen 
from 1 choice
  Aug 23 01:12:33 sith kernel: [10943.382989] ISDN subsystem Rev: 
1.1.2.3/1.1.2.3/1.1.2.2/1.1.2.3/1.1.2.2/1.1.2.2 loaded
  Aug 23 01:12:33 sith kernel: [10943.393660] gigaset: Hansjoerg Lipp 
<[email protected]>, Tilman Schmidt <[email protected]>, Stefan Eilers
  Aug 23 01:12:33 sith kernel: [10943.393663] gigaset: Driver for Gigaset 307x
  Aug 23 01:12:33 sith kernel: [10943.406219] BUG: unable to handle kernel NULL 
pointer dereference at 0000000000000158
  Aug 23 01:12:33 sith kernel: [10943.406223] IP: [<ffffffffa0c83d1b>] 
gigaset_probe+0x6b/0x4d0 [bas_gigaset]
  Aug 23 01:12:33 sith kernel: [10943.406229] PGD 15dc6f067 PUD 16c840067 PMD 0 
  Aug 23 01:12:33 sith kernel: [10943.406233] Oops: 0002 [#1] SMP 
  Aug 23 01:12:33 sith kernel: [10943.406235] last sysfs file: 
/sys/devices/pci0000:00/0000:00:1d.1/usb7/7-2/usb_endpoint/usbdev7.2_ep00/dev
  Aug 23 01:12:33 sith kernel: [10943.406239] Dumping ftrace buffer:
  Aug 23 01:12:33 sith kernel: [10943.406241]    (ftrace buffer empty)
  Aug 23 01:12:33 sith kernel: [10943.406243] CPU 1 
  Aug 23 01:12:33 sith kernel: [10943.406244] Modules linked in: bas_gigaset(+) 
gigaset isdn crc_ccitt bridge stp bnep binfmt_misc vmnet ppdev parport_pc 
vmblock vmci vmmon video output input_polldev deflate zlib_deflate ctr twofish 
twofish_common camellia serpent blowfish des_generic cbc aes_x86_64 aes_generic 
xcbc rmd160 sha256_generic sha1_generic crypto_null af_key dm_crypt coretemp lp 
parport tuner_simple snd_hda_intel tuner_types snd_pcm_oss snd_mixer_oss tuner 
tvaudio snd_bt87x msp3400 snd_pcm snd_seq_dummy bttv snd_seq_oss snd_seq_midi 
snd_rawmidi snd_seq_midi_event ir_common snd_seq compat_ioctl32 videodev 
v4l1_compat snd_timer snd_seq_device i2c_algo_bit psmouse v4l2_common snd 
videobuf_dma_sg videobuf_core btcx_risc soundcore serio_raw snd_page_alloc 
tveeprom intel_agp iTCO_wdt iTCO_vendor_support nvidia(P) pcspkr joydev usbhid 
r8169 mii floppy raid10 raid456 async_xor async_memcpy async_tx xor raid1 raid0 
multipath linear fbcon tileblit font bitblit softcursor
  Aug 23 01:12:33 sith kernel: [10943.406303] Pid: 11815, comm: modprobe 
Tainted: P           2.6.28-15-generic #49-Ubuntu
  Aug 23 01:12:33 sith kernel: [10943.406305] RIP: 0010:[<ffffffffa0c83d1b>]  
[<ffffffffa0c83d1b>] gigaset_probe+0x6b/0x4d0 [bas_gigaset]
  Aug 23 01:12:33 sith kernel: [10943.406310] RSP: 0018:ffff880194de3ba8  
EFLAGS: 00010282
  Aug 23 01:12:33 sith kernel: [10943.406312] RAX: ffff8801acc13880 RBX: 
ffff8801818b1430 RCX: 0000000000000002
  Aug 23 01:12:33 sith kernel: [10943.406314] RDX: ffff88002804efe0 RSI: 
00000000000000d0 RDI: 0000000000000282
  Aug 23 01:12:33 sith kernel: [10943.406315] RBP: ffff880194de3bf8 R08: 
0000000000000001 R09: ffff880194de3908
  Aug 23 01:12:33 sith kernel: [10943.406317] R10: 0000000000000001 R11: 
ffff880194de3ac8 R12: ffff8801a3c9d088
  Aug 23 01:12:33 sith kernel: [10943.406319] R13: ffff880196856398 R14: 
ffff8801a3c9d000 R15: ffff8801818b1400
  Aug 23 01:12:33 sith kernel: [10943.406321] FS:  00007f1ff45376f0(0000) 
GS:ffff8801af802b80(0000) knlGS:0000000000000000
  Aug 23 01:12:33 sith kernel: [10943.406323] CS:  0010 DS: 0000 ES: 0000 CR0: 
000000008005003b
  Aug 23 01:12:33 sith kernel: [10943.406325] CR2: 0000000000000158 CR3: 
000000017b0a0000 CR4: 00000000000006a0
  Aug 23 01:12:33 sith kernel: [10943.406327] DR0: 0000000000000000 DR1: 
0000000000000000 DR2: 0000000000000000
  Aug 23 01:12:33 sith kernel: [10943.406329] DR3: 0000000000000000 DR6: 
00000000ffff0ff0 DR7: 0000000000000400
  Aug 23 01:12:33 sith kernel: [10943.406331] Process modprobe (pid: 11815, 
threadinfo ffff880194de2000, task ffff8801845bc320)
  Aug 23 01:12:33 sith kernel: [10943.406333] Stack:
  Aug 23 01:12:33 sith kernel: [10943.406334]  ffffffff80532438 
ffff8801a3c9d000 ffff880194de3be8 ffffffff80532b80
  Aug 23 01:12:33 sith kernel: [10943.406337]  ffff8801818b1430 
ffff8801818b1430 0000000000000000 ffff8801818b1400
  Aug 23 01:12:33 sith kernel: [10943.406341]  ffffffffa0c89ac8 
ffffffffa0c8d628 ffff880194de3c48 ffffffff80533293
  Aug 23 01:12:33 sith kernel: [10943.406345] Call Trace:
  Aug 23 01:12:33 sith kernel: [10943.406346]  [<ffffffff80532438>] ? 
usb_match_one_id+0x38/0xd0
  Aug 23 01:12:33 sith kernel: [10943.406352]  [<ffffffff80532b80>] ? 
usb_autopm_do_device+0xc0/0x110
  Aug 23 01:12:33 sith kernel: [10943.406357]  [<ffffffff80533293>] 
usb_probe_interface+0xc3/0x180
  Aug 23 01:12:33 sith kernel: [10943.406363]  [<ffffffff804ba67d>] 
really_probe+0x6d/0x1a0
  Aug 23 01:12:33 sith kernel: [10943.406368]  [<ffffffff804ba7fb>] 
driver_probe_device+0x4b/0x60
  Aug 23 01:12:33 sith kernel: [10943.406371]  [<ffffffff804ba8ab>] 
__driver_attach+0x9b/0xa0
  Aug 23 01:12:33 sith kernel: [10943.406373]  [<ffffffff804ba810>] ? 
__driver_attach+0x0/0xa0
  Aug 23 01:12:33 sith kernel: [10943.406376]  [<ffffffff804b9e6b>] 
bus_for_each_dev+0x6b/0xa0
  Aug 23 01:12:33 sith kernel: [10943.406380]  [<ffffffff804ba4fc>] 
driver_attach+0x1c/0x20
  Aug 23 01:12:33 sith kernel: [10943.406382]  [<ffffffff804b965d>] 
bus_add_driver+0x14d/0x250
  Aug 23 01:12:33 sith kernel: [10943.406387]  [<ffffffff804baa9c>] 
driver_register+0x6c/0x150
  Aug 23 01:12:33 sith kernel: [10943.406391]  [<ffffffff805335f9>] 
usb_register_driver+0xa9/0x120
  Aug 23 01:12:33 sith kernel: [10943.406395]  [<ffffffffa003f000>] ? 
bas_gigaset_init+0x0/0xae [bas_gigaset]
  Aug 23 01:12:33 sith kernel: [10943.406399]  [<ffffffffa003f055>] 
bas_gigaset_init+0x55/0xae [bas_gigaset]
  Aug 23 01:12:33 sith kernel: [10943.406403]  [<ffffffff8020a03b>] 
do_one_initcall+0x3b/0x170
  Aug 23 01:12:33 sith kernel: [10943.406406]  [<ffffffff802d0555>] ? 
__vunmap+0xc5/0x110
  Aug 23 01:12:33 sith kernel: [10943.406411]  [<ffffffff802d05f5>] ? 
vfree+0x25/0x30
  Aug 23 01:12:33 sith kernel: [10943.406414]  [<ffffffff8027f1dc>] ? 
load_module+0x11dc/0x11f0
  Aug 23 01:12:33 sith kernel: [10943.406421]  [<ffffffff8027f29d>] 
sys_init_module+0xad/0x1e0
  Aug 23 01:12:33 sith kernel: [10943.406424]  [<ffffffff8021253a>] 
system_call_fastpath+0x16/0x1b
  Aug 23 01:12:33 sith kernel: [10943.406428] Code: 00 00 00 4c 89 f7 e8 e5 d6 
8a df 85 c0 0f 88 b7 03 00 00 4d 8b 6f 08 be d0 00 00 00 48 c7 c7 b8 bc 9a 80 
e8 28 e9 65 df 48 85 c0 <48> 89 04 25 58 01 00 00 74 56 41 0f b6 5d 05 80 fb ff 
74 65 49 
  Aug 23 01:12:33 sith kernel: [10943.406456] RIP  [<ffffffffa0c83d1b>] 
gigaset_probe+0x6b/0x4d0 [bas_gigaset]
  Aug 23 01:12:33 sith kernel: [10943.406461]  RSP <ffff880194de3ba8>
  Aug 23 01:12:33 sith kernel: [10943.406462] CR2: 0000000000000158
  Aug 23 01:12:33 sith kernel: [10943.406464] ---[ end trace c50f091eb174654e 
]---
  
  This prevents the system from shutting down, hibernating or going to standby 
properly. If a type "lsusb" the shell hangs forever. 
  Up to the previous kernel (linux-image-2.6.28-15-generic), everything worked 
fine. When plugging the usb phone connection, there was:
  Aug 23 11:29:35 sith kernel: [  158.416016] usb 7-2: new full speed USB 
device using uhci_hcd and address 2
  Aug 23 11:29:35 sith kernel: [  158.617889] usb 7-2: configuration #1 chosen 
from 1 choice
  Aug 23 11:29:35 sith kernel: [  158.697746] ISDN subsystem Rev: 
1.1.2.3/1.1.2.3/1.1.2.2/1.1.2.3/1.1.2.2/1.1.2.2 loaded
  Aug 23 11:29:35 sith kernel: [  158.707560] gigaset: Hansjoerg Lipp 
<[email protected]>, Tilman Schmidt <[email protected]>, Stefan Eilers
  Aug 23 11:29:35 sith kernel: [  158.707563] gigaset: Driver for Gigaset 307x
  Aug 23 11:29:35 sith kernel: [  158.718944] usb 7-2: gigaset_probe: Device 
matched (Vendor: 0x681, Product: 0x22)
  Aug 23 11:29:35 sith kernel: [  158.719024] usbcore: registered new interface 
driver bas_gigaset
  Aug 23 11:29:35 sith kernel: [  158.719027] bas_gigaset: Tilman Schmidt 
<[email protected]>, Hansjoerg Lipp <[email protected]>, Stefan Eilers
  Aug 23 11:29:35 sith kernel: [  158.719029] bas_gigaset: USB Driver for 
Gigaset 307x
  
  In linux-image-2.6.28-14-generic, "lsusb" gives:
  $ lsusb
  Bus 002 Device 002: ID 04e8:2004 Samsung Electronics Co., Ltd 
  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 008 Device 002: ID 046d:c529 Logitech, Inc. 
  Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 007 Device 002: ID 0681:0022 Siemens Information and Communication 
Products Gigaset SX353 ISDN
  Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

** Changed in: linux (Ubuntu)
       Status: In Progress => Fix Committed

** Also affects: linux (Ubuntu Jaunty)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu Jaunty)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Jaunty)
       Status: New => Fix Committed

** Changed in: linux (Ubuntu Jaunty)
     Assignee: (unassigned) => Stefan Bader (stefan-bader-canonical)

** Changed in: linux (Ubuntu)
       Status: Fix Committed => Fix Released

** Changed in: linux (Ubuntu)
     Assignee: Stefan Bader (stefan-bader-canonical) => (unassigned)

-- 
connecting gigaset USB device causes null pointer error
https://bugs.launchpad.net/bugs/417732
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to