On Fri, Sep 23, 2016 at 5:08 PM, Thomas Gleixner wrote:
> map_processor() checks the cpuid value returned by acpi_map_cpuid() for -1
> but acpi_map_cpuid() returns -EINVAL in case of error.
>
> As a consequence the error is ignored and the following access into percpu
> data with that negative cpu
Commit-ID: c183a603e8d8a5a189729b77d0c623a3d5950e5f
Gitweb: http://git.kernel.org/tip/c183a603e8d8a5a189729b77d0c623a3d5950e5f
Author: Thomas Gleixner
AuthorDate: Fri, 23 Sep 2016 17:08:04 +0200
Committer: Ingo Molnar
CommitDate: Fri, 23 Sep 2016 18:04:56 +0200
acpi: Fix broken error
map_processor() checks the cpuid value returned by acpi_map_cpuid() for -1
but acpi_map_cpuid() returns -EINVAL in case of error.
As a consequence the error is ignored and the following access into percpu
data with that negative cpuid results in a boot crash.
This happens always when NR_CPUS/nr_c
3 matches
Mail list logo