Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757214AbbHZQPw (ORCPT ); Wed, 26 Aug 2015 12:15:52 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:35187 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756188AbbHZQPR (ORCPT ); Wed, 26 Aug 2015 12:15:17 -0400 From: Andrey Ryabinin To: Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org Cc: Matt Fleming , linux-efi@vger.kernel.org, Linus Walleij , Alexander Potapenko , Dmitry Vyukov , Arnd Bergmann , linux-kernel@vger.kernel.org, Andrey Ryabinin 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1068 Lines: 30 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 -- 2.4.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/