From patchwork Fri Jun 25 07:47:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 12343975 Return-Path: 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=-10.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 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 6ABDEC2B9F4 for ; Fri, 25 Jun 2021 08:22:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 33C0361426 for ; Fri, 25 Jun 2021 08:22:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33C0361426 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date: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=PR2TQnIbrp8Fn/BEeAz4VXfvBYq1LLdNNWI/BeoWx14=; b=QoLHSBqABALeQm J0QHQTmUvD/RXdvHAsBdKuJuV0GpYJGYu2yISopwYFt8VSIj5ZNLJwA8uSRKoVssC2sbyLStXwoIn ma8USktXinkwjWQ0SD5ufejhSXOnO3+ZPVbqBpWqtkmlz1P/NXQtNStnUcj/eyMbuaaR4kALNY5xJ XTLUZ1aPsx/7/e0iDXlzK6gO9y60s5UWi4+0PwY91hx1q1vU/1jMfpOE/EBeFVU1+nwiQ3Zju+/P2 7sJyY/3r2nVlRBKnwqnQBNI9tKwjU5YWGJVonxSO4vU8ohVYgc31trtkIfOQXHQLpX5Acgcs9/69K dyeXcv4Akp0/HV9NC+gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwh3r-000GxT-Vf; Fri, 25 Jun 2021 08:19:41 +0000 Received: from mail-bn8nam12on2082.outbound.protection.outlook.com ([40.107.237.82] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwgiV-000AWN-4w for linux-arm-kernel@lists.infradead.org; Fri, 25 Jun 2021 07:57:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l0tuRzMZ2s5uEoc8fivt0X39ZPC/f1a4cL7U8rG8hQ8LUAxSTJYPTaTHvm5ICfL0bS76S8M2jFCeKKFo7djQ6CLfa/Z+m+tHQJgsI6AJzz4aOw9nlQ/Hs5pbGpYijz+mdZ79OgYHxrDZhPZlSBOyLPQiIVfuxKlf/qXj4+ZNwtvHwHwBIulVgdSGfdfXgqzxeq0FmcZGKASgkmJH7ANJa1PD44r4VJF1HexnwWP7e6eMZgvc6nhOAZnClblOEoyq43kW9UK48F+AZuZPvrsoqeZt2+pb/qLdJ+ULELOjkzlt87XtZKLQ35P6Zd8Nc3E68Ytqs/gkzP5kWDh0jvkZjQ== 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=qXwpmuvs8V+tqz+zrEd4Nv0UOZaFZ0xuycRTjfjsDXo=; b=kUWBVgN4fw4H1hCLRpkajSbut3kytzMCudXS5d2uFPNAs8o/ivoW+cnkh++RMJZLNZllG0Q4Fp7pmDXZvDe73bu3ZVNbMK1Yuf/Iiros7gbmyuFSo5ARD/KwmYNZjouNgTcI+vEBdQ5L88QvGhGhqI/q2dOULtexSAAwl+3Ieq18SlI+yIsYttk/6nZD91jlenq1wb9fmZN9T8+2L5j4W1eZSGobDo4JfHxIzZuusRLR+h08OWRimirLvODs25j9noT/tRbkP7ZDfI7R79tPK3JgOgNy5mJws/UMACk32XULBc4CRCbaJWMrBpuU9OwGpfoD8k9O1DJ9xnRU+DsxBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qXwpmuvs8V+tqz+zrEd4Nv0UOZaFZ0xuycRTjfjsDXo=; b=kizPdot40ZgzBVpOg4GZIsfqUdg/bR0+GdGMroaeuebAN9TS36A2mTiPLwJL3srLCqw+kScpamWApAtVgusBgYBp/6dhnc2lkCI07KJOAAp3FmopEe+UhqyLi2qcwCEUPAFkcEia1EV7BuAatNcV0ky9wP+Py68f0PaswCpvN60= Authentication-Results: google.com; dkim=none (message not signed) header.d=none;google.com; dmarc=none action=none header.from=synaptics.com; Received: from BN9PR03MB6058.namprd03.prod.outlook.com (2603:10b6:408:137::15) by BN9PR03MB6137.namprd03.prod.outlook.com (2603:10b6:408:11a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.20; Fri, 25 Jun 2021 07:57:33 +0000 Received: from BN9PR03MB6058.namprd03.prod.outlook.com ([fe80::502a:5487:b3ee:f61c]) by BN9PR03MB6058.namprd03.prod.outlook.com ([fe80::502a:5487:b3ee:f61c%3]) with mapi id 15.20.4264.023; Fri, 25 Jun 2021 07:57:33 +0000 Date: Fri, 25 Jun 2021 15:47:37 +0800 From: Jisheng Zhang To: Nick Desaulniers , stable@vger.kernel.org, Greg Kroah-Hartman , Nathan Chancellor , Ard Biesheuvel , Sami Tolvanen , Masahiro Yamada , Sedat Dilek , Thomas Bogendoerfer Cc: Catalin Marinas , Will Deacon , Alan Modra , =?utf-8?b?RsSBbmctcnXDrCBTw7JuZw==?= , Quentin Perret , linux-arm-kernel@lists.infradead.org Subject: [PATCH stable-v5.4 v2 0/2] properly cope with -z norelro Message-ID: <20210625154737.3d64a434@xhacker.debian> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Originating-IP: [192.147.44.204] X-ClientProxiedBy: BYAPR06CA0033.namprd06.prod.outlook.com (2603:10b6:a03:d4::46) To BN9PR03MB6058.namprd03.prod.outlook.com (2603:10b6:408:137::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from xhacker.debian (192.147.44.204) by BYAPR06CA0033.namprd06.prod.outlook.com (2603:10b6:a03:d4::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19 via Frontend Transport; Fri, 25 Jun 2021 07:57:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98a6cf4b-41ab-4eb6-6597-08d937aee393 X-MS-TrafficTypeDiagnostic: BN9PR03MB6137: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:454; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zuhxy2pZZffxcvXeGYZnh8B8Afz4ygi/N0OGDNjib1pde19uRr8DqMdNkkDDhVMBn68N/5r5HKnubR93I5ly39Vo2qVCtEa0Jfbd9HnE+W4+rBBD5gA0tfd7DWsFgxyQ77C6G8F4CK7zzry8vui5pPgYZ+eBfqaOYBmeV02weXKISR/wFbt/6dPo6HCT5nZXhzSjoMds1/Ij54Tftjoous+SNMnqmtMzZd1qthdzrjR0Ky41xvEF3SqnlPk2byjKeiDKH/xyrfnTjLIhP+57FKYK49+9NQYRM1/yRvbcNuyxAG2lIJy5n1UL770amFaYRGnYWb7w+Aw1S0fQUe4RLarIjrnfi93uKyx+0uoLA2yHMOVYKHthYuJIdLB/amrNI2DOVUGmDMU9OAK11rA/JTsllg9eCUYBBZkVmNuL9elvNyFKrtp86P1IMkrO/H2+wHZ9mae9ndIHfBYgaQ+OyFpjeVS+hylrc1RTruHtw8XkC8BO1G3aMAHx9YbkKs5ivEPCehhSV0ZADJ+qxz7aBN3M0TgDiocfQIik2j98N2rUj9Czmqywf1Hy1Kp9ZIQBmN1+wfqTYQ2KaL5apWisBPfyNUmefSr2+TSaGTFmYJgCIOD9mFyb9n+T41SBijysMKOYCPaHpXX5ZmfRfYcbT5gPtgzd2xEVwp11XHN0KzwknceXGoX0zxELtvLSqreHGPH/vog3ZkwLL+RCk43dPA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN9PR03MB6058.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(136003)(366004)(396003)(39850400004)(376002)(4744005)(52116002)(2906002)(186003)(66946007)(316002)(6666004)(66476007)(8936002)(66556008)(7696005)(26005)(478600001)(55016002)(5660300002)(16526019)(9686003)(110136005)(7416002)(1076003)(54906003)(86362001)(6506007)(8676002)(38350700002)(38100700002)(956004)(4326008)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: N//9Hyiv7sme01rnuU8Uu9Z6oH9pS8AdK4mk6M5V2nFdns50VuSscuEyZ6qXatXdB94kGW1V26AefLnuoD5KrGESoLvwt2m3y4/gTFX6yo3PNUq/qof2OGK6D0c2BOVTT2CnW46BOF60TDSxN13zY00Ut5eKR2qYmCPLKionCIufELBjaqKXJ1hPUCG9mSzU79A7uel2g/8Cxok4XrVLe5iI6QsqJs3NoYeovzvR59oh7eOy7zT/M1bA7pv3vSFc+g1weN0uvRXrgcChkXdQ+yn9kJEhg1kFwMKoZH7wjOA4CZY64WJ5fWisSROf8Nxegb5j2fywrTA/Ptz/HcuwAK/ALvL2VB1sPn98cm9C7gS/Z4wH4x7plw/+EEfN4hOIbvtRveegdg3OYLYmO+El2d+mZvO8x+ahbAefmBIzWEjRALTMR1xMS840iGq6JdYEP7l8kTvcXwy8CXzOIrCSsCXxp3lBaq7Tryj89O0lLD0pqv5lbiafNk5l4gztY92yLBDvM49YbbYTHwrrSRHYpFsCkYNvlPrwAU6Gez8p/kfTRPO/b3olTKENF7bbZfWbX4rNUlf0A7ip1sLGZh8sSnRZEsF+72I8/zbgi6sMLT3lt4wOHFx5STYisxxYlwyj6cq6y4Ot77r7mO3ugEoeHorPfw9d3GRREpKBGaX6CYIhL6yv+xqWKNeq9Kb9whcdtA+Vu5TfW9LfvawL1gVvS2kvtV72kZ354hjzVFh2TuYOYOHGCBTXsGnmjl7qRJI7AoHSVrC9rGJ0vh24A/WP4gJPOfBFFmBbRpH3QabsO9dfG3Vvy/ge1ibeEioDQ2ECNDun14WOfcCKoI67UK2bJMy/+p9+MIk7oRCMRMSZKK7HpjCvv2zFRaUCAF0O6FvDqgg7HpViIOZ/8q2XkX42oQUm795h5NSauEqJlF8d+RXovb9SRfaL3cZRxgYIHDlksEpi+7KzUAKv1uEEBZgWpFOFRIfbUbb8Mn8YYe04IgOR2pF90weYAKpaybzs3yIrTDQPaHl7C4W26vqf3tMz8hLI9tnQeP6UPoyrT7CwfAc32MXdXf/qhF80ZI0edPM61bpTUyQdpKccrU7F2sWh04ucdCSJeikOQO3xQSalnW43WvqnrFHht+GXDx2/b+uinGirUP/673FJxClN7LknghCXxQL53R3wWj3KilPOmuDGAEQu9hFSkrRyJDYlpxmD5lildPMGqPlImZHwB3hVRqFOX+XsJJqqjl/It7FTP12Jp3+90oLfgV5O0Kx2EjCNoF0vD8RP1pyK7ibsJ5+QYayR+5IIlFRYCP5lOco7MH76210M+XL9+omAu8HJshSd X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98a6cf4b-41ab-4eb6-6597-08d937aee393 X-MS-Exchange-CrossTenant-AuthSource: BN9PR03MB6058.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2021 07:57:33.2745 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gO6TJWx+tNnUkeRNZZgEpiv/jIkr1zcna8N+z54FydnAR7dJgP9fAiMYm+v/LDwgV4JeZcmvnnUMPznWqZs8Rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR03MB6137 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210625_005735_282709_86B3BF4B X-CRM114-Status: UNSURE ( 6.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix below build warning: aarch64-linux-gnu-ld: warning: -z norelro ignored Since v1 - Backport a preparation patch as pointed out by Nick Desaulniers Nick Desaulniers (1): arm64: link with -z norelro for LLD or aarch64-elf Sami Tolvanen (1): kbuild: add CONFIG_LD_IS_LLD arch/arm64/Makefile | 10 +++++++--- init/Kconfig | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-)