]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/KASLR: Fix boot crash with certain memory configurations
authorBaoquan He <bhe@redhat.com>
Fri, 1 Jul 2016 07:34:40 +0000 (15:34 +0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 8 Jul 2016 12:36:19 +0000 (14:36 +0200)
commit6daa2ec0b3e3808c55329d12de3c157cf38b17b0
treed5e027be155e21ed69d63909aa15e9b41721c179
parentdbf984d825935f61965bcfacfd8e8dfdaf3e8051
x86/KASLR: Fix boot crash with certain memory configurations

Ye Xiaolong reported this boot crash:

|
|  XZ-compressed data is corrupt
|
|   -- System halted
|

Fix the bug in mem_avoid_overlap() of finding the earliest overlap.

Reported-and-tested-by: Ye Xiaolong <xiaolong.ye@intel.com>
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/compressed/kaslr.c