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: 10060387 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 E6D7360231 for ; Wed, 15 Nov 2017 21:39:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5AD228F09 for ; Wed, 15 Nov 2017 21:39:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C684B29F30; Wed, 15 Nov 2017 21:39:44 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5809928F09 for ; Wed, 15 Nov 2017 21:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=29rDjzK/Ks2UXnCiVtP1McjkD+ETumMLw1q0+PCRSs0=; b=TlewcTIVSfBvbpM4rvTVdZQFYI 1ydF80UG4WgPMw1WFzQWMrHeDSlV7RsZ5Nr+NFLaGZawRpz9UskNwa+iqmiCEYTDrwQW/ccCJZqTO BfF1t9F/CYE1O20Pl/PnhArblsmQTr9Tr2rNaSPbuUrQzl0N8LlbDMCK/vOYTFwuMnd1uSpQLVVRm 11pnNGN2O9puAxGDmUPK+N5/OjW0wfpccrv6zQ+CERtm271ffYn5HZ0JLP1m8S/sYujfsDg4qIH9p 6uA1wIyFmpB6bY1nN1OloU2KgxnmjG2kTGxzjZlcpJqmNT28Mh7p3D2Pkyi8QrfW+++ZJskhfeKg/ mqWSyI9Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eF5PL-00043S-M6; Wed, 15 Nov 2017 21:39:43 +0000 Received: from mail-io0-x241.google.com ([2607:f8b0:4001:c06::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eF5Kz-00089N-IL for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2017 21:35:17 +0000 Received: by mail-io0-x241.google.com with SMTP id u42so3084623ioi.9 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=nZoyRj317gql/Q0Li75fbdscsS3Y7vg7VRMmQziyFeizB6hou/HsNxuvSJw51ZMrAN EYekT+k4Xj+Kd7RYVRoQHiW9Wem5muXegxDxhPFvLoLuzNz/IgwvThqtHOhCDxIPy++D vVEg7u0R8inYoAHEh0hAQ3UV8jNOL7K6bkEU5DtADBGWQ9XQBwLJsliJ06uXLawDMf3p qpEgImDCkY4+P67fn4QRw/h9p5FY2r/881jhNfA8FAv5ZQ8tJVXP3xizGpIr1qnaF1iv 4kBVcMdlPqSwHZ0upQbyKb4tnf9TBf9jb9PH/NRYStHVT0bMBXbm7fsZUipxpZYuLRjK 7J0g== X-Gm-Message-State: AJaThX7wueWSxmLxPZhjbfxQrwEi+KJ/e1BGweRus3MhHGg5pKVXspF8 EieS6k/5JVNYEYjjgYlpK8+arA== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_133514_072262_354A44A6 X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;