* BUG: pdcraid OOPS due to uninitialized variable access
@ 2002-07-14 17:34 Borsenkow Andrej
2002-07-14 23:11 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Borsenkow Andrej @ 2002-07-14 17:34 UTC (permalink / raw)
To: linux-kernel list; +Cc: Juan Quintela, Cooker list
On both 2.4.18-6mdk (from 8.2) and in current cooker pdcraid oopses
immediately after insertion. The reason is usage of uninitialized
variable in drivers/ide/pdcraid.c:
static void __init probedisk(int devindex,int device, int raidlevel)
{
int i;
int major, minor;
struct promise_raid_conf *prom;
static unsigned char block[4096];
struct block_device *bdev;
if (devlist[devindex].device!=-1) /* already assigned to another
array
*/
return;
if (strcmp("Promise Technology, Inc.",prom->promise_id))
return; /* magic number must match */
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
here it bails out. prom is initialized later:
major = devlist[devindex].major;
minor = devlist[devindex].minor;
if (read_disk_sb(major,minor,(unsigned
char*)&block,sizeof(block)))
return;
prom = (struct promise_raid_conf*)&block[512];
I am sorry, I do not have vanilla kernel so I cannot check if bug is in
general kernel or Mandrake-specific.
-andrej
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BUG: pdcraid OOPS due to uninitialized variable access
2002-07-14 17:34 BUG: pdcraid OOPS due to uninitialized variable access Borsenkow Andrej
@ 2002-07-14 23:11 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2002-07-14 23:11 UTC (permalink / raw)
To: Borsenkow Andrej; +Cc: linux-kernel list, Juan Quintela, Cooker list
On Sun, 2002-07-14 at 18:34, Borsenkow Andrej wrote:
> On both 2.4.18-6mdk (from 8.2) and in current cooker pdcraid oopses
> immediately after insertion. The reason is usage of uninitialized
> variable in drivers/ide/pdcraid.c:
>
> I am sorry, I do not have vanilla kernel so I cannot check if bug is in
> general kernel or Mandrake-specific.
This appears to be broken vendor specific hack. This code doesn't appear
in the base pdcraid code. I guess they tried to make the autodetect more
accurate and got it wrong. It would be interesting to know what the goal
was and why it wasnt posted to the maintainers ?
Alan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-14 22:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-14 17:34 BUG: pdcraid OOPS due to uninitialized variable access Borsenkow Andrej
2002-07-14 23:11 ` Alan Cox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.