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: 9733093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 119CE601A1 for ; Thu, 18 May 2017 09:48:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFEC2285F9 for ; Thu, 18 May 2017 09:48:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E421028678; Thu, 18 May 2017 09:48:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 81356285F9 for ; Thu, 18 May 2017 09:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=jbH3/SEsD67k37rC9roW/MDq0K7zhUf9Gzp+8Qt42OQ=; b=JVM9qlnBkiUa8GAumv3qsAvzRL d8SvjS9zZVh9XhF48q20jB0UX+0rtoUSPbuSOG+qFQ72pkCgolDl1k1zaxMJq/uwbonQ5+xDqiDvV J/ezdIK98IsBZg/ylHmqZstanx8EfLPBQ1npOB/+hm7+vPAk0YkL9k79zyIkiDPmi4ldzHxW2jCVv coOUr9v/nz3FGscLa2g+zamEpm+hzSgJ+rjH9rHRNcikvCekmjxSDGLSYmpXVNGvhK3yOd2xo+/NT 6xeWoaJch8OAl+I1zbbfKpqJs4Su+/+1jDU2oiYM5fZ2j9p7CNpmZDeXSbU36MxU9VlrdKUq/HzMH r5VB/9kw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dBI32-0006Jv-Ax; Thu, 18 May 2017 09:48:44 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBI2L-0005Kg-BY for linux-arm-kernel@lists.infradead.org; Thu, 18 May 2017 09:48:03 +0000 Received: by mail-wm0-x22e.google.com with SMTP id b84so195117361wmh.0 for ; Thu, 18 May 2017 02:47:41 -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=oIHn7xkoHaCNDpi/v2g1ZWXFa2BJZTny2kNbUsrCndqp0eeqTvSYNOdhCbkeTeDG8S QdRE2gD3cNSbunPCZ2uFI/bHJFUiDNfP1/KFMjG6AGOuzzNzTnbrGIEQdyX1g9qaBKOO OKUKZXhbbsFofgrjUdNaQkr115UiDftu5HON7UMwcLDWtc5o1oiMPp7A5JQc+zspZZEc /MENO48iD228lL1Z4qnYLAjZJfD4fWe3roYuZeVqkdDQF+LljtYYbmnYSzKPa01ow3ez xtz3t9OPpMl/jjJH5UPy5+cHgI9GzUjfFSS1TTWVc8RMU1+i/abA/0qTp/B1clFuj9wI 5iUw== X-Gm-Message-State: AODbwcDxkBrFaSB0NZC2IC+uRHJy6OWQVKfMYk/zP3vumTRAyjAr+vNw 89l0+W4gV7iYrS9H 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?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170518_024801_628447_19FAE5B9 X-CRM114-Status: GOOD ( 10.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christoffer Dall , kvm@vger.kernel.org, Marc Zyngier , stable@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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