lkml.org 
[lkml]   [2003]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectFW: cciss updates for 2.4.22-pre3 [3 of 6]
Date
From


-----Original Message-----
From: Miller, Mike (OS Dev)
Sent: Thursday, July 10, 2003 4:49 PM
To: 'axboe@suse.de'; 'marcelo@conectiva.com.br'
Cc: 'alan@lxorguk.ukuu.org.uk'; 'linuxkernel@vger.kernel.org'
Subject: cciss updates for 2.4.22-pre3 [3 of 6]


These patches can be installed in any order EXCEPT the final 2 of the 6. They are named p1* & p2* respectively.

This patch was built & tested using kernel 2.4.21 with the 2.4.22pre3 patch
applied. It is intended for inclusion in the 2.4.22 kernel.
Patch name: cciss_2447_scsi_overrun_fix_for_lx2422p3.patch
Changes:
1. Fixes a potential overrun if a medium changer is attached.
Bug fix.
--------------------------------------------------------------------------------------------------------------------
diff -burN lx2422p3.test/drivers/block/cciss_scsi.c lx2422p3/drivers/block/cciss_scsi.c
--- lx2422p3.test/drivers/block/cciss_scsi.c 2003-06-13 09:51:32.000000000 -0500
+++ lx2422p3/drivers/block/cciss_scsi.c 2003-07-07 16:54:58.000000000 -0500
@@ -1182,6 +1182,12 @@
{
case 0x01: /* sequential access, (tape) */
case 0x08: /* medium changer */
+ if (ncurrent >= CCISS_MAX_SCSI_DEVS_PER_HBA) {
+ printk(KERN_INFO "cciss%d: %s ignored, "
+ "too many devices.\n", cntl_num,
+ DEVICETYPE(devtype));
+ break;
+ }
memcpy(&currentsd[ncurrent].scsi3addr[0],
&scsi3addr[0], 8);
currentsd[ncurrent].devtype = devtype;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.760 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site