Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4506955ybb; Mon, 23 Mar 2020 23:25:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsaUu5nrxTv1dTudoXctNQrOG7MZMyWFrFjx8yo3q422BOhI+a/347blabg5X3QNjoRnPCU X-Received: by 2002:a4a:9cd8:: with SMTP id d24mr1532934ook.84.1585031139557; Mon, 23 Mar 2020 23:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585031139; cv=none; d=google.com; s=arc-20160816; b=ictz0x5HmySvbGP9RhBtPDLjKN9VC6XiHoQrm+cKNW/ph49k3068UpjcXv7MxmRUZW TnwnUqOxTCNo0OeLOC3haWDPrZuiErMhKhchBtquaXwqheBAoR0G+piA/t4F4t5s3UD/ u2yGeRswqHSyc/D3GQLQqbPa8Rn6Q5+E0pe8ExIiZiMZZ7ftEezCaFSGDX2bGqGnDVVF V/mh4oUsvyxUGOIqyciLrU7N5w9k/6RkAbP77mepxN3FGoKGm7edsfo16rMposxSDr6e QPJk/D1v2JP2I9CIxoGf9hbqg55cUlvxYo50iBiYCFFB9omwXo4wvvXySGjYiCMAEG5L W7CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=68drh+HD3B8kqA4iJfCTtETiHN8Qp6JeI0HHmzHt8XA=; b=NyX2pyGIUANpes/dZ9brDsdAefejTvS8vYEyxmH7U46lhXXvOy5zZYSKNSTGc/Ru07 q7IfBSB30Nh1UlY76rSd9fNX5sAsAAhKwcke+IEM9GO4gujXAjmcQes8AeNMIu1ReKAN yvFBPOIP/79P9v/rClc8GiiU9nurzN3ujw9oofS8tgb6WwaULCfXzzHE6KWnCtElit6c fXQY0QZNjgUEPRonwk1RfwOlgUZwFmn8S/LyHZ7pusYoLJGhGIrbtnhMxiaYgv/8v5kV Vd0vjb7TFwo5ykSqHvbffVw3pYQD3VkqtMLtcFbDt9MQhxKhZ6ZG8I0F8v1sBWi8XoS+ MqTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=qrweyHTw; 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 e9si8367393otp.267.2020.03.23.23.25.25; Mon, 23 Mar 2020 23:25:39 -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=@ellerman.id.au header.s=201909 header.b=qrweyHTw; 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 S1726094AbgCXGX3 (ORCPT + 99 others); Tue, 24 Mar 2020 02:23:29 -0400 Received: from ozlabs.org ([203.11.71.1]:39887 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgCXGX3 (ORCPT ); Tue, 24 Mar 2020 02:23:29 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48mh5T3XFyz9sNg; Tue, 24 Mar 2020 17:23:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1585031005; bh=pyXXTSOM4rJiyzQjZhPpy8qmKgXBedErkVyMHCYOl80=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=qrweyHTwsbAvl7ERrTWZk38mrgANw/NQhKqMufsiiCAth3EoXC5Ob9kEwnV5jOedS iNxbRgJ35iK0SrppQiB7CzsHb9YS/VmMB0LP27lVQMpBKe32Ohzfuj5AA+88nOksyq J9Xq//SDVLs6wMYJP3Qb5i/cOPCV2OuZoJc0XIqlOIIHMuLx6bqI3UGdMXvT78cxa7 8VmstvqGa6jL29bJ+QHhSArN7ATzJcXc3gCHSlLY9GTWU1TjddRJfLy2GfR2ZT6bqK hEi7jRWFO68/gqFSH32r1dnWgAxU1ozpsad4171Sd6ut2q7772RSPXC1paQoPNUM9b 6ff411U9oiBPw== From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , mikey@neuling.org Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v5 10/13] powerpc/ptrace: split out ADV_DEBUG_REGS related functions. In-Reply-To: <25a7f050-f241-6035-e778-16b1ca9928f3@c-s.fr> References: <87imizdbaz.fsf@mpe.ellerman.id.au> <25a7f050-f241-6035-e778-16b1ca9928f3@c-s.fr> Date: Tue, 24 Mar 2020 17:23:29 +1100 Message-ID: <87k13axoda.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > On 03/20/2020 02:12 AM, Michael Ellerman wrote: >> Christophe Leroy writes: >>> Move ADV_DEBUG_REGS functions out of ptrace.c, into >>> ptrace-adv.c and ptrace-noadv.c >>> >>> Signed-off-by: Christophe Leroy >>> --- >>> v4: Leave hw_breakpoint.h for ptrace.c >>> --- >>> arch/powerpc/kernel/ptrace/Makefile | 4 + >>> arch/powerpc/kernel/ptrace/ptrace-adv.c | 468 ++++++++++++++++ >>> arch/powerpc/kernel/ptrace/ptrace-decl.h | 5 + >>> arch/powerpc/kernel/ptrace/ptrace-noadv.c | 236 ++++++++ >>> arch/powerpc/kernel/ptrace/ptrace.c | 650 ---------------------- >>> 5 files changed, 713 insertions(+), 650 deletions(-) >>> create mode 100644 arch/powerpc/kernel/ptrace/ptrace-adv.c >>> create mode 100644 arch/powerpc/kernel/ptrace/ptrace-noadv.c >> >> This is somehow breaking the ptrace-hwbreak selftest on Power8: >> >> test: ptrace-hwbreak >> tags: git_version:v5.6-rc6-892-g7a285a6067d6 >> PTRACE_SET_DEBUGREG, WO, len: 1: Ok >> PTRACE_SET_DEBUGREG, WO, len: 2: Ok >> PTRACE_SET_DEBUGREG, WO, len: 4: Ok >> PTRACE_SET_DEBUGREG, WO, len: 8: Ok >> PTRACE_SET_DEBUGREG, RO, len: 1: Ok >> PTRACE_SET_DEBUGREG, RO, len: 2: Ok >> PTRACE_SET_DEBUGREG, RO, len: 4: Ok >> PTRACE_SET_DEBUGREG, RO, len: 8: Ok >> PTRACE_SET_DEBUGREG, RW, len: 1: Ok >> PTRACE_SET_DEBUGREG, RW, len: 2: Ok >> PTRACE_SET_DEBUGREG, RW, len: 4: Ok >> PTRACE_SET_DEBUGREG, RW, len: 8: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_EXACT, WO, len: 1: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_EXACT, RO, len: 1: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_EXACT, RW, len: 1: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW ALIGNED, WO, len: 6: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW ALIGNED, RO, len: 6: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW ALIGNED, RW, len: 6: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, WO, len: 6: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, RO, len: 6: Fail >> failure: ptrace-hwbreak >> >> I haven't had time to work out why yet. >> > > A (big) part of commit c3f68b0478e7 ("powerpc/watchpoint: Fix ptrace > code that muck around with address/len") was lost during rebase. > > I'll send a fix, up to you to squash it in or commit it as is. Thanks. cheers