From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23AE5C282C4 for ; Mon, 4 Feb 2019 11:08:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8FDD2082E for ; Mon, 4 Feb 2019 11:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549278484; bh=8NHIS/YvgvuN3wOtuwic/hbD/h6B9Z0qlS+Jl55i/Yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BrfHajQmDGdCtfj7/nwwcP/YhuyIjuukBDz6JyKxwOXsHw+TSrT/DlE1Wqp5VnpBX p/RaAHozvWOvk518o56HgtDZ16oYcS0KO1wKwNXE/kLagqePfPlEkwJnXuVpC8rqLI DiOElbLj1eXdf5SRZwO9sNMvCtdd5VLxjDDf88KQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729995AbfBDLHy (ORCPT ); Mon, 4 Feb 2019 06:07:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:40156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729119AbfBDKmM (ORCPT ); Mon, 4 Feb 2019 05:42: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 650EC2087C; Mon, 4 Feb 2019 10:42:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549276931; bh=8NHIS/YvgvuN3wOtuwic/hbD/h6B9Z0qlS+Jl55i/Yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DZj5NqGozJKmrymG1ZGEG9pV9WfC0Z0JwIyhsZR+xygw7r0eZXdMg1lb94uf6J7UG uCLjIxJwx/jKdyiYc/fWWT+t8I42qKFCpxc6TbsRkLYGwHOFQEGsPKAkU76LYdrad+ momNDaYmnBaulikyUCmC341ge4hCHhudF5bSY644= 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.4 45/65] arm64: hyp-stub: Forbid kprobing of the hyp-stub Date: Mon, 4 Feb 2019 11:36:38 +0100 Message-Id: <20190204103618.233089969@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190204103610.583715954@linuxfoundation.org> References: <20190204103610.583715954@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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 4.4-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 @@ -26,6 +26,8 @@ #include .text + .pushsection .hyp.text, "ax" + .align 11 ENTRY(__hyp_stub_vectors)