[Crash-utility] [PATCH] Add support for 'foreign' page sizes in kdump dumps

Bernhard Walle bwalle at suse.de
Thu Jan 15 16:06:14 UTC 2009


* Dave Anderson [2009-01-14 14:08]:
> 
> Unlike Robin's patch, your patch to read_dump_header() drops this error check:
> 
>         if (sizeof(*header) + sizeof(void *) * header->nr_cpus > block_size ||
>             header->nr_cpus <= 0) {
>                 error(INFO, "%s: invalid nr_cpus value: %d\n",
>                         DISKDUMP_VALID() ? "diskdump" : "compressed kdump",
>                         header->nr_cpus);
>                 goto err;
>         }
> 
> I didn't write this, but it seems to be a valid check.  Did you determine
> that it's impossible even though crash does allow 4096 cpus for ia64?
> Or is it a bogus to begin with?

No it's just wrong. Fixed in the next version of the patch. Thanks for
catching this.


    Bernhard
-- 
Bernhard Walle, SUSE Linux Products GmbH, Architecture Development




More information about the Crash-utility mailing list