From patchwork Wed Aug 26 16:15:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Ryabinin X-Patchwork-Id: 7078421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6D779C02B0 for ; Wed, 26 Aug 2015 16:18:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64D4C20952 for ; Wed, 26 Aug 2015 16:18:00 +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 8EF2320949 for ; Wed, 26 Aug 2015 16:17:59 +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 1ZUdMk-0001Qw-3f; Wed, 26 Aug 2015 16:15:58 +0000 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUdMP-0001Bv-LQ for linux-arm-kernel@lists.infradead.org; Wed, 26 Aug 2015 16:15:38 +0000 Received: by laba3 with SMTP id a3so122930002lab.1 for ; Wed, 26 Aug 2015 09:15:15 -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=mAKgJ5e0j1c3Tyno8R4ARPBsw/gONPFyofD+0bM7iP4=; b=vndPCqvqUQT/9eeFg6e78RHwUaYeQWp8xfamChr4Bm7wP9YjJEHTr1cIXiDSkDOgDM MJTU1gBl3zt+2YV1GcfKIRUfbQk5guF9GyAWlgLK6PMyiqnNmF/lD1kDFaagEJK1vRD6 tuQV0t+8AZXtYFNcZojjHj5/7JFHx5BkeYJt+yC42nad/JDKI8xUOedDS0Yr1msvERSz S60Gj1MKqIgQJaEnsuzAqRSLOuxZlnKSJgCUAZTa37IHRlJo53ViqZY+WH4GyFGmI7dB de3j6yKsgeHcARlh2Rj26ZJxstv9+ufC4gr2Wm5+0YdYGfuKjSh/diVRRzdydW9f1eW8 lXpg== X-Received: by 10.152.184.72 with SMTP id es8mr20981066lac.48.1440605715684; Wed, 26 Aug 2015 09:15:15 -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.14 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Aug 2015 09:15:15 -0700 (PDT) From: Andrey Ryabinin To: Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] libfdt, kasan: don't instrument libfdt. Date: Wed, 26 Aug 2015 19:15:07 +0300 Message-Id: <1440605707-8325-5-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_091537_930219_7ED4ECF1 X-CRM114-Status: GOOD ( 10.82 ) 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 libfdt is used by EFI code and it runs before we setup early shadow, so it has to be not instrumented to prevent boot crash. Signed-off-by: Andrey Ryabinin --- lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 6897b52..44e1d81 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -165,7 +165,8 @@ obj-$(CONFIG_STMP_DEVICE) += stmp_device.o libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \ fdt_empty_tree.o $(foreach file, $(libfdt_files), \ - $(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt)) + $(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt) \ + $(eval KASAN_SANITIZE_$(file) := n)) lib-$(CONFIG_LIBFDT) += $(libfdt_files) obj-$(CONFIG_RBTREE_TEST) += rbtree_test.o