From patchwork Tue Mar 22 08:19:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 64150 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1912431lbc; Tue, 22 Mar 2016 01:19:36 -0700 (PDT) X-Received: by 10.66.235.9 with SMTP id ui9mr52077357pac.135.1458634776093; Tue, 22 Mar 2016 01:19:36 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si12708328pas.21.2016.03.22.01.19.35; Tue, 22 Mar 2016 01:19:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932408AbcCVITe (ORCPT + 3 others); Tue, 22 Mar 2016 04:19:34 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:33541 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758351AbcCVIT2 (ORCPT ); Tue, 22 Mar 2016 04:19:28 -0400 Received: by mail-wm0-f45.google.com with SMTP id l68so181005733wml.0 for ; Tue, 22 Mar 2016 01:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SmuDGOJFTyTGkgZf0NY+2kE6z/3mo3CRylHMr/MsEmk=; b=LZpmH55MM9XVjoTlb5URhD7HkjlWftejLGFV7xQr1WE6pcOTI4b16Zd14Trg94RF71 /PhS+6Ifp9tR8GKBpw1AIOpN3XBx6SC8NtD8ygp8XxWrAmxtwUcTfKb0A9cOgaDokrwl afuIFxOhsP9mNlaIOiDrILOxVgaEXjsxrwpiA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SmuDGOJFTyTGkgZf0NY+2kE6z/3mo3CRylHMr/MsEmk=; b=mfww1U1gcJmXC7LnXQIrcpF6lkothhYgVTnqdjJR8a8bMPkzlsCLd29Ze+6+wm9Bvu ZJN+UAVBYeMGt67MU/Aws5BT3hZO2jqeB2+TTPMqxY+u9dg1aUM60zwog9nU20SZj7Ns Vi5yo74Ko5RK3gBDlc1GBkmcmj92Fwq2osI6pE94HbgJGKdGS5OwbKeqOBPdrG/5KmwL 4/prBFtktABkl78e5Eu6ojiKOnY8RfN+1s3rZPuq3Wca2PWg24Xla8PPDW2Tk1nGFWOi bLRYAuEHsxQTcDwmVZX1hk3WZFaMxJ5LONhnbHqvmLFx9mqK5rGgtTILNzLwzpchAw5d ssAA== X-Gm-Message-State: AD7BkJJ6jQ4YgsLLbieS/XPhCwaS0vm4BIHacqXRVgqsPzYusRqGmsrCZTDQKbz6bYf03CDX X-Received: by 10.28.45.209 with SMTP id t200mr18737052wmt.71.1458634767159; Tue, 22 Mar 2016 01:19:27 -0700 (PDT) Received: from localhost.localdomain ([94.18.191.146]) by smtp.gmail.com with ESMTPSA id 8sm16101691wmk.13.2016.03.22.01.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Mar 2016 01:19:26 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini Cc: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Marc Zyngier , Catalin Marinas , Christoffer Dall , Subject: [PULL 3/3] kvm: arm64: Disable compiler instrumentation for hypervisor code Date: Tue, 22 Mar 2016 09:19:36 +0100 Message-Id: <1458634776-18388-4-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty In-Reply-To: <1458634776-18388-1-git-send-email-christoffer.dall@linaro.org> References: <1458634776-18388-1-git-send-email-christoffer.dall@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Catalin Marinas With the recent rewrite of the arm64 KVM hypervisor code in C, enabling certain options like KASAN would allow the compiler to generate memory accesses or function calls to addresses not mapped at EL2. This patch disables the compiler instrumentation on the arm64 hypervisor code for gcov-based profiling (GCOV_KERNEL), undefined behaviour sanity checker (UBSAN) and kernel address sanitizer (KASAN). Signed-off-by: Catalin Marinas Cc: Christoffer Dall Cc: Marc Zyngier Cc: Paolo Bonzini Cc: # 4.5+ Signed-off-by: Christoffer Dall --- arch/arm64/kvm/hyp/Makefile | 4 ++++ 1 file changed, 4 insertions(+) -- 2.1.2.330.g565301e.dirty -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile index b6a8fc5..778d0ef 100644 --- a/arch/arm64/kvm/hyp/Makefile +++ b/arch/arm64/kvm/hyp/Makefile @@ -16,3 +16,7 @@ obj-$(CONFIG_KVM_ARM_HOST) += fpsimd.o obj-$(CONFIG_KVM_ARM_HOST) += tlb.o obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o + +GCOV_PROFILE := n +KASAN_SANITIZE := n +UBSAN_SANITIZE := n