diff mbox

[Bug,14994] Random Panic/Freeze due to BUG: unable to handle kernel NULL pointer dereference at 00000024(?)

Message ID 201004111109.o3BB9pff021216@demeter.kernel.org
State RFC
Delegated to: David Miller
Headers show

Commit Message

bugzilla-daemon@bugzilla.kernel.org April 11, 2010, 11:09 a.m. UTC
https://bugzilla.kernel.org/show_bug.cgi?id=14994


Borislav Petkov <bbpetkov@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bbpetkov@yahoo.de




--- Comment #4 from Borislav Petkov <bbpetkov@yahoo.de>  2010-04-11 11:09:38 ---
Hi,

can you send me the whole dmesg with the oops, also your kernel config.
Also, you could try reproducing the bug after having enabled ide-cd
debugging. For that, you'll need to apply the following patchlet and
rebuild your kernel:
diff mbox

Patch

diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 64207df..4713094 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1707,6 +1707,8 @@  static int ide_cd_probe(ide_drive_t *drive)
     struct gendisk *g;
     struct request_sense sense;

+    drive->debug_mask = 0xffffffff;
+
     ide_debug_log(IDE_DBG_PROBE, "driver_req: %s, media: 0x%x",
                      drive->driver_req, drive->media);

@@ -1716,7 +1718,6 @@  static int ide_cd_probe(ide_drive_t *drive)
     if (drive->media != ide_cdrom && drive->media != ide_optical)
         goto failed;

-    drive->debug_mask = debug_mask;
     drive->irq_handler = cdrom_newpc_intr;

     info = kzalloc(sizeof(struct cdrom_info), GFP_KERNEL);
diff --git a/drivers/ide/ide-cd.h b/drivers/ide/ide-cd.h
index 93a3cf1..613542a 100644
--- a/drivers/ide/ide-cd.h
+++ b/drivers/ide/ide-cd.h
@@ -8,7 +8,7 @@ 
 #include <linux/cdrom.h>
 #include <asm/byteorder.h>

-#define IDECD_DEBUG_LOG        0
+#define IDECD_DEBUG_LOG        1

 #if IDECD_DEBUG_LOG
 #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args)