[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160701121626.GA14984@yexl-desktop>
Date: Fri, 1 Jul 2016 20:16:26 +0800
From: Ye Xiaolong <xiaolong.ye@...el.com>
To: Baoquan He <bhe@...hat.com>
Cc: Kees Cook <keescook@...omium.org>, lkp@...org, tipbuild@...or.com,
linux-kernel@...r.kernel.org, Yinghai Lu <yinghai@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Josh Poimboeuf <jpoimboe@...hat.com>,
"H.J. Lu" <hjl.tools@...il.com>, "H. Peter Anvin" <hpa@...or.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
Denys Vlasenko <dvlasenk@...hat.com>,
Brian Gerst <brgerst@...il.com>,
Borislav Petkov <bp@...en8.de>,
Andy Lutomirski <luto@...nel.org>,
Andrey Ryabinin <aryabinin@...tuozzo.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Ingo Molnar <mingo@...nel.org>
Subject: Re: [x86/KASLR] ed9f007ee6: -- System halted
On Fri, Jul 01, 2016 at 03:50:32PM +0800, Baoquan He wrote:
>Hi Xiaolong,
>
>Could you please apply below patch and see if it works for you?
Hi, Baoquan,
Please check enclosed dmesg after apply your fix patch, does it meet
your expectation?
Thanks,
Xiaolong
>
>>From 46c2a9ecd11f61d952253e005bbd7dcbffa652fb Mon Sep 17 00:00:00 2001
>From: Baoquan He <bhe@...hat.com>
>Date: Fri, 1 Jul 2016 15:34:40 +0800
>Subject: [PATCH] x86/KASLR: Fix code bug of finding earliest overlap
>
>Signed-off-by: Baoquan He <bhe@...hat.com>
>---
> arch/x86/boot/compressed/kaslr.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c
>index 304c5c3..8e1fdf7 100644
>--- a/arch/x86/boot/compressed/kaslr.c
>+++ b/arch/x86/boot/compressed/kaslr.c
>@@ -285,6 +285,7 @@ static bool mem_avoid_overlap(struct mem_vector *img,
> if (mem_overlaps(img, &mem_avoid[i]) &&
> mem_avoid[i].start < earliest) {
> *overlap = mem_avoid[i];
>+ earliest = overlap->start;
> is_overlapping = true;
> }
> }
>@@ -299,6 +300,7 @@ static bool mem_avoid_overlap(struct mem_vector *img,
>
> if (mem_overlaps(img, &avoid) && (avoid.start < earliest)) {
> *overlap = avoid;
>+ earliest = overlap->start;
> is_overlapping = true;
> }
>
>--
>2.5.5
>
Download attachment "dmesg.xz" of type "application/octet-stream" (21712 bytes)
Powered by blists - more mailing lists