Bug 37252

Summary: BUG: unable to handle kernel NULL pointer dereference at (null)
Product: Drivers Reporter: njin (marconifabio)
Component: Video(DRI - Intel)Assignee: drivers_video-dri-intel (drivers_video-dri-intel)
Status: CLOSED UNREPRODUCIBLE    
Severity: normal CC: florian, maciej.rutecki, rjw
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.0-rc2 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 36912    
Attachments: proposed fix

Description njin 2011-06-11 18:30:01 UTC
Jun 11 20:08:29 cricco kernel: [   21.057801] BUG: unable to handle kernel NULL pointer dereference at           (null)
Jun 11 20:08:29 cricco kernel: [   21.057952] IP: [<          (null)>]           (null)
Jun 11 20:08:29 cricco kernel: [   21.058047] PGD 36750067 PUD 366b4067 PMD 0 
Jun 11 20:08:29 cricco kernel: [   21.058200] Oops: 0010 [#1] SMP 
Jun 11 20:08:29 cricco kernel: [   21.058315] CPU 0 
Jun 11 20:08:29 cricco kernel: [   21.058358] Modules linked in: rtlwifi(+) mac80211 psmouse snd_timer serio_raw snd_seq_device jmb38x_ms memstick i915(+) cfg80211 drm_kms_helper drm snd i2c_algo_bit video soundcore snd_page_alloc lp parport ahci libahci jme sdhci_pci sdhci
Jun 11 20:08:29 cricco kernel: [   21.059326] 
Jun 11 20:08:29 cricco kernel: [   21.059373] Pid: 336, comm: modprobe Not tainted 3.0.0-0300rc2-generic #201106081532 CLEVO CO.                        M1100M                          /M1100M                          
Jun 11 20:08:29 cricco kernel: [   21.059589] RIP: 0010:[<0000000000000000>]  [<          (null)>]           (null)
Jun 11 20:08:29 cricco kernel: [   21.059698] RSP: 0000:ffff880036731b90  EFLAGS: 00010282
Jun 11 20:08:29 cricco kernel: [   21.059760] RAX: ffff88003676b450 RBX: ffff880036f1a000 RCX: 0000000000000000
Jun 11 20:08:29 cricco kernel: [   21.059833] RDX: 0000000000000000 RSI: 000000000000003c RDI: ffff88003676b000
Jun 11 20:08:29 cricco kernel: [   21.059906] RBP: ffff880036731ba8 R08: 0000000000000000 R09: 0000000000000007
Jun 11 20:08:29 cricco kernel: [   21.059979] R10: 0000000000000007 R11: 0000000000000000 R12: ffff88003676b000
Jun 11 20:08:29 cricco kernel: [   21.060020] R13: ffff880036f1a000 R14: 0000000000000307 R15: ffff88007b48d090
Jun 11 20:08:29 cricco kernel: [   21.060020] FS:  00007f4cb29ce720(0000) GS:ffff88007f200000(0000) knlGS:0000000000000000
Jun 11 20:08:29 cricco kernel: [   21.060020] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 11 20:08:29 cricco kernel: [   21.060020] CR2: 0000000000000000 CR3: 0000000067648000 CR4: 00000000000006f0
Jun 11 20:08:29 cricco kernel: [   21.060020] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jun 11 20:08:29 cricco kernel: [   21.060020] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jun 11 20:08:29 cricco kernel: [   21.060020] Process modprobe (pid: 336, threadinfo ffff880036730000, task ffff88006760ade0)
Jun 11 20:08:29 cricco kernel: [   21.060020] Stack:
Jun 11 20:08:29 cricco kernel: [   21.060020]  ffffffffa012cf76 0000000000000002 ffff88003676b000 ffff880036731bd8
Jun 11 20:08:29 cricco kernel: [   21.060020]  ffffffffa014184e ffff880036f1a000 ffff880036f1a000 0000000000000001
Jun 11 20:08:29 cricco kernel: [   21.060020]  ffff88003676b000 ffff880036731c18 ffffffffa010add3 ffff880036731bf8
Jun 11 20:08:29 cricco kernel: [   21.060020] Call Trace:
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa012cf76>] ? intel_init_clock_gating+0x26/0x50 [i915]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa014184e>] intel_modeset_init+0x11e/0x1f0 [i915]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa010add3>] i915_load_modeset_init+0xa3/0x380 [i915]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa010b4e8>] i915_driver_load+0x438/0x540 [i915]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa0085a2c>] drm_get_pci_dev+0x19c/0x2b0 [drm]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff81034f69>] ? default_spin_lock_flags+0x9/0x10
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff815df954>] ? _raw_spin_lock_irqsave+0x34/0x50
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa01646ad>] i915_pci_probe+0x1d/0x970 [i915]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813082cf>] local_pci_probe+0x4f/0xb0
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813083bf>] pci_call_probe+0x8f/0xa0
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff81309ab4>] __pci_device_probe+0x54/0x60
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff81309afb>] pci_device_probe+0x3b/0x60
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cbc15>] really_probe+0xf5/0x190
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cbcf5>] driver_probe_device+0x45/0x70
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cc0cd>] __driver_attach+0x8d/0x90
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cc040>] ? device_release_driver+0x40/0x40
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cad3d>] bus_for_each_dev+0x5d/0x90
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cb9d1>] driver_attach+0x21/0x30
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cb25c>] bus_add_driver+0x14c/0x1e0
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813cc606>] driver_register+0x56/0xf0
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff813094af>] __pci_register_driver+0x5f/0xb0
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa0085c39>] drm_pci_init+0xf9/0x110 [drm]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa0192000>] ? 0xffffffffa0191fff
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffffa0192067>] i915_init+0x67/0xb0 [i915]
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff81002168>] do_one_initcall+0xe8/0x130
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff810a1d04>] sys_init_module+0xd4/0x230
Jun 11 20:08:29 cricco kernel: [   21.060020]  [<ffffffff815e7f82>] system_call_fastpath+0x16/0x1b
Jun 11 20:08:29 cricco kernel: [   21.060020] Code:  Bad RIP value.
Jun 11 20:08:29 cricco kernel: [   21.060020] RIP  [<          (null)>]           (null)
Jun 11 20:08:29 cricco kernel: [   21.060020]  RSP <ffff880036731b90>
Jun 11 20:08:29 cricco kernel: [   21.060020] CR2: 0000000000000000
Jun 11 20:08:29 cricco kernel: [   21.065596] ---[ end trace 655748ecd9baf9b6 ]---
Comment 1 Wolfram Sang 2011-06-23 07:46:41 UTC
Created attachment 63252 [details]
proposed fix

