Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 662e0dcb authored by qqzhou's avatar qqzhou Committed by Gerrit - the friendly Code Review server
Browse files

arm: mm: init: check for upper PAGE_SHIFT bits in pfn_valid()



If the pfn passed is too big and invalid, the checks in
pfn_valid() will pass because it misses to check overflow.
This will cause that calculated page pointer is overflow and
invalid, then kernel panic happens. Add checks for pfn overflow
in pfn_valid().

Change-Id: I461fb5db8de52f2249b4f70f188d6c5bfe6902f4
Signed-off-by: default avatarqqzhou <qqzhou@codeaurora.org>
[spathi@codeaurora.org: resolved trivial conflict]
Signed-off-by: default avatarSrinivasarao P <spathi@codeaurora.org>
parent 5f31c3a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment