Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3669307ima; Mon, 4 Feb 2019 03:09:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IYbNNFuH8L36soQUlw40bRL/tUEl8PLOt8VLbOXY6+orI2XJeNykD62kagXzjVXxDIIqXLZ X-Received: by 2002:a65:64c8:: with SMTP id t8mr9889485pgv.31.1549278553472; Mon, 04 Feb 2019 03:09:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549278553; cv=none; d=google.com; s=arc-20160816; b=Bh0eEEfxh5RMwCumTDNfa7AWyfJsT+p5k0+XRJvEyLrjHDKrr3nfDepRdN+cFD9VDN y7Ojvsz7ULcM0Mp0P/rPD79a1L+DQfeJzAZSeaJoyGTdBBerzUkyQvh/pIOUJyM2mlHY B9TjvaEg+rCxIt6ezq7AuxMHSn3lIZc6FxL02hbE8pHoTU+AWOIyP6OlfpjbI7Du1JAN X4gJ+0tup9bkaku7AoOkrLJ78qNAlYuuHtbj/4VTG1X5otVyrP8qR2ohu8C5bEBT/N23 gzfDXNIhmvQwMNuVb5M28nwwNL160+K0bLcaVOFkrCBELbE/xwUYFS/xoOPYJqB9xURM TGmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=F/pV0Eq9o52HECZg1bes6fpJSSfPwTc+0drVUNxJpoI=; b=h7224g3nRbgf/EIiFRCLzvzvZy3ychdjO0XfywF3g+ACIg1TeBnGfixxm+jaty2ECp 2mCzZHZdhtyM5j2z4rSYXnykpfwG79ka62x6RebbX6E5gAGRUQDX8ySCYaw6MxPdbnmn 7LPynKy05xffV4UXM4Yjmj9V57iIoy8ucnSQ/N11aPwUrd4twLatcNZv8a9cMO3DBezq kP9jpKp9wn9DW2mHyd670eTFVN9cR3klTapCANV4nFVxXYMQ337iT7hK+Pf/PDgg+iXC 7pmiXlP54cZnrFv7T6hGDyoAjjuzKsPmwwZI6RfvqnPiWixFrG4m3Y2MW3TEgyxLFKmj 8nhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N5FSZliV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj4si6430285plb.119.2019.02.04.03.08.57; Mon, 04 Feb 2019 03:09:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b=N5FSZliV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730303AbfBDLG4 (ORCPT + 99 others); Mon, 4 Feb 2019 06:06:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:41086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729861AbfBDKnM (ORCPT ); Mon, 4 Feb 2019 05:43:12 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD99F2070C; Mon, 4 Feb 2019 10:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549276992; bh=xLD9b4S/I7Flng4ZO/F1tVidV16iWiJmkwO/JBd+6dI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N5FSZliVvJ/WCkg9ew+YZaRK9ppZW7O5KGE9pfdLdX6ACXfeP4a5+mohcaTI2ksla UAegoxBg2tUluswUS4uBKTItWdBVyjF7M8y3L4QzHbcc3ayuxx2A9J3wntBqQ3Pm3Z cj2A+cuhYVM7kA2dmhPO5V5gHmX8Wup2obLwupdo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Morse , Will Deacon Subject: [PATCH 4.9 17/30] arm64: hyp-stub: Forbid kprobing of the hyp-stub Date: Mon, 4 Feb 2019 11:36:55 +0100 Message-Id: <20190204103608.584044775@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190204103605.271746870@linuxfoundation.org> References: <20190204103605.271746870@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Morse commit 8fac5cbdfe0f01254d9d265c6aa1a95f94f58595 upstream. The hyp-stub is loaded by the kernel's early startup code at EL2 during boot, before KVM takes ownership later. The hyp-stub's text is part of the regular kernel text, meaning it can be kprobed. A breakpoint in the hyp-stub causes the CPU to spin in el2_sync_invalid. Add it to the __hyp_text. Signed-off-by: James Morse Cc: stable@vger.kernel.org Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/hyp-stub.S | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm64/kernel/hyp-stub.S +++ b/arch/arm64/kernel/hyp-stub.S @@ -28,6 +28,8 @@ #include .text + .pushsection .hyp.text, "ax" + .align 11 ENTRY(__hyp_stub_vectors)