From patchwork Wed Aug 26 16:15:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Ryabinin X-Patchwork-Id: 7078411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E87559FB54 for ; Wed, 26 Aug 2015 16:17:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27D2E2094C for ; Wed, 26 Aug 2015 16:17:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B01E20949 for ; Wed, 26 Aug 2015 16:17:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUdMr-0001Uq-4A; Wed, 26 Aug 2015 16:16:05 +0000 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUdMQ-0001CC-Nr for linux-arm-kernel@lists.infradead.org; Wed, 26 Aug 2015 16:15:39 +0000 Received: by lbcbn3 with SMTP id bn3so122714559lbc.2 for ; Wed, 26 Aug 2015 09:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L7e/6LZ4Ab48N0yOnQtvIOH7OpUsrwmDQrb2432EI7U=; b=J7J9N6DYMxwE/cIW1qznet5ntJ9C4l0Y1A5JulWRgEBDe6qRWGdtuKEdXZL1ig9PKm pkWmJ0ux0xrazA388WLnA/QfGOlMaYcp0hYbQEqLuqjtSwxB/S2AZo1OKwu7yzIqHw1j ncWhr2+rhMQ8MCc4x8ZqIWxgeL0lIAbHoidnI+GMGygb/vuPN7oNht9K5eF3D0wEMgFy 3Zd7l8W7UvdmDaFTdC+O/MR8mM26jDLoTicaD1ocq0RqG3qXbL7deie4CgciX2Crxvf3 1DdW5CXB+sbmVyd95VPH+ftYYO+GztZCUZAAUMi2LrwJFD//1eA7c5QogUj/mqmtV9Ye zJSw== X-Received: by 10.112.170.103 with SMTP id al7mr31616375lbc.66.1440605714647; Wed, 26 Aug 2015 09:15:14 -0700 (PDT) Received: from localhost.sw.ru (swsoft-msk-nat.sw.ru. [195.214.232.10]) by smtp.gmail.com with ESMTPSA id ad1sm6866031lbc.5.2015.08.26.09.15.13 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Aug 2015 09:15:13 -0700 (PDT) From: Andrey Ryabinin To: Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] arm64/efi-stub, kasan: don't instrument efi-stub. Date: Wed, 26 Aug 2015 19:15:06 +0300 Message-Id: <1440605707-8325-4-git-send-email-ryabinin.a.a@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1440605707-8325-1-git-send-email-ryabinin.a.a@gmail.com> References: <1440605707-8325-1-git-send-email-ryabinin.a.a@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150826_091539_020373_AD552EC3 X-CRM114-Status: UNSURE ( 8.38 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-efi@vger.kernel.org, Andrey Ryabinin , Arnd Bergmann , Linus Walleij , linux-kernel@vger.kernel.org, Matt Fleming , Alexander Potapenko , Dmitry Vyukov MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP efi-stub.c code runs before we setup early shadow. Intrumentation of it will cause boot crash. Signed-off-by: Andrey Ryabinin --- arch/arm64/kernel/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile index 426d076..086b122 100644 --- a/arch/arm64/kernel/Makefile +++ b/arch/arm64/kernel/Makefile @@ -7,6 +7,8 @@ AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET) CFLAGS_efi-stub.o := -DTEXT_OFFSET=$(TEXT_OFFSET) CFLAGS_armv8_deprecated.o := -I$(src) +KASAN_SANITIZE_efi-stub.o := n + CFLAGS_REMOVE_ftrace.o = -pg CFLAGS_REMOVE_insn.o = -pg CFLAGS_REMOVE_return_address.o = -pg