From patchwork Wed Nov 15 21:34:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10060325 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D1E160231 for ; Wed, 15 Nov 2017 21:36:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF4E62A118 for ; Wed, 15 Nov 2017 21:36:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E40CF2A312; Wed, 15 Nov 2017 21:36:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92EC62A118 for ; Wed, 15 Nov 2017 21:36:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932911AbdKOVgU (ORCPT ); Wed, 15 Nov 2017 16:36:20 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:34632 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759150AbdKOVe4 (ORCPT ); Wed, 15 Nov 2017 16:34:56 -0500 Received: by mail-io0-f194.google.com with SMTP id q101so3103837ioi.1 for ; Wed, 15 Nov 2017 13:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5Qmie4ZYALDeHr5QKxoVxjyygfyLbxYmJ/scy5dVTWk=; b=MN2XunFaXc0SrCd4+uhNVDrgsFUUOWBOwJWYR23/FaU8giBJRLywlZnfi85uFD0eEY DiGNbj9NtIIM/boQBOZGWVxDIhWsCOUOeFZkND9OhUsXWBzzQTJYHzi658abRyq4TbX+ m02GLBChrSdtda5kDOoC4iw0QjJZzUmBj9IcmYo5w2zi5MOV9Hw6xo0qmL7xwgl7LjoA /ni/5pqquPOXLwmCWeWSYMG9BnIdf3CthO6fKFkM0CfWPTNNMt0kESjJE8bUwKOVV/2f 2silEOOxDUTRDIHXWRrB+wrTycJDo1CZ2QGlU+QjIYAjd082j/YJ0s6+RVV3IMNaLjkE KjhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5Qmie4ZYALDeHr5QKxoVxjyygfyLbxYmJ/scy5dVTWk=; b=rYP0R103dOqBi9Dhz6rwqGWTRSgqWYntXyE6vpQQVAQ/EEz924YH7fU9zf1/R/rc60 ZhYsM67c2aIU1omGhlDOTErHpOGnMOjvDBJy9MSO4TovjSelA9FWP6FYWCsIcH5GcPTa 6CV5dRa8NMrOXM3Fzqp3SQpqGW0ItuMsFtLU08y4AEUFuXSo7sMxIsYy30i2FzpunDU5 9yWF6MkN/8Tvq+6i4AVnNdx51EF/gy1T3lT6SDjx5fEancxovm3s1soAuHst51g9zGPr KbLTafIoOSfIIceFHmwGy0IjQBzHI/KT9/7UDnyDrWxwdEBjRGLvWcWBVxfpGTwhAfJa C8rQ== X-Gm-Message-State: AJaThX4XCQrP3/xeBL0U2NvUqEaYszauPUn9bTNpEwacYHiuXxSsgtA+ wn13MzEiPTG6bEy0ZRP6ZaZNZg== X-Google-Smtp-Source: AGs4zMYTwEXHRQpjgfePZr2JAhEg48TQJTJJXSZFq9yXjDyCqTJcE+X0I/6Y6bRWAGhSmq8IEBgDFQ== X-Received: by 10.107.9.37 with SMTP id j37mr19400799ioi.111.1510781695503; Wed, 15 Nov 2017 13:34:55 -0800 (PST) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id 68sm9735197iov.2.2017.11.15.13.34.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 13:34:53 -0800 (PST) From: Sami Tolvanen To: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Cc: Sami Tolvanen Subject: [PATCH v2 08/18] arm64: don't disable ADR_PREL_PG_HI21* with ARM64_ERRATUM_843419 Date: Wed, 15 Nov 2017 13:34:18 -0800 Message-Id: <20171115213428.22559-9-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171115213428.22559-1-samitolvanen@google.com> References: <20171115213428.22559-1-samitolvanen@google.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CONFIG_LTO_CLANG depends on GNU gold, which can generate ADR_PREL_PG_HI21* relocations even with --fix-cortex-a53-843419. Signed-off-by: Sami Tolvanen --- arch/arm64/kernel/module.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c index f469e0435903..fec9a578f122 100644 --- a/arch/arm64/kernel/module.c +++ b/arch/arm64/kernel/module.c @@ -336,14 +336,12 @@ int apply_relocate_add(Elf64_Shdr *sechdrs, ovf = reloc_insn_imm(RELOC_OP_PREL, loc, val, 0, 21, AARCH64_INSN_IMM_ADR); break; -#ifndef CONFIG_ARM64_ERRATUM_843419 case R_AARCH64_ADR_PREL_PG_HI21_NC: overflow_check = false; case R_AARCH64_ADR_PREL_PG_HI21: ovf = reloc_insn_imm(RELOC_OP_PAGE, loc, val, 12, 21, AARCH64_INSN_IMM_ADR); break; -#endif case R_AARCH64_ADD_ABS_LO12_NC: case R_AARCH64_LDST8_ABS_LO12_NC: overflow_check = false;