Skip to content

Avoid panic in case of buggy bios

Glauber Costa linux-acpi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Avoid panic in case of buggy bios

Hi,

I've came across a panic today after failing acpi_processor_start() in this condition:

        if (processor_device_array[pr->id] != NULL &&
            processor_device_array[pr->id] != device) {
                printk(KERN_WARNING "BIOS reported wrong ACPI id "
                        "for the processor\n");
                return -ENODEV;
        }

The problem is that there are some data structures that are not initialized if we exit that early, but the removal functions assume to be present. One solution would be to move the checks to the bottom of this function, after all the initializations are complete, but I personally think this is not a good idea, from the waste point of view.

So I'm attaching a series of 4 patches that provides a criteria to decide whether or not we got past the point of initializing that data structures, and using it to conditionally unregister them latter.

Hope it's okay with you