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.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 C9786C433FF for ; Mon, 5 Aug 2019 05:32:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A06182086D for ; Mon, 5 Aug 2019 05:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564983149; bh=L+0zSqF7geBaDnF23fQa9xUFggZMEDGsSdZj6syNxfQ=; h=Subject:To:Cc:From:Date:List-ID:From; b=Wp2fGbDl00Dv9JTTp6MKEFvAGCQFn+2TC9QeGTCdIUYjQdTAO1zprgPPBrlQq0Guf d4t68Ic1SuESHmybAShDvyOlFIhYbr7kgUpIRQ4Wfq4SjYzmcqfIb1gigVvMx1BCCa /W7fpP3qeSe/s+XGESljFpXWksBhS7EbmhVSGb6Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725976AbfHEFc3 (ORCPT ); Mon, 5 Aug 2019 01:32:29 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42875 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfHEFc3 (ORCPT ); Mon, 5 Aug 2019 01:32:29 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 37F8520FE3; Mon, 5 Aug 2019 01:32:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 05 Aug 2019 01:32:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=UtC42K nUxWXFjX8C9HdjFOIDg1B0/wR2tKltW1dIBFo=; b=k3hMPgjfM87Jvqckul8hnu YEsxpGpPw4YIiO4Bsg2eaKJqrKUpuv/PnFQvYMo/k7iEtsF/YmSjsst+1rNIHekN mKZ1wBiivz/RGX7yM+sDDNMeHU6Rf8cO8uvS1ZzA4OeVF9WIxm/CyQwdTDNfXBME Fh3WFdBxExDxLCem1bD75Y4D+Alo+FKm8x6p3qXXTZV0zuayySotdxccq7nmH53j sRCKzzNP+Fz+9k7ASHjXTvWD+F59t1fCaznQMuFBZ11em+mgV6/x8q4SQ/qfopZl HQoWFMKr8r3qeTxBuqFfimvZNdVMtRXbJkhZ6qWM8pF/8jLop4IHrC52LR7h1UMQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddtiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecukfhppeekfedrkeeirdekledruddtjeenucfrrghrrghmpehmrghilhhfrhhomh epghhrvghgsehkrhhorghhrdgtohhmnecuvehluhhsthgvrhfuihiivgepvd X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id ABDC8380074; Mon, 5 Aug 2019 01:32:27 -0400 (EDT) Subject: FAILED: patch "[PATCH] arm64: compat: Allow single-byte watchpoints on all addresses" failed to apply to 4.9-stable tree To: will@kernel.org, stable@vger.kernel.org Cc: From: Date: Mon, 05 Aug 2019 07:32:25 +0200 Message-ID: <156498314513144@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 849adec41203ac5837c40c2d7e08490ffdef3c2c Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Mon, 29 Jul 2019 11:06:17 +0100 Subject: [PATCH] arm64: compat: Allow single-byte watchpoints on all addresses Commit d968d2b801d8 ("ARM: 7497/1: hw_breakpoint: allow single-byte watchpoints on all addresses") changed the validation requirements for hardware watchpoints on arch/arm/. Update our compat layer to implement the same relaxation. Cc: Signed-off-by: Will Deacon diff --git a/arch/arm64/kernel/hw_breakpoint.c b/arch/arm64/kernel/hw_breakpoint.c index dceb84520948..67b3bae50b92 100644 --- a/arch/arm64/kernel/hw_breakpoint.c +++ b/arch/arm64/kernel/hw_breakpoint.c @@ -536,13 +536,14 @@ int hw_breakpoint_arch_parse(struct perf_event *bp, /* Aligned */ break; case 1: - /* Allow single byte watchpoint. */ - if (hw->ctrl.len == ARM_BREAKPOINT_LEN_1) - break; case 2: /* Allow halfword watchpoints and breakpoints. */ if (hw->ctrl.len == ARM_BREAKPOINT_LEN_2) break; + case 3: + /* Allow single byte watchpoint. */ + if (hw->ctrl.len == ARM_BREAKPOINT_LEN_1) + break; default: return -EINVAL; }