[lkml]   [2010]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[patch v2] acpi_pad: "processor_aggregator" name too long
    cpi_device_class can only be 19 characters and a NULL terminator.

    With the current name we get a buffer overflow in acpi_pad_add()
    strcpy(acpi_device_class(device), ACPI_PROCESSOR_AGGREGATOR_CLASS);

    Signed-off-by: Dan Carpenter <>
    V2: Thanks to Pavel Machek for coming up with the right name for this.

    diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c
    index 7e52295..790aaa1 100644
    --- a/drivers/acpi/acpi_pad.c
    +++ b/drivers/acpi/acpi_pad.c
    @@ -30,7 +30,7 @@
    #include <acpi/acpi_bus.h>
    #include <acpi/acpi_drivers.h>

    -#define ACPI_PROCESSOR_AGGREGATOR_CLASS "processor_aggregator"
    +#define ACPI_PROCESSOR_AGGREGATOR_CLASS "cpu_aggregator"
    #define ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME "Processor Aggregator"
    static DEFINE_MUTEX(isolated_cpus_lock);

     \ /
      Last update: 2010-03-25 15:43    [W:0.031 / U:123.608 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site