Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp648985pxa; Wed, 19 Aug 2020 10:59:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrYl6Nildlrvs6WIKkKk9KleaZHBocxvSkeutoqYLDYlHk2qS5o5Db/ePlwBE1AjC1W0Sk X-Received: by 2002:a17:907:11dd:: with SMTP id va29mr27286353ejb.470.1597859946260; Wed, 19 Aug 2020 10:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597859946; cv=none; d=google.com; s=arc-20160816; b=PuiE+sH5Dl2klHzN0sBSpYg9YxBsamO6LJJ8yqm7/LIylXcOvxKmnMm8KrwGCNqGan DjTkaVDHvx/6bpWuLrvhaZpWCp1nwXEakMcFNLVflDtJd/vv8d6YLT0UKcspWsKSAO+B wwF7rcr4wUfXh6E23x3gTED6x0nX5lcY1BOVElqhIs+j/NbN8KvjuNhvqZORMZmqXwwR n8AjVvI6jf4DgJOWwd3nK1hBLXmpSqhT6Ft3eJqWyGAZ1svIp10uKeUPJpiTJ4cq320y 0Qpa/gWWM9ryZkNxfgewzT3x4Bdj1nODmnouzZCHrmBQ+oCESsLpgqM5xQaDDhUbHQwp eGNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=uQuCMT3JAS43f6T45CVGGRAmxHBJTkERExczdcLcZVY=; b=v30PmMbOledwAb0PdQmByshf9o3MIKsw8XKFu+T+FdP3p6Ex3MLZfYqV6M9pQochH1 sPualk8ThS/L2qN2o5u/sg7QeiSeyQr6EQmnpepwUhPbw4Vhf+sYoZp4x+yXRQlA6vbh HSNnnYbja0AjK7YMnf4ZrrFusfYlS98imobQlcOmwY3Q57oaBdUL6vQu1CdGgMwHNpLc tmSPxoNVdl1kgOf8zpCqYq5W8F5La5gIIqPvOVHokc9Bk1NNlPQkrEp0y3wGBaR3AmUU JNRmDwQ2pQ8+tKI75yByOD51yfAyVn48FqryZXH0DDG15Vx3uDoJrhW+hysCO/2uB6Qo 7Rgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kylehuey.com header.s=google header.b=BEW03iIu; 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 n14si16264443edr.103.2020.08.19.10.58.41; Wed, 19 Aug 2020 10:59:06 -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; dkim=pass header.i=@kylehuey.com header.s=google header.b=BEW03iIu; 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 S1726919AbgHSRyU (ORCPT + 99 others); Wed, 19 Aug 2020 13:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbgHSRyP (ORCPT ); Wed, 19 Aug 2020 13:54:15 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ADC9C061383 for ; Wed, 19 Aug 2020 10:54:14 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id g19so27301061ejc.9 for ; Wed, 19 Aug 2020 10:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kylehuey.com; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=uQuCMT3JAS43f6T45CVGGRAmxHBJTkERExczdcLcZVY=; b=BEW03iIu095qgBD2t+0qPzvlw3Q4Ph0RcFBp2F+pwNCXFvvLBlfoSNly+Y2Fem9AyI Q3d8jS01LKhSuzyG2o6DSO4T+cGAjv5Cdt9+DOnOcmUPrX0sxVluSrDDVkt8r6VSS5Rf KApMApMu0YDehVWZEq0EHCdeUICnL7SoBHSZ7Qktq1KPY2hIcjEYYtoxHrwmGBw2Z8wV yTX7uaH2b2RnvxJ1Y1wr2YJQTlxWklnQ74fB1S2O2ijKDhW6WebMT6PKYb0iW0xkK3pv FUePRdolqgN8JYQBH/SOJUEo2vlhy/3JqFpM4ONJx/BqA2Eyv2rHC2Npc6nuiXGaJTAb PVRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=uQuCMT3JAS43f6T45CVGGRAmxHBJTkERExczdcLcZVY=; b=Ank8czPIDOql7n3AEkPAAFF3Fcwo0mXvZHHK2ewI+6ZtvY7t1s1IngStHMCqkNRj1U k/VSiibC0HIG0b5C6PIdy5wV9hLLBP0Gh7d0WmrG2CWLyoqeAipsqgQIU0eTxyAkZhro 6YVoEZcRu1vcSN7PJHTMjYMWXbc/DSaAE+Xxyuz81H67WP8oRL/Aaad6aDYAGDQuGTw6 ptC3i51Fbt8xypcZ0h55k+1GV2iHC/yCQQYkD0pX1pzPptNgpwKez5O4gJTC10gw9I7i h1vGN51yeMGaKRke/ocC9jHUjgnDlhx+BbETFhUwBYeLcSjMyY7O5ZRmMYg2TzdmwKRu ISCA== X-Gm-Message-State: AOAM5311RZmKEC+RL/EwlKoKtvFLTBx8jX2s90q4oCF4zOQ7mNNSqknY p7XTuSEd8507oG/RnWgtJbFFNirD3o6AkROHoe70Mg== X-Received: by 2002:a17:906:c7d2:: with SMTP id dc18mr5678373ejb.135.1597859653240; Wed, 19 Aug 2020 10:54:13 -0700 (PDT) MIME-Version: 1.0 From: Kyle Huey Date: Wed, 19 Aug 2020 10:53:58 -0700 Message-ID: Subject: [REGRESSION 5.8] x86/entry: DR0 break-on-write not working To: Thomas Gleixner , Alexandre Chartre , Peter Zijlstra , Andy Lutomirski Cc: "Robert O'Callahan" , LKML , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "Paul E. McKenney" , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rr, a userspace record and replay debugger[0], has a test suite that attempts to exercise strange corners of the Linux API. One such test[1] began failing after 2bbc68f8373c0631ebf137f376fbea00e8086be7. I have not tried to understand what has changed in the kernel here but since the commit message says "No functional change" I assume something has gone wrong. The test expects to get a SIGTRAP when watchvar is written to in the forked child, but instead the program just exits normally and we get a status value corresponding to that (exit code 77 = wait status 0x4d00). This test program should be usable outside of rr's test suite if you replace the test_assert/atomic_puts functions with assert/printf and replace the util.h include with appropriate standard includes. This regression is present in 5.8. - Kyle [0] https://rr-project.org/ [1] https://github.com/mozilla/rr/blob/master/src/test/x86/ptrace_debug_regs.c#L55