Hi everybody,
I just tried to patch a Linux 2.2.14 kernel to make use of the current
software raid. Someone did a minor change to drivers/block/raid0.c
from 2.2.13 to 2.2.14, so one hunk of raid0145-19990824 failed (diff
output below).
I think this should be introduced into the current raid patch.
pipc22:/usr/src/linux-2.2.13/drivers/block> diff -u raid0.c
/usr/src/linux/drivers/block/raid0.c
--- raid0.c Fri May 8 09:17:13 1998
+++ /usr/src/linux/drivers/block/raid0.c Tue Jan 4 19:12:14 2000
@@ -182,6 +182,12 @@
block=*rsector >> 1;
hash=data->hash_table+(block/data->smallest->size);
+ if (hash - data->hash_table > data->nr_zones)
+ {
+ printk(KERN_DEBUG "raid0_map: invalid block %ul\n", block);
+ return -1;
+ }
+
/* Sanity check */
if ((chunk_size*2)<(*rsector % (chunk_size*2))+size)
{
Best regards,
Arthur
--
arthur dot erhardt at pit dot physik dot uni dash tuebingen dot de
*pgp key available* dg7sea
A physicist is an atom's way of knowing about atoms.