RE: [PATCH]: megaraid 2.20.4: Fixes a data corruption bug

From: Mukker, Atul
Date: Wed Sep 29 2004 - 16:37:33 EST


James,

Considering the criticality of this fix, we hope it make into the 2.6.9
release candidate as soon as possible. Can you update us with your views on
this.

Thanks
-Atul Mukker
LSI Logic

> -----Original Message-----
> From: Bagalkote, Sreenivas
> Sent: Tuesday, September 28, 2004 9:31 PM
> To: linux-kernel@xxxxxxxxxxxxxxx; linux-scsi@xxxxxxxxxxxxxxx
> Cc: bunk@xxxxxxxxx; Mukker, Atul; 'Andrew Morton';
> James.Bottomley@xxxxxxxxxxxx; Ju, Seokmann; Doelfel, Hardy
> Subject: [PATCH]: megaraid 2.20.4: Fixes a data corruption bug
>
> Hello All,
>
> Change Log:
>
> Fixes a data corruption issue. Because of a typo in the driver, IO packets
> were wrongly shared by the IOCTL path. This caused the whole IO command
> to be replaced by an incoming IOCTL command.
>
> This patch (generated against 2.6.9-rc2) is inlined below.
>
> Sreenivas
>
> ---
> diff -Naur linux-2.6.9-rc2-mrbug/Documentation/scsi/ChangeLog.megaraid
> linux-2.6.9-rc2-fixed/Documentation/scsi/ChangeLog.megaraid
> --- linux-2.6.9-rc2-mrbug/Documentation/scsi/ChangeLog.megaraid
2004-09-
> 28 17:31:10.000000000 -0400
> +++ linux-2.6.9-rc2-fixed/Documentation/scsi/ChangeLog.megaraid
2004-09-
> 28 17:43:50.000000000 -0400
> @@ -1,3 +1,11 @@
> +Release Date : Mon Sep 27 22:15:07 EDT 2004 - Atul Mukker
> <atulm@xxxxxxxx>
> +Current Version : 2.20.4.0 (scsi module), 2.20.2.0 (cmm module)
> +Older Version : 2.20.3.1 (scsi module), 2.20.2.0 (cmm module)
> +
> +i. Fix data corruption. Because of a typo in the driver, the IO packets
> + were wrongly shared by the ioctl path. This causes a whole IO
> command
> + to be replaced by an incoming ioctl command.
> +
> Release Date : Tue Aug 24 09:43:35 EDT 2004 - Atul Mukker
> <atulm@xxxxxxxx>
> Current Version : 2.20.3.1 (scsi module), 2.20.2.0 (cmm module)
> Older Version : 2.20.3.0 (scsi module), 2.20.2.0 (cmm module)
> diff -Naur linux-2.6.9-rc2-mrbug/drivers/scsi/megaraid/megaraid_mbox.c
> linux-2.6.9-rc2-fixed/drivers/scsi/megaraid/megaraid_mbox.c
> --- linux-2.6.9-rc2-mrbug/drivers/scsi/megaraid/megaraid_mbox.c
2004-09-
> 28 17:31:33.000000000 -0400
> +++ linux-2.6.9-rc2-fixed/drivers/scsi/megaraid/megaraid_mbox.c
2004-09-
> 28 17:43:50.000000000 -0400
> @@ -10,7 +10,7 @@
> * 2 of the License, or (at your option) any later version.
> *
> * FILE : megaraid_mbox.c
> - * Version : v2.20.3.1 (August 24 2004)
> + * Version : v2.20.4 (September 27 2004)
> *
> * Authors:
> * Atul Mukker <Atul.Mukker@xxxxxxxx>
> @@ -197,7 +197,7 @@
> * ### global data ###
> */
> static uint8_t megaraid_mbox_version[8] =
> - { 0x02, 0x20, 0x02, 0x00, 7, 22, 20, 4 };
> + { 0x02, 0x20, 0x04, 0x00, 9, 27, 20, 4 };
>
>
> /*
> @@ -3562,7 +3562,7 @@
> for (i = 0; i < MBOX_MAX_USER_CMDS; i++) {
>
> scb = adapter->uscb_list + i;
> - ccb = raid_dev->ccb_list + i;
> + ccb = raid_dev->uccb_list + i;
>
> scb->ccb = (caddr_t)ccb;
> ccb->mbox64 = raid_dev->umbox64 + i;
> diff -Naur linux-2.6.9-rc2-mrbug/drivers/scsi/megaraid/megaraid_mbox.h
> linux-2.6.9-rc2-fixed/drivers/scsi/megaraid/megaraid_mbox.h
> --- linux-2.6.9-rc2-mrbug/drivers/scsi/megaraid/megaraid_mbox.h
2004-09-
> 28 17:31:33.000000000 -0400
> +++ linux-2.6.9-rc2-fixed/drivers/scsi/megaraid/megaraid_mbox.h
2004-09-
> 28 17:43:50.000000000 -0400
> @@ -21,8 +21,8 @@
> #include "megaraid_ioctl.h"
>
>
> -#define MEGARAID_VERSION "2.20.3.1"
> -#define MEGARAID_EXT_VERSION "(Release Date: Tue Aug 24 09:43:35 EDT
> 2004)"
> +#define MEGARAID_VERSION "2.20.4.0"
> +#define MEGARAID_EXT_VERSION "(Release Date: Mon Sep 27 22:15:07 EDT
> 2004)"
>
>
> /*
> ---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/