Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1614334ybl; Thu, 22 Aug 2019 18:13:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqynLSFSCOiA1bX1EIGeTltM/YSNPZtghuI1WaXidC5DW4umJwHxAB1iqVVdS0WDEeAGqZYr X-Received: by 2002:a17:902:b68f:: with SMTP id c15mr1853160pls.104.1566522797703; Thu, 22 Aug 2019 18:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566522797; cv=none; d=google.com; s=arc-20160816; b=zQ64OsKoJZd98R+QkP46Ygjd3IQGVWKY1Dv/OuIVZP4nPa+PrCFDpJ3EyLHzY0MItq l/u8y/535nvxqMjcRI+P1oRUfFVysHsVDMmUzjg6ggs4z4KJGD+2ql8+QuTfW0vIPoAI 76CN/uZWHA1ghKBHT7noJNy1ioY95L0520cU49jZxHgE4lKqPJ7Z7Qb40WyMQnnG4mVR mIkP6EKdpMKcTu1hVKwLgp8aI6dadCqp0i0oRu8KQxas6zuB5hPWdOVw+ihIw7ZbSexj Kw1HvFHlrEkMCOdrc5+FwjaIkaeydzmFjS5Xg3vMXKHE4SEw6bXIYKndRb5UGa0y/ZUd oKOA== 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=izndmwapDNd5OUnCVbFs3ia4hoqb7mM7cj0sPaZk/g0=; b=oHiQfWWZJCHUfMoUQtSdKzVe7iTB3OQcY78aeaMzJB/FzUiS8DZyh+IJUhgRbE4lmu bnhDzJpJ2an1tmlCuKtE1AneMRkp25vs7iVYTsCIPfT8lmXF5Cf3Wr7CAfSMC1LFySxG Rz4H5QP0Fm2UtIvUz9e+j5LyGReAYssIJ0lpFl3+4CViUDNoywek3sxdDjo/i5nZDFzy UMXd/RN19aND5KQJo31dThF/XaJgrEt/Htg7/rsz/g/iJX4WKc+s9RdByuHNusohaW9C VGhfFTZLZsjJYJxzbKSuDaMJc8v+Qyo+WbKZKHVj/C9bPCf3/TuLXFmLwMRhFimd5h68 NTRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=flKXRFg1; 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 v10si932117plo.384.2019.08.22.18.13.01; Thu, 22 Aug 2019 18:13:17 -0700 (PDT) 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=flKXRFg1; 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 S2404590AbfHVR0D (ORCPT + 99 others); Thu, 22 Aug 2019 13:26:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:47738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391813AbfHVRZC (ORCPT ); Thu, 22 Aug 2019 13:25:02 -0400 Received: from localhost (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (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 576DB2341F; Thu, 22 Aug 2019 17:25:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494702; bh=KuskfuOVKjAGPbfOzSzo+A3xQaCkC16TE+yWvdw1T8U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=flKXRFg1vB/2r95saO/2oFqmZOZYRr0rvNA17CghGqveTSSVS4pjN0clMDgYTA48T vBFqI+moro6+9XPAi8P1hY4oCzosdrKdEtC/ILvU7nzQrKjWsGIqJTmxmY274fdrXE +YBhtK9aaZ3wqo7YIG3Sz9erpk9UD6LdzLwHSkww= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Will Deacon Subject: [PATCH 4.14 56/71] arm64: compat: Allow single-byte watchpoints on all addresses Date: Thu, 22 Aug 2019 10:19:31 -0700 Message-Id: <20190822171730.217037945@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171726.131957995@linuxfoundation.org> References: <20190822171726.131957995@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Will Deacon commit 849adec41203ac5837c40c2d7e08490ffdef3c2c upstream. 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 Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/hw_breakpoint.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/arch/arm64/kernel/hw_breakpoint.c +++ b/arch/arm64/kernel/hw_breakpoint.c @@ -548,13 +548,14 @@ int arch_validate_hwbkpt_settings(struct /* Aligned */ break; case 1: - /* Allow single byte watchpoint. */ - if (info->ctrl.len == ARM_BREAKPOINT_LEN_1) - break; case 2: /* Allow halfword watchpoints and breakpoints. */ if (info->ctrl.len == ARM_BREAKPOINT_LEN_2) break; + case 3: + /* Allow single byte watchpoint. */ + if (info->ctrl.len == ARM_BREAKPOINT_LEN_1) + break; default: return -EINVAL; }