From patchwork Sat Feb 4 14:40:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 52789 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1378108wrn; Sat, 4 Feb 2023 06:41:59 -0800 (PST) X-Google-Smtp-Source: AK7set8aS0mRvMZZ3aNJ9lr2dMj/vXdqgI+FPJAXD/Yx+lGu5+7jzhI4+BAho2MYPUk7D91z67cj X-Received: by 2002:a17:902:f690:b0:195:f412:5e6e with SMTP id l16-20020a170902f69000b00195f4125e6emr17923126plg.31.1675521719385; Sat, 04 Feb 2023 06:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675521719; cv=none; d=google.com; s=arc-20160816; b=yf0c3aGixSHxS6Cid9bGNpUMBBawDo2zQWxpSG6+qQRQeYcE/WKu5cqqcvO/wiGNnp NOJ2c8KJ4YnMF6hXG0KX/cVEkMke//5cwxQNmqVszAX766/KtFMF0jopPNtLFB4t/m4Y Jo4EB5cRREczueCh56+nSLOky4gcxU/SwlPcsiKfQaJqFEbfy0/BOxDXpTkNgomYQaKm 5IFNWsD33/Jim4kr5HYDaiKJafwQ56gylIahIZvijKhBTsd/BjqdVh0/g2EaOepWNDRw TdXs38PEGrd6txDx9UdhVtLwC8JSsN7wxpaGOrxaEc+rE0HTQ2XqqR2bpnO8HLBDJsBD EEig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=do/H/ThwxqNsul2M4zLcn61yEEHqV4qEiyAuy0K+DK8=; b=llctP73zUuNwz8ybBsWdLNsp/h+Dtarcuz/CzqwV/jnhWuoUkmHmSvI99Yt/+x6riM 5ed0sjx4nxVUZlnu8Rzy19kFahsaeE/hKO9cBEW93qq2CtF9upx2uqlgb9PPewcepU3Q I1d0AzFBGs6xndyBFeC8jxcCbHHD/MRSfQRVQMlt3EPHSsDeNHDxzz7joLEkfv7zDVzj Vr6mfBp33DYUIYP/6rRoW2z6cv+0a/02dNDb1XiSpeSNGfzZc8Y4Cosknh9k/5Q1DfxP FwbPYr4QD0JgSlrNmyaNU00QNTUVOdh++ISazMVYWh3FQwr7SNYeDr3y+xUVIjFwI/fL gYcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=iBUmbxNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a170902db0100b00196629652f3si6571435plx.311.2023.02.04.06.41.47; Sat, 04 Feb 2023 06:41:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=iBUmbxNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232098AbjBDOlB (ORCPT + 99 others); Sat, 4 Feb 2023 09:41:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjBDOk6 (ORCPT ); Sat, 4 Feb 2023 09:40:58 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A13B3345B; Sat, 4 Feb 2023 06:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1675521648; bh=rKbHQ0P4cuSawW92l/bRnetIeGiXdJyjrDoEndx0j3U=; h=X-UI-Sender-Class:Date:From:To:Subject; b=iBUmbxNYfJ1CeDFsFCl84LiPU5dCD+wkbmsOTHk9t/XMwmPVbFsIi83QxdaDj4bK1 UARPV9OCAlm6bfTizAT83xfZ4LKAPJwD2f/Gdj055+JPryElDW/2g6gHe76e8VDOV2 XmIqq5XGGiVnDEizchyanPJAp8lBZkbp93qVzAH3QmR6Eprbi6k5UUs+J5sYu14x4A fqQWHRJHm3JBUfZW4uVC8ZLXWQk6kDz1Mr7NBuQ0w6uzAt5bW2E4+uQa0DK27PpxyF mHY0+H21JqSA34JhuQqmY3v/s8tgNh44uUWphLKr1YkHRU7ZJs6F6dYFC0BkZPwR3P hTs0C+9bs3yYg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from p100 ([92.116.151.109]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M72sP-1pGLVA46k3-008cBt; Sat, 04 Feb 2023 15:40:48 +0100 Date: Sat, 4 Feb 2023 15:40:45 +0100 From: Helge Deller To: Linus Torvalds , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [GIT PULL] parisc architecture fixes for v6.2-rc7 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K1:YYKsCD0udyd4IIb6VdJsl9J3YDC+zppquHu9Eyobt8BtHbj1Wh2 murd3vSgmBd4MCysjyEqG3+SwRkCIvlXtN5Q0t1jxygKud9slyR1BklpABMtkBrVlKNHBDD +KJ0SRXirGX6Jm+GcFlYd/N+EiXeWEUGuOIslzbigczGgJvSkq0xkqTEj137gNpaIZe/0LW Q0+lcc7ejwhNfXKMN8Hlg== UI-Outbo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_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756911862502892491?= X-GMAIL-MSGID: =?utf-8?q?1756911862502892491?= Hi Linus, please pull some small fixes for the parisc architecture, 3 out of 4 are tagged for stable series. The most important patch fixes ptrace() for the compat case, which is used by latest strace source which now used PTRACE_GETREGS() to get the CPU registers. Thanks, Helge The following changes since commit b7bfaa761d760e72a969d116517eaa12e404c262: Linux 6.2-rc3 (2023-01-08 11:49:43 -0600) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git tags/parisc-for-6.2-rc7 for you to fetch changes up to 316f1f42b5cc1d95124c1f0387c867c1ba7b6d0e: parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case (2023-02-01 21:42:37 +0100) ---------------------------------------------------------------- parisc architecture fixes for kernel v6.2-rc7: - Fix PTRACE_GETREGS/PTRACE_SETREGS for 32-bit userspace on 64-bit kernel - pdc_iodc_print() dropped chars for newline in strings - Drop constants in favour of PRIV_USER - use safer strscpy() function in pdc_stable driver ---------------------------------------------------------------- Helge Deller (3): parisc: Fix return code of pdc_iodc_print() parisc: Replace hardcoded value with PRIV_USER constant in ptrace.c parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case Xu Panda (1): parisc: pdc_stable: use strscpy() to instead of strncpy() arch/parisc/kernel/firmware.c | 5 +++-- arch/parisc/kernel/ptrace.c | 21 ++++++++++++++++----- drivers/parisc/pdc_stable.c | 9 +++------ 3 files changed, 22 insertions(+), 13 deletions(-)