Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1417483pxk; Fri, 4 Sep 2020 08:54:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycScKt6aIul0ydgcvJGEUL6WEy5eB02ATA+v7L70kMylXViYn7k3ZWdXbsy5qT8FW2qZkn X-Received: by 2002:a05:6402:220d:: with SMTP id cq13mr9156935edb.260.1599234868263; Fri, 04 Sep 2020 08:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599234868; cv=none; d=google.com; s=arc-20160816; b=mwTV6fkbngq0EmuRuHc4XPWZifOE6LRfZ3+3O9xV+zOlNip77fiO3tihZhvl4L26Y6 EVNlY5g7B259hbxVoxwAFlOuAp6l1E/FC0huEKUYwOC4+RjIbm/27VMs4ObxiAm6o0Ph Ziq2BXWYNPUEFv770m2WEq0KTaAeU1DgRYwd5UQiM1Pr6jDljYHi2H9Eq+JyiWqydDny 6n+WFgn7hBrOTtWL8qHjuRPM8loL0sGkDaXfWNa5r/e516m4aoR9qTIKCz33nYuZOBJU 13rfCG++P3HcABqxwYuTSXC3WbHN1x8pq/Lbbb7hLgJEdxYOhhgaH54J4DhPXn4Vq5sI gzxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pU5ItMALJLYT1/Nwxu3Vg0yqGVXHTTDNwv9JjCZ1OzQ=; b=nJsvxcFfkxakh0XvKzF9z4BQT9YRSEIh3nyXglpDUH1mc5rKxtMUH/epfU7HA0A1I7 PV6ll/OZg6gWn0EuOnUI6wpSFNyI2q0nlkJ51KQvw74kgGQWaBU1QcvgKVZR063WjSc5 owWzVhQkCPNVjR8RE3iWC2lz+1341NFSggncQ4UwrsUkv2WEV0QCIiL+AgZPa/iqorOr UHpIveAXiGmIWVdfspq+vdK8XTJ0aL+YWKLib+yuPxeYVQLCRYWFUm3esAhAlWf6PKcr DracJtc1KrJQseg/2WWRf4BxcggZJ1QEB0hsQF44+W1d09UKhRhE2dhjkK8Vf0vb86XF 5fbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si4844166edi.523.2020.09.04.08.54.05; Fri, 04 Sep 2020 08:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726458AbgIDPxZ (ORCPT + 99 others); Fri, 4 Sep 2020 11:53:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:48412 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgIDPxY (ORCPT ); Fri, 4 Sep 2020 11:53:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B1398AC24; Fri, 4 Sep 2020 15:53:24 +0000 (UTC) Date: Fri, 4 Sep 2020 17:53:51 +0200 From: Cyril Hrubis To: ltp@lists.linux.it Cc: Alexandre Chartre , Peter Zijlstra , linux-kernel@vger.kernel.org, lkp@lists.01.org, Andy Lutomirski , Thomas Gleixner Subject: Re: [LTP] [PATCH v2] syscall/ptrace08: Simplify the test. Message-ID: <20200904155351.GA13149@yuki.lan> References: <20200904140931.10153-1-chrubis@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200904140931.10153-1-chrubis@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > + /* > + * The original fix for the kernel haven't rejected the kernel address > + * right away when breakpoint was modified from userspace it was > + * disabled and the EINVAL was returned when dr7 was written to enable > + * it again. > + */ > + if (tst_kvercmp(4, 17, 0) < 0) > + deffered_check = 1; And this should be 4.19 as the modify_user_hw_breakpoint_check() was made uncoditional (by accident) in: commit bd14406b78e6daa1ea3c1673bda1ffc9efdeead0 Author: Jiri Olsa Date: Mon Aug 27 11:12:25 2018 +0200 perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled set -- Cyril Hrubis chrubis@suse.cz