Message ID | 20210202123658.22308-1-joey.gouly@arm.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=E8YZ=HE=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A868C433E6 for <linux-arm-kernel@archiver.kernel.org>; Tue, 2 Feb 2021 12:38:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0208564F59 for <linux-arm-kernel@archiver.kernel.org>; Tue, 2 Feb 2021 12:38:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0208564F59 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=AcCKuaSOM9TP7x2rlQqThXannmDP/7hSWPf/Lqn0euI=; b=bjxg/4LVAE282/K/FSYTHcM0cc cm9QhLXmHMOYwzdh2wqK5RM4/hvz7/rrXvcYtnd8RvlqvBQDLBo69DPvFarO7q0SmkF0TwBYVD1pC xDp6utCjPlgtdq+dK0fVyAc88ZKffE7ZNqluOhm0bQVVVo1cvhbcjEIwVnYzVxCQ0bpDJmUnzUy89 BUEs1iBT2VUgGZ9i6Tv5RtkJXELvZSvLyuJtq8pNZhbghgZ4HHGV4JFkVW4AqJpJ4U0qwegeqfHCl 0w0lW1Zw7RAw/yQ2pv5UDgq45cjC7XXZ+TPme4VhGM3Pl1xIkTfOlldGmycUsgEMRsbsIj00c2goC hKsMuoDA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6uw3-0002N2-H8; Tue, 02 Feb 2021 12:37:35 +0000 Received: from mail-eopbgr60053.outbound.protection.outlook.com ([40.107.6.53] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6uvz-0002M8-Rk for linux-arm-kernel@lists.infradead.org; Tue, 02 Feb 2021 12:37:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7LKQghe44LKsclYvrNgIaK6MDH7ME59QHcJKls1INlU=; b=wGuU0R9zUModKpf0me5Y8Yc14RvMtTDvliLSVMoxWiTpjZMxNNVKt0o3EHvPhHsiqMkaNpoYD5JNKK9ehp3JYvLVy7BvUKJqYj/EmrLIi7ZG9k7P4n8y9XXGQ17O2cK3gojMoKlB/mqNYLAXegVQ0iPcEIhr4EjPP51CkDHlzg0= Received: from DB6PR0802CA0029.eurprd08.prod.outlook.com (2603:10a6:4:a3::15) by DB8PR08MB4969.eurprd08.prod.outlook.com (2603:10a6:10:e1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.24; Tue, 2 Feb 2021 12:37:28 +0000 Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a3:cafe::71) by DB6PR0802CA0029.outlook.office365.com (2603:10a6:4:a3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.17 via Frontend Transport; Tue, 2 Feb 2021 12:37:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.infradead.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.infradead.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Tue, 2 Feb 2021 12:37:28 +0000 Received: ("Tessian outbound 8418c949a3fa:v71"); Tue, 02 Feb 2021 12:37:28 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8f39245adcfadf31 X-CR-MTA-TID: 64aa7808 Received: from 44bf7446c3b2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7DE14AD8-E119-4AD4-B4C6-E39686B87773.1; Tue, 02 Feb 2021 12:37:21 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 44bf7446c3b2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 02 Feb 2021 12:37:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eXJpAZ23Fg8y48WLLeyJChs2iuieQCMdP/V1kBRbS+dhI5a9gAXHnj4vfv9Fxm1A5etf4yY8k1Ifsnw0YNbVSDwI+b4jkweyZ7aU3feBT1MP2V10inDdYX2xHq5M8reSDn4z0TdjhCVaEwHIY2fEYmxP+szdcOvIBtP6wSvtFU4G7PShrQT68G2ekOADdiyUrF0c0PRRNpefcQ3YJARVF3lspthyJ3Wc4onw72Ft3zj2jIy5wgCuXj4QMIaJQNhNvP1F1q1ESGHO7KJhBe6vOM5E6C2dIPhbHY1D4OCKcMsViy27fRTqFh/6uY+JnvT2FCljLrpjUVZnnarR+Wo1bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7LKQghe44LKsclYvrNgIaK6MDH7ME59QHcJKls1INlU=; b=ERheYR2CcJEd07MI3NiTpqS9P/0IDx+DbyosCvoH72Aa1LOAV1sMf4AeWGtkPM9oiFjplTtIDT50uxS1xyX7UtnJdbAp8+1v3xE+0Oa4laV6r5cbE657uE0TzgfvlIJk5BYuRdzIrBoWVB7J/dE8Z+b9NplfIvVkU4QCehwg9l3O7LVG/3r1PhriMJ9V3wtNNw7Ix226vU3DXMHZVN1UKbdQ5CseStnnvDilPgN7aSTKWsoPhoMacHX+8Fk9x1MZCyVtWJI437J6nrsrSlzHL72L5/1HSE1i1HBraWzMtxr/S8OTR6Pp9Ce6rG/5PBgYbq0eTi1JjIYBC+VTIibXDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7LKQghe44LKsclYvrNgIaK6MDH7ME59QHcJKls1INlU=; b=wGuU0R9zUModKpf0me5Y8Yc14RvMtTDvliLSVMoxWiTpjZMxNNVKt0o3EHvPhHsiqMkaNpoYD5JNKK9ehp3JYvLVy7BvUKJqYj/EmrLIi7ZG9k7P4n8y9XXGQ17O2cK3gojMoKlB/mqNYLAXegVQ0iPcEIhr4EjPP51CkDHlzg0= Received: from MR2P264CA0066.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:31::30) by DB6PR0801MB1800.eurprd08.prod.outlook.com (2603:10a6:4:38::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.24; Tue, 2 Feb 2021 12:37:20 +0000 Received: from VE1EUR03FT036.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:31:cafe::52) by MR2P264CA0066.outlook.office365.com (2603:10a6:500:31::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.22 via Frontend Transport; Tue, 2 Feb 2021 12:37:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT036.mail.protection.outlook.com (10.152.19.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3784.11 via Frontend Transport; Tue, 2 Feb 2021 12:37:20 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2044.4; Tue, 2 Feb 2021 12:37:06 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Tue, 2 Feb 2021 12:37:05 +0000 Received: from e124191.cambridge.arm.com (10.11.7.12) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Tue, 2 Feb 2021 12:37:05 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> Subject: [PATCH 0/2] Introduce macros for the offsets to reserved_pg_dir and tramp_pg_dir Date: Tue, 2 Feb 2021 12:36:56 +0000 Message-ID: <20210202123658.22308-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9850ed19-84f3-44cc-e80d-08d8c7774d56 X-MS-TrafficTypeDiagnostic: DB6PR0801MB1800:|DB8PR08MB4969: X-Microsoft-Antispam-PRVS: <DB8PR08MB49694CB2277650462E16EA0894B59@DB8PR08MB4969.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6430;OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ZsVe6Hsxt3tyzfMnuFAosP2Hz1SVXQeorvQVGxHvG06Fbn4BSkhCJo6vIdMGkWrz60cjPpZQBgra33s2kXh8mGGX4Yh23M9d1p1HG8fJcLAKc9tjotivkbEMN9KNLYKiYxYLJRkr9iEjqc8G0Ys357saUBNvFBVIU6d7qwQUJsf3PzWbtH9D9PFkf8VrOB1MbFNeDQ4TYJ6siX7tYEV/RA6Dlz+VEfL+PKRtvbalsXaWfMy1GQB67FqEUQuKpWgH1VRBUDjne91VDmyecw/F2TkyI7gFJxpN5vow2vR5cGWx/G2NL4WQgvXJ+FKE7Y+E9B9pcRso4MTKP/40hfKnKPvmRBiI7Wd7NnXH2pp6oYvaOs/fbC1foSOPf/O5qIKJOFWMm9ltq+QQZetPRZPVg6s7yKy6cq+tlmOgOTInZgJIg+uPeuPjcyGmY8Q5ZFsz5p4IuH36aEPpjLDe0eTQwXXlHOVP/U+7gZndzVytjg1KFs5Xn0234OhB6zDOSkB3nK0D7T+Ehmk2MNhquhpq4jfEo4N3D9LBsyBMt4ymG/e8W6u/H/q/WN0ugk/L5J0hEVzr7hRVJcnitgFPGdnIc34Q1AQ0usjGufT6i5Lm96rGduqHTutbb+GBJyJBBXZaHSZ/L+Mik6Xt5QJ9+SJE2NWY7e9F00euRx83B+ozBgo= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(396003)(39860400002)(136003)(346002)(376002)(36840700001)(46966006)(186003)(336012)(81166007)(478600001)(44832011)(82740400003)(4744005)(83380400001)(6666004)(26005)(6916009)(426003)(70206006)(2616005)(82310400003)(2906002)(86362001)(8676002)(7696005)(54906003)(36756003)(8936002)(4326008)(70586007)(356005)(1076003)(316002)(47076005)(36860700001)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1800 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 1f7007d7-3c8f-44bd-b0a9-08d8c7774851 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p1OEfFxFeKn6kU9L84/EnX9kCgPioZD1qvhSyGfHUeWw/3t+TiEGqELpwCPHPzt/pFarWtI8r/maLBT7L8FTbsOKcoIDEuiQ5xcYiTxbVhC9YLBXCObycDOfvnm6guNgvGGe7hLMqYxHF01bO382t7/xpsDHP6FDxYD9wlMlft4ert85BkkeTqnWhb+BR4aEcm/MYnTdksWdfYC1S33GKT/K2AlimP07DYlrpo12hOCuIiheR3ciwDU7NjByN3CIW5k4uwzYcvPCO3avjiMiSHgODDMvsaO6UQsojJa+z8XWuDHRuSLvoFVDBt0E62v7rWg69/fNhcvM0W/u/R3IsFP0XKmKPln0o00xaA3ecXiIa8kQpJeorEkM983Pj3sSRxGecivo1cEmZN6wO6I3JsuYh6GANbFYdrJLXP2QpufD9rIQgNRqFgMUjErqwXjuqDEYm1o7WFc7DufN6L16BJaiB1aBYYcknxGO59yW7Ts7SnwVffQA7tzsLGMgG0pjal10AUojvjpcLiWZqHCnT/XoY+2wW1rCGraLEODJwmMdBaPlawffdYXhmGOTULgeDiUAc1oe7nFZvqa9m63wQQW+FTjRJXl1fGotV1AG3pRL+XprgY2lfX47Y4EGNq8HZqjsCrAS9V9ysEWBtlLnpUL5tEbsVVVAyRvT2In2LDk= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(346002)(376002)(39860400002)(136003)(396003)(46966006)(36840700001)(81166007)(82740400003)(5660300002)(54906003)(82310400003)(4744005)(6666004)(36860700001)(70586007)(316002)(7696005)(70206006)(26005)(1076003)(2616005)(426003)(86362001)(186003)(36756003)(47076005)(4326008)(336012)(2906002)(83380400001)(44832011)(6916009)(8936002)(8676002)(478600001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2021 12:37:28.5411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9850ed19-84f3-44cc-e80d-08d8c7774d56 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4969 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210202_073732_031341_5A815ECB X-CRM114-Status: UNSURE ( 9.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, nd@arm.com, Will Deacon <will@kernel.org>, Joey Gouly <joey.gouly@arm.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Introduce macros for the offsets to reserved_pg_dir and tramp_pg_dir
|
expand
|
On Tue, Feb 02, 2021 at 12:36:56PM +0000, Joey Gouly wrote: > Make the offsets to reserved_pg_dir and tramp_pg_dir less fragile by > introducing macros that contain their offsets. > > Also use these macros to verify the offsets at link time. I like the idea, the implementation appears to be correct, both patches build and boot without issue, and if I mess with the offsets I get the expected warnings. So, for both patches: Reviewed-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Mark. > > Joey Gouly (2): > arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset > arm64: vmlinux.ld.S: add assertion for tramp_pg_dir offset > > arch/arm64/include/asm/asm-uaccess.h | 4 ++-- > arch/arm64/include/asm/memory.h | 12 ++++++++++++ > arch/arm64/include/asm/uaccess.h | 2 +- > arch/arm64/kernel/entry.S | 4 ++-- > arch/arm64/kernel/vmlinux.lds.S | 8 ++++++++ > 5 files changed, 25 insertions(+), 5 deletions(-) > > -- > 2.17.1 >
On Tue, 2 Feb 2021 12:36:56 +0000, Joey Gouly wrote: > Make the offsets to reserved_pg_dir and tramp_pg_dir less fragile by > introducing macros that contain their offsets. > > Also use these macros to verify the offsets at link time. > > Joey Gouly (2): > arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset > arm64: vmlinux.ld.S: add assertion for tramp_pg_dir offset > > [...] Applied to arm64 (for-next/misc), thanks! [1/2] arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset https://git.kernel.org/arm64/c/00ef54341936 [2/2] arm64: vmlinux.ld.S: add assertion for tramp_pg_dir offset https://git.kernel.org/arm64/c/0188a894c390 Cheers,