Skip to contentSkip to conversation

Kernel OOPS with aacraid driver

DISCUSSION Yum Rayan 3 participants 4 messages Apr 22, 2005 – Apr 24, 2005 SCSI

lore
Share & tools
lore

Yum Rayan

author
#0 lore raw
Quoted 6 lines
Quoted 2 lines

BTW, this says that this is the second oops: "[#2]". What was the first one?

Apr 21 10:53:27 www adaptec-smbe: aiomgrd startup succeeded
Apr 21 10:53:27 www kernel: Unable to handle kernel NULL 

pointer dereference
at virtual address 00000034

Seems to me like someone is issuing IOCTL's against devices that do not exist. Does this patch against linux-2.6.12-rc3 make sense and applicable to you?

Seems like aac_cfg_open() will return success even if it fails? This patch fixes it to actually return error.

Regards,
Rayan

diff -Nupr -X dontdiff linux-2.6.12-rc3.a/drivers/scsi/aacraid/linit.c linux-2.6.12-rc3.b/drivers/scsi/aacraid/linit.c
--- linux-2.6.12-rc3.a/drivers/scsi/aacraid/linit.c 2005-04-21
23:56:31.000000000 -0700
+++ linux-2.6.12-rc3.b/drivers/scsi/aacraid/linit.c 2005-04-21
23:57:26.000000000 -0700
@@ -450,7 +450,7 @@ static int aac_cfg_open(struct inode *in
}
}

- return 0;
+ return err;
}

/**

#1 lore raw

Hello Rayan,

Quoted 3 lines

Seems to me like someone is issuing IOCTL's against devices that do not exist. Does this patch against linux-2.6.12-rc3 make sense and applicable to you?

Sounds good. I have an kernel build on the way, and will test it on Monday.

Sincerly,
Klaus

Signature · 6 lines
Klaus Steinberger         Maier-Leibnitz Labor
Phone: (+49 89)289 14287  Am Coulombwall 6, D-85748 Garching, Germany
FAX:   (+49 89)289 14280  EMail: [email protected]
URL: http://www.physik.uni-muenchen.de/~k2/

In a world without Walls and Fences, who needs Windows and Gates
#2 lore raw

Am Freitag 22 April 2005 13:57 schrieb Klaus Steinberger:

Quoted 7 lines

Hello Rayan,

Quoted 3 lines

Seems to me like someone is issuing IOCTL's against devices that do not exist. Does this patch against linux-2.6.12-rc3 make sense and applicable to you?

Sounds good. I have an kernel build on the way, and will test it on Monday.

Yep I got by occasion a test window today, the fix works fine.

Sincerly,
Klaus

Signature · 6 lines
Klaus Steinberger         Maier-Leibnitz Labor
Phone: (+49 89)289 14287  Am Coulombwall 6, D-85748 Garching, Germany
FAX:   (+49 89)289 14280  EMail: [email protected]
URL: http://www.physik.uni-muenchen.de/~k2/

In a world without Walls and Fences, who needs Windows and Gates
#3 lore raw
In reply to Yum Rayan
Quoted 11 lines · Yum Rayan
Quoted 6 lines
Quoted 2 lines

BTW, this says that this is the second oops: "[#2]". What was the first one?

Apr 21 10:53:27 www adaptec-smbe: aiomgrd startup succeeded
Apr 21 10:53:27 www kernel: Unable to handle kernel NULL 

pointer dereference
at virtual address 00000034

Seems to me like someone is issuing IOCTL's against devices that do not exist. Does this patch against linux-2.6.12-rc3 make sense and applicable to you?

A fix for this was submitted to the list last week.

Mark.

Signature · 1 line
Mark Haverkamp <[email protected]>