Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3927824pxb; Tue, 19 Apr 2022 12:46:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH6I7LZy0OAtD1g/tk+fn/SFyQfH0gkrq2yUmLCHEfxCkCMXXWK6jTJw46ewAuUk7DPdcJ X-Received: by 2002:a17:90a:fb97:b0:1cb:adf9:88ba with SMTP id cp23-20020a17090afb9700b001cbadf988bamr253457pjb.46.1650397608037; Tue, 19 Apr 2022 12:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650397608; cv=none; d=google.com; s=arc-20160816; b=q03LGOWPO5VbmSeNTvArd2a5TJ5o0KOi1Uf+8L/b+dotS2lfZAkVD7JjOJ2nFnvAYJ /C1vpfMIgQ6fMPDbyLMEStSoB63yy5xcmCmFIYxS0Uk9d4GGCKrfQ4r1hU4i1taOr9hn N2Wy0i7tLuTi9zqWrhTXtycpRuJoaQPjwtOvLAGP2KIK62Rur7nRUjyhRmMRdlUnfUmP muiPdMtogqGMw4kJ6uUiGVgXtLsEPcsj7MwDnv3BugjVQKB9bGT0C4i6IpJ0gbMSK/Qf WgCtiRXZccbytf3cstMZJpmLL6BCItTVeF4dhtOSDmHsxhOMKQJHpJCxQN1UMy7HWp9Y 5Ltg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LaqdOpRj1oTwBXr1THkhzRpDdOCvple8ZRSoYuUsYeI=; b=UUKbdH/+dcjHexrHdeaXqcvZ50hLdh+jmAu3HXYbIZsPtuUS0mVI3PEfVq42v2cSG/ ebL2bteWQ2y8vhHmx+KHLMpUH/Yf4cG7DJZ4uAMRVQki886QxIpH27Yov0nsTanK7hh1 3QNgkPejrllSmZ0bL6Rk0mChQ/zx2BOu6RLzNYEXSGzunLlrh6PiEjlLxsRdp+UvrKdQ bc3QKSFdjKOTKZmJkXOcC4YLib712DLR49ziVKYRlFoIPetle+RZ2vh/Rv05UF5OilHm WN25pb8TcKe+qxpy0XhL5PHkgCsTNLKBRlPa9vWj/10ka8vT2YiAej1pM3DSQ7VkWZiZ hEMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a1709026b0b00b00153b2d16616si88376plk.542.2022.04.19.12.46.32; Tue, 19 Apr 2022 12:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348960AbiDSGpu (ORCPT + 99 others); Tue, 19 Apr 2022 02:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237608AbiDSGpt (ORCPT ); Tue, 19 Apr 2022 02:45:49 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D06D2D1FF; Mon, 18 Apr 2022 23:43:08 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KjDl90WqmzhXfg; Tue, 19 Apr 2022 14:43:01 +0800 (CST) Received: from dggpemm500014.china.huawei.com (7.185.36.153) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Apr 2022 14:43:05 +0800 Received: from localhost.localdomain (10.175.112.125) by dggpemm500014.china.huawei.com (7.185.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Apr 2022 14:43:04 +0800 From: Wupeng Ma To: , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH 0/2] Add support to relocate kernel image to mirrored region Date: Tue, 19 Apr 2022 15:01:48 +0800 Message-ID: <20220419070150.254377-1-mawupeng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500014.china.huawei.com (7.185.36.153) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ma Wupeng Now system image will perfer to be located to mirrored regions both KASLR on and off. Ma Wupeng (2): arm64/boot/KASLR: Add support to relocate kernel image to mirrored region arm64/boot: Add support to relocate kernel image to mirrored region without kaslr drivers/firmware/efi/libstub/arm64-stub.c | 62 +++++++++++++++++++++- drivers/firmware/efi/libstub/efistub.h | 7 ++- drivers/firmware/efi/libstub/randomalloc.c | 14 ++++- 3 files changed, 79 insertions(+), 4 deletions(-) -- 2.25.1