From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A49A7C433ED for ; Thu, 20 May 2021 03:00:29 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9EBC06101D for ; Thu, 20 May 2021 03:00:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EBC06101D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FlvcW0wRmz30BC for ; Thu, 20 May 2021 13:00:27 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=altlinux.org (client-ip=194.107.17.57; helo=vmicros1.altlinux.org; envelope-from=ldv@altlinux.org; receiver=) Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by lists.ozlabs.org (Postfix) with ESMTP id 4Flvbq48kFz2yXd for ; Thu, 20 May 2021 12:59:50 +1000 (AEST) Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 7D45C72C8BA; Thu, 20 May 2021 05:59:48 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 700037CC8A6; Thu, 20 May 2021 05:59:48 +0300 (MSK) Date: Thu, 20 May 2021 05:59:48 +0300 From: "Dmitry V. Levin" To: Nicholas Piggin Subject: Re: Linux powerpc new system call instruction and ABI Message-ID: <20210520025948.GA27081@altlinux.org> References: <1621410291.c7si38sa9q.astroid@bobo.none> <1621413143.oec64jaci5.astroid@bobo.none> <20210519143836.GJ10366@gate.crashing.org> <11d62aa2488e51ec00fe77f24a1d7cdcc21af0b8.camel@infinera.com> <20210519152205.GL10366@gate.crashing.org> <20210519234846.GS2546@brightrain.aerifal.cx> <20210520010612.GA25599@altlinux.org> <1621478448.743zqcrxza.astroid@bobo.none> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1621478448.743zqcrxza.astroid@bobo.none> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , musl@lists.openwall.com, linux-api@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, May 20, 2021 at 12:45:57PM +1000, Nicholas Piggin wrote: > Excerpts from Dmitry V. Levin's message of May 20, 2021 11:06 am: > > On Wed, May 19, 2021 at 07:48:47PM -0400, Rich Felker wrote: > >> On Wed, May 19, 2021 at 06:09:25PM +0000, Joakim Tjernlund wrote: > > [...] > >> > W.r.t breaking ABI, isn't that what PowerPC is trying to do with the new syscall I/F? > >> > >> No, it's a new independent interface. > > > > Unfortunately, being a new independent interface doesn't mean it isn't > > an ABI break. In fact, it was a severe ABI break, and this thread is > > an attempt to find a hotfix. > > It is an ABI break, that was known. The ptrace info stuff I fixed with > the patch earlier was obviously a bug in my initial implementation and > not intended (sorry my ptrace testing was not sufficient, and thanks for > reporting it, by the way). Could you check whether tools/testing/selftests/ptrace/get_syscall_info.c passes again with your fix, please? If yes, then PTRACE_GET_SYSCALL_INFO is fixed. By the way, kernel tracing and audit subsystems also use those functions from asm/syscall.h and asm/ptrace.h, so your ptrace fix is likely to fix these subsystems as well. -- ldv