Skip to content
Commit 9983b6f0 authored by Tejun Heo's avatar Tejun Heo
Browse files

percpu: fix first chunk match in per_cpu_ptr_to_phys()



per_cpu_ptr_to_phys() determines whether the passed in @addr belongs
to the first_chunk or not by just matching the address against the
address range of the base unit (unit0, used by cpu0).  When an adress
from another cpu was passed in, it will always determine that the
address doesn't belong to the first chunk even when it does.  This
makes the function return a bogus physical address which may lead to
crash.

This problem was discovered by Cliff Wickman while investigating a
crash during kdump on a SGI UV system.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarCliff Wickman <cpw@sgi.com>
Tested-by: default avatarCliff Wickman <cpw@sgi.com>
Cc: stable@kernel.org
parent a92d3ff9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment