Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932176AbdCWD14 (ORCPT ); Wed, 22 Mar 2017 23:27:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38580 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932104AbdCWD1k (ORCPT ); Wed, 22 Mar 2017 23:27:40 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7765164DAD Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=bhe@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7765164DAD From: Baoquan He To: linux-kernel@vger.kernel.org Cc: Baoquan He Subject: [PATCH v1 RESEND 0/2] x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization Date: Thu, 23 Mar 2017 11:27:33 +0800 Message-Id: <1490239655-20902-1-git-send-email-bhe@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 23 Mar 2017 03:27:39 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 991 Lines: 25 Now EFI region is mistakenly counted into KASLR VA space for randomization because of misusing EFI_VA_START macro and assuming EFI_VA_START < EFI_VA_END. In fact EFI region reserved for runtime services virtual mapping will be allocated using a top-down schema. It will be reused by kexec/kdump kernel. So the mistake will cause failure because vmemmap may be randomized to own EFI region and stomped on the EFI virtual mapping. It's need be fixed. The original post can be found in below link. And this repost just updated patch log, no new code change. The patch 1/2 need be added to stabe kernel after 4.8+. https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1347835.html Baoquan He (2): x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization x86/efi: Clean up a minor mistake in code comment arch/x86/mm/kaslr.c | 4 ++-- arch/x86/platform/efi/efi_64.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.5.5