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 368F4C433FF for ; Mon, 5 Aug 2019 05:32:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1040B2086D for ; Mon, 5 Aug 2019 05:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564983151; bh=VER4+8NIwzR2QmRDc6T9Gqp7tK5UEHGNK4ICQWpZ+g4=; h=Subject:To:Cc:From:Date:List-ID:From; b=pVtiW/JqizlHoS0MVHVUwm61JP8hWDDdenL+QKAm4unYNOhIje+yw8PF/dqJ0EwT9 hK4tVPuPfi0dsgEU0fMbORJfuiWnpL5ieP9mwyaLu3i2mtMs/1AQNZZc4WlrcrHyEI vL1N/yXARwJTZVZZ6x+nqgTYmPxF62J2E8b7xY+c= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726375AbfHEFca (ORCPT ); Mon, 5 Aug 2019 01:32:30 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60589 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfHEFca (ORCPT ); Mon, 5 Aug 2019 01:32:30 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id AA80320EF7; Mon, 5 Aug 2019 01:32:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 05 Aug 2019 01:32:29 -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=klcguv dIqqvSQ5Yk+8qgMNMlxKrLn/rOEJI5byhGtmA=; b=p/+zT5RUOkLMu7q1EPGP/j fhoBCQc+Zk1E3mg2/FAAWOcIkEBXwM03iJhEJFcyNh5ns4WhXg2BLZ/QVVNhdSGU YVIB4b/Z7gBy1beTZLiuq0eNzZca/9KwLy+rAdpECd63XG28akUknTML3om95Vvs zmULM1V8Rm9P/w7Y92uR3yg8S+7R3HcQr2p0r/ux+uAQK+HSsd9DUOJa0X4An6tq AZi6gCsu8R4ckWau41kV89QwX3SWp10G+EWXF8DprmjR2DImUPTWz8l+q7jL7ZqL ScxqFJOJPpt7pvkcB5IpnIw0OJbk3y+9pbVlfDGFbwTJuHSg+ODiJo8dK+EE1vVg == 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 26F108005B; Mon, 5 Aug 2019 01:32:29 -0400 (EDT) Subject: FAILED: patch "[PATCH] arm64: compat: Allow single-byte watchpoints on all addresses" failed to apply to 4.4-stable tree To: will@kernel.org, stable@vger.kernel.org Cc: From: Date: Mon, 05 Aug 2019 07:32:26 +0200 Message-ID: <1564983146189130@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.4-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; }