Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757189AbbHZQPV (ORCPT ); Wed, 26 Aug 2015 12:15:21 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:35778 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbbHZQPP (ORCPT ); Wed, 26 Aug 2015 12:15:15 -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 2/4] efi/runtime-wrappers, kasan: don't sanitize runtime wrappers. Date: Wed, 26 Aug 2015 19:15:05 +0300 Message-Id: <1440605707-8325-3-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: 1169 Lines: 36 ARM64 maps efi runtime services in userspace addresses which don't have KASAN shadow. So dereferencing these addresses in efi_call_virt() will cause crash if this code instrumented. Signed-off-by: Andrey Ryabinin --- drivers/firmware/efi/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/firmware/efi/Makefile b/drivers/firmware/efi/Makefile index 6fd3da9..413fcf2 100644 --- a/drivers/firmware/efi/Makefile +++ b/drivers/firmware/efi/Makefile @@ -1,6 +1,14 @@ # # Makefile for linux kernel # + +# +# ARM64 maps efi runtime services in userspace addresses +# which don't have KASAN shadow. So dereference of these addresses +# in efi_call_virt() will cause crash if this code instrumented. +# +KASAN_SANITIZE_runtime-wrappers.o := n + obj-$(CONFIG_EFI) += efi.o vars.o reboot.o obj-$(CONFIG_EFI_VARS) += efivars.o obj-$(CONFIG_EFI_ESRT) += esrt.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/