Description of problem:
Function find_dump_device() is always called with void * argument,
but uses it as struct dump_device_s *, which is wrong.
Found in the original diskdump patch, on FC3. Probably exists also
in FC4 or other red-hat products.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Initial diskdump (over 2.6.9) patch has the same pb.
- In ide-dump.c, the function ide_dump_probe returns a ide_drive_t
- In scsi_dump.c, the function scsi_dump_probe returns a scsi_device
The value returned by xxx_probe is given as is to find_dump_device(),
which use them as disk_dump_device pointers. Below, one possible patch :
diff -ru linux-2.6.12.old/drivers/block/diskdump.c
--- linux-2.6.12.old/drivers/block/diskdump.c 2005-10-02 02:49:49.000000000 +0200
+++ linux-2.6.12.new/drivers/block/diskdump.c 2005-10-03 01:47:59.000000000 +0200
@@ -689,12 +689,12 @@
-static struct disk_dump_device *find_dump_device(struct disk_dump_device *device)
+static struct disk_dump_device *find_dump_device(void *real_device)
struct disk_dump_device *dump_device;
list_for_each_entry(dump_device, &disk_dump_devices, list)
- if (device->device == dump_device->device)
+ if (dump_device->device == real_device)
Other related BUG #id
167752 â Either diskdumputils should be removed or diskdumps supported
I had a look into the kernel.src.rpm :
None of dump-ide or dump-scsi are present, but they exist in diskdump-1.0
archive. Is diskdump still supported ?
I'm not sure who needs to look at this. Can you see to it that the proper
maintainer is alerted?
Thank you. Your patch is correct. Actually the diskdump for kernel v2.4 has the
same code which you provided. Porting to v2.6 seems to have slipped the bug into
(In reply to comment #1)
> Other related BUG #id
> 167752 â Either diskdumputils should be removed or diskdumps supported
> I had a look into the kernel.src.rpm :
> None of dump-ide or dump-scsi are present, but they exist in diskdump-1.0
> archive. Is diskdump still supported ?
diskdump is not supported in FC.