Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3695244ybg; Sun, 7 Jun 2020 07:45:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9sWQb1653kKP6iI+D2nKrfzqTSHQrBKTPlWrORuQorjj6IXmhJgZX+Sw+MfxXK+yfd/w8 X-Received: by 2002:a17:906:fc06:: with SMTP id ov6mr18075174ejb.184.1591541112041; Sun, 07 Jun 2020 07:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591541112; cv=none; d=google.com; s=arc-20160816; b=mbkmRj8tG4ch4E22p8IvwsQyG87Hzza2qqoNGksHspCe6bHvviRRDmNK9AicXa8tNW RD+FSWQcXarOlvmOQ6r057Cw5pIUTXHo4dgdJXvEJMq+8WOAU1uJpc9j521LZmR2hshW MO1GAMdEPTtSczfuHYIQgMNl1K0SlEsjKrsTC4JTXZDf/OeZZcS4bMbH9GhGifIqCrEL DjxG083hpGbS1h0AHM89rAz24LuS4xjzpUGLwVBeeTQXehmlm+K9sCemIfh6T0rZ7Y4w U6b1ZNAnSRihFiRT4iZ2d8r8P8VgGSFXYbPPXXvlmf+67p74JLBd+Jq0s/NRMSQjdcib o7Ug== 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=KMmkAB+LRmq4YXZIbXZFN0uurgTYNXWXd95Gxi9PHuA=; b=LqO1CJxYpfkOMGztPIdbMOsmbBbz7UZYtj6XHT4yzNUX1i7q+Qfjla8TOzPGFQMnGu +B++8BpLLOM/5h1VGBQdkCjoIVU1BwhD4SuoNlq/+YV3QLlZMdJgUJ7sMt7h4ohMmWSw DfjYK/ikwuriQSIQWojlVD0jU0or1H2byMUYjQ50sjRMDqkVxhH/sMfRTas4ercThIpY kgtLQtWAxfiZsIVq+trHKWO+GE0HDMaoFqvu3aCpBSWAdWcwoDz4TFuV+PZbMXJFaEQ1 FjswLnKIWK7GsrjdeNNBI6uKIvs8OfpYbFyGusSSL151Gb08eXb1wnVQ7ViTr3fvVrMF D86w== 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 dp6si7932144ejc.472.2020.06.07.07.44.34; Sun, 07 Jun 2020 07:45:12 -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 S1726607AbgFGOmC (ORCPT + 99 others); Sun, 7 Jun 2020 10:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgFGOmB (ORCPT ); Sun, 7 Jun 2020 10:42:01 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81D24C08C5C3; Sun, 7 Jun 2020 07:42:01 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jhwUi-004fd3-1z; Sun, 07 Jun 2020 14:41:52 +0000 Date: Sun, 7 Jun 2020 15:41:52 +0100 From: Al Viro To: David Miller Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [git pull] a couple of sparc ptrace fixes Message-ID: <20200607144152.GM23230@ZenIV.linux.org.uk> References: <20200531010414.GW23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200531010414.GW23230@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 31, 2020 at 02:04:14AM +0100, Al Viro wrote: > The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: > > Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-davem > > for you to fetch changes up to cf51e129b96847f969bfb8af1ee1516a01a70b39: > > sparc32: fix register window handling in genregs32_[gs]et() (2020-05-20 13:29:37 -0400) > > ---------------------------------------------------------------- > Al Viro (2): > sparc64: fix misuses of access_process_vm() in genregs32_[sg]et() > sparc32: fix register window handling in genregs32_[gs]et() > > arch/sparc/kernel/ptrace_32.c | 228 ++++++++++++++++++------------------------ > arch/sparc/kernel/ptrace_64.c | 17 +--- > 2 files changed, 101 insertions(+), 144 deletions(-) Grrr... sparc32 fix had breakage of its own; I've pushed a fix into #for-davem. Fixup follows. Could you pull it? commit 9d964e1b82d8182184153b70174f445ea616f053 Author: Al Viro Date: Sat Jun 6 23:44:24 2020 -0400 fix a braino in "sparc32: fix register window handling in genregs32_[gs]et()" lost npc in PTRACE_SETREGSET, breaking PTRACE_SETREGS as well Fixes: cf51e129b968 "sparc32: fix register window handling in genregs32_[gs]et()" Signed-off-by: Al Viro diff --git a/arch/sparc/kernel/ptrace_32.c b/arch/sparc/kernel/ptrace_32.c index 60f7205ebe40..646dd58169ec 100644 --- a/arch/sparc/kernel/ptrace_32.c +++ b/arch/sparc/kernel/ptrace_32.c @@ -168,12 +168,17 @@ static int genregs32_set(struct task_struct *target, if (ret || !count) return ret; ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, - ®s->y, + ®s->npc, 34 * sizeof(u32), 35 * sizeof(u32)); if (ret || !count) return ret; + ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, + ®s->y, + 35 * sizeof(u32), 36 * sizeof(u32)); + if (ret || !count) + return ret; return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, - 35 * sizeof(u32), 38 * sizeof(u32)); + 36 * sizeof(u32), 38 * sizeof(u32)); } static int fpregs32_get(struct task_struct *target,