Can you check this patch if it fixes the oops and gives you the expected DRM error message? Which graphic hardware do you have?
Comment 2 njin 2011-06-25 17:13:24 UTC
laura@cricco:~/Scaricati/linux-image-3.0.0-0300rc2-generic_3.0.0-0300rc2.201106081532_amd64$ cat patche | patch -p1 --dry-run
patching file drivers/gpu/drm/i915/i915_dma.c
Hunk #1 FAILED at 1258.
1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_dma.c.rej
patching file drivers/gpu/drm/i915/i915_drv.h
Hunk #1 FAILED at 1303.
1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_drv.h.rej
patching file drivers/gpu/drm/i915/intel_display.c
Hunk #1 FAILED at 7518.
Hunk #2 FAILED at 7610.
Hunk #3 FAILED at 7657.
Hunk #4 FAILED at 7742.
Hunk #5 FAILED at 7756.
Hunk #6 FAILED at 7794.
6 out of 6 hunks FAILED -- saving rejects to file drivers/gpu/drm/i915/intel_display.c.rej

===/===

 *-pci
          description: Host bridge
          product: N10 Family DMI Bridge
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=agpgart-intel
          resources: irq:0
        *-display:0
             description: VGA compatible controller
             product: N10 Family Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:44 memory:f0300000-f037ffff ioport:18e8(size=8) memory:d0000000-dfffffff memory:f0000000-f00fffff
        *-display:1 UNCLAIMED
             description: Display controller
             product: N10 Family Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2.1
             bus info: pci@0000:00:02.1
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: latency=0
             resources: memory:f0380000-f03fffff
     

The package is the same not working
Thanks
Fabio
Comment 3 njin 2011-06-25 18:16:22 UTC
Hello
On the same system I cannot reprodue this error with the new 3.0.0-rc4 kernel
Fabio