From patchwork Thu May 18 09:47:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 100075 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp634459qge; Thu, 18 May 2017 02:47:56 -0700 (PDT) X-Received: by 10.84.178.129 with SMTP id z1mr3831923plb.44.1495100876142; Thu, 18 May 2017 02:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495100876; cv=none; d=google.com; s=arc-20160816; b=QUBl5/vG/y/VIy480/4Z/YwyCllSEPJJet513/tfhXMX9I9QjcD1ZOdXER06E+aQI6 Y6JWKRHYTTNnmTjB/ohNd003NsaMrw/JyJXBn5AxQ3FNsUGzF7eTlPhEA/5DG3a/B7gS TgkKwqiE0uvAXzj+u7qqtTPMLARx7lAFuOhtHCghY49+xafzGpQoc5wQ6Kxum0wewBbJ Fl1CoAbubo0jbk0SnTq66BkWkYe1y+TQtjTjeDbIVugma69LgM6H7vC7ahVAzgJNISW6 k5hTkpQ/nrp1qk642GtTbncvfOOprWccCHm3ZSSEbvpxJJB5LQof5fkkilnFPkrdsGER ghkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=UiF4naM2eba60FJdhmDeH4sufkyHSYyWZZOKHuNV2uI=; b=cxvFDwProBD/l2dYGr/U1HIG5wy5SUwaabUliCgW4YkNrOuXcMVMNu7Y5w0Mnk/O8Z mCudQZYkuNDaROjwjpxa1H3yKZBMp7XNvmJPHK/yWfcXtSbEyFcqvjpDfqPHCLw+da8G SoDUa9GnLQTf3mWewtDZrpmkYJwzxmELKBK7XIs+Z1FMA0V2BLE0VRYS7hYBUZdUWAP3 vd8vCSXx7qzAH0YxU0D+3CmLygDN0NnyP1/5WxkwevYcCymdA8juBbeWzFWAIDCvWDD5 R1ms87Ch7x37xMh5i2nFWcSohcH8+CXbv0Q0hVTv0N2YieziOrd0Kq00xfLCtY/eJki+ f7hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35si4751361plg.102.2017.05.18.02.47.55; Thu, 18 May 2017 02:47:56 -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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755359AbdERJry (ORCPT + 6 others); Thu, 18 May 2017 05:47:54 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:34831 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754759AbdERJrl (ORCPT ); Thu, 18 May 2017 05:47:41 -0400 Received: by mail-wm0-f51.google.com with SMTP id b84so195117357wmh.0 for ; Thu, 18 May 2017 02:47:40 -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=UiF4naM2eba60FJdhmDeH4sufkyHSYyWZZOKHuNV2uI=; b=fWFyucFgZYb/JFVpXtdPzaENMb/1jmahoYp4Rb7DLNI9T3lTDdo7MKzkDcRyt8elCg 1Fjj99+lPikaFUG4KHCsq4XN7rHTKYNuogDqtHE99U955eZ8zNgOgvg/8GuUqxuMsTst uB8pfJ2dBXfPrfC+Y7pT5gLLM8ZXhi2kP3hSc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UiF4naM2eba60FJdhmDeH4sufkyHSYyWZZOKHuNV2uI=; b=Gyuo8mBhT2VF6wtL+SlgRYx7XjcLnbRoZr7879HzJeJHrKkAJH+fYtGw1Uagx0R1zH gOFt1QdqiFIRle8wrjkZaD2jx24OF9ngGpljSbEbNUm5NZ6WHDD+ILL6qmtSRMKCECJ5 Gjf8zP19fSkukvnIB58W9HkGJxLLIkMVw/75zBSOJKAhY1X8Taa21Zm60+VXtNBLaJ2e osATvSMnWZX2Y/hP1dealYqOee3IgpR1vzp9a/yrWqqp4fJ5haEgVvhTyA4p9KdvYdk3 qOjTtOvjM+zA/cUeI8U9mdSwsnacqW7fVOsGwTocmnJxeKgfd6VJk5ztIfkXNC4ZxtYB HGcQ== X-Gm-Message-State: AODbwcB8SKFDDo3hG4jZG5AHySJhzFpv8L/TLf2tNX7ZmIgtLkEomIGA CVsjCJ4YesORxWmz X-Received: by 10.80.153.43 with SMTP id k40mr2561127edb.63.1495100859879; Thu, 18 May 2017 02:47:39 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id w15sm2377437edw.27.2017.05.18.02.47.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 02:47:39 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= Cc: Marc Zyngier , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Christoffer Dall Subject: [PULL 03/13] arm: KVM: Do not use stack-protector to compile HYP code Date: Thu, 18 May 2017 11:47:12 +0200 Message-Id: <20170518094722.9926-4-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170518094722.9926-1-cdall@linaro.org> References: <20170518094722.9926-1-cdall@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Marc Zyngier We like living dangerously. Nothing explicitely forbids stack-protector to be used in the HYP code, while distributions routinely compile their kernel with it. We're just lucky that no code actually triggers the instrumentation. Let's not try our luck for much longer, and disable stack-protector for code living at HYP. Cc: stable@vger.kernel.org Signed-off-by: Marc Zyngier Acked-by: Christoffer Dall Signed-off-by: Christoffer Dall --- arch/arm/kvm/hyp/Makefile | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/arch/arm/kvm/hyp/Makefile b/arch/arm/kvm/hyp/Makefile index 3023bb5..8679405 100644 --- a/arch/arm/kvm/hyp/Makefile +++ b/arch/arm/kvm/hyp/Makefile @@ -2,6 +2,8 @@ # Makefile for Kernel-based Virtual Machine module, HYP part # +ccflags-y += -fno-stack-protector + KVM=../../../../virt/kvm obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v2-sr.o