From patchwork Thu May 18 09:47:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 100072 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp634418qge; Thu, 18 May 2017 02:47:49 -0700 (PDT) X-Received: by 10.84.198.36 with SMTP id o33mr3803259pld.145.1495100868408; Thu, 18 May 2017 02:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495100868; cv=none; d=google.com; s=arc-20160816; b=qioHQttOK4vNi2FbOwdkqoXfY3Hor1IT4GcQ9afKA+4NtQ+v8wTcGv7XsmoW9k3pou 6uKsykM8jSR6Rjlc+Krx2y1+Yu6680/v6w6alm3EK3XHv+V89EvznR6FIZxPDR4XQ+hx BypmB18LrVtyPXY5JGIvUtzTuAe7tXZDHh/xEBSJ+qJ9DgGZLf1ORPVlNGDWm1e5StoG qAgwnkjDGIsvAF0K5cvPzR3xy5kIHTzTiJ1QnxgMBkgy08xGkmvx8WsQ5roB8urmPoOt wj0kGhrsCdmMmkpTohaKWck6eBzo6yqgHfzNi306L9ta3ccv/R4yUkCLO60v0hPE7/WF cwLg== 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=xUJ0KNro7ANYTRNK6edAP2Tl+YVEY0vvxwAQ8eceEdo=; b=GQ5Budvkk7wm4TwtD/kJ846YDKrUtNP4am0U5XJTS69DvwauntG2s2vHlmJhLQCsJ5 vjgi25EzNBmhP2XIrDjsDVeKBj44m7sizmMqoJ9hK0MvO5I2H6NpqSPUX7GB/NL3cvcg KE80wXqZ+b5Ftlgqhp21XZw2RYTqAZM6iY+lwwQNMTKX+1I6GS5KkDiXPM0P7sfSJg1F h3ujuoCPPQaN3LUppExbL17lHfVFwKBpoTUALtAettdH4ndT13mZyLOvokMBVb04kfYn MCqwDcIleZ0JDD2iZ6qNAlx9hhBZSPLMg9ml5C5ccrovAjEytYjW7h8KKbK9ZDcGLtKv ocrg== 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.48; Thu, 18 May 2017 02:47:48 -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 S1754948AbdERJrm (ORCPT + 6 others); Thu, 18 May 2017 05:47:42 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:35880 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753743AbdERJrk (ORCPT ); Thu, 18 May 2017 05:47:40 -0400 Received: by mail-wm0-f47.google.com with SMTP id 70so40076442wmq.1 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=xUJ0KNro7ANYTRNK6edAP2Tl+YVEY0vvxwAQ8eceEdo=; b=Dq/vKVll46Ega3C2UVVs2KB+maYwXEA67JmwuIlPaxo+A2jNOFv53DORvMwkkuRKy+ gxZhDKtEkh3QkXQjZ4N79p2qCyoXTh5kfDNtUM+S1R6brXMzuZG4oyB3EDUecHerPL9a dTz5HxV/BOObZI/YJI9vXFqlY1nzvUvWFva6Y= 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=xUJ0KNro7ANYTRNK6edAP2Tl+YVEY0vvxwAQ8eceEdo=; b=chdV1Lpe05EUVbwhPf4t58MHgT0WDMzf7ZlABht8eco5vDAj1fFeBMFMBwbLtFLqSL OFbTMp+sF71kq/Xbt2tM3U+LtHrOCXmnIFra2FW2ap3FTFUfp0b0stT/GguNWiosZdky y7er0vGUwV0bPeiQw4PQeSX89HIqSY4pEeGHYVpvO86Etvl5G7F+njJparICHZ1v1dmN C6C5RzI1HCo+IhcxYhNUB86h6rBXazHF3DaS9NUFa20Vl+qxi38Srci2+Pfqq6+pWyrQ q6nxN9TtPE/kubvtTq4hS073rYO3d79D2OsarevCqiel6P6hEFP5b80rYw/trrefRdh1 Cd+w== X-Gm-Message-State: AODbwcBnK+PJ0eM4c9pyUNdYUTIJR70t+XHt4/WwRca6NMF/CFHX0ZlD DmnU1kmcuH9iL33J X-Received: by 10.80.174.131 with SMTP id e3mr2516887edd.166.1495100858840; Thu, 18 May 2017 02:47:38 -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.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 02:47:38 -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 02/13] arm64: KVM: Do not use stack-protector to compile EL2 code Date: Thu, 18 May 2017 11:47:11 +0200 Message-Id: <20170518094722.9926-3-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 EL2 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 EL2. Cc: stable@vger.kernel.org Signed-off-by: Marc Zyngier Acked-by: Christoffer Dall Signed-off-by: Christoffer Dall --- arch/arm64/kvm/hyp/Makefile | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile index aaf42ae..14c4e3b 100644 --- a/arch/arm64/kvm/hyp/Makefile +++ b/arch/arm64/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