From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.virtlab.unibo.it (mail.virtlab.unibo.it [130.136.161.50]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4E6F43F4DF for ; Fri, 10 Jul 2026 16:49:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.136.161.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783702166; cv=none; b=pQ0a98TLZTwd9bOy6lEKFQ+1RCkUlzTpO62O7oMaIRAAlZ3t7sWUMc1cEVQfYyGY4U+WN0StPuQJHsZXv8Qdn2vY1AsxdoBp4stoUrb/tK303yf8m0T//JGTLqO5q7nB2K0CHKda57fltum/F/E3apnvQZYoRoks9R+Ty9ePU20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783702166; c=relaxed/simple; bh=TEJU6M8HgDrucRMEWOlfEySkUohsaiWDq6Fh0Ep524Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FzqEte/TkkboyUS0pvjgh9VUAbhwlP6doBhQ3pIwf4TkREoxLuBB5YjId9urrr290NYpe1syggJm7r+1T6c6CX2wnniqS5gt0q5F86Wp8VbPTxl8vVk1Vn1kqISvGxWyc8EnmnOriO9cjpFbmg+HQQTq0hKe4tXrNNhUIsIxk8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cs.unibo.it; spf=pass smtp.mailfrom=cs.unibo.it; dkim=pass (1024-bit key) header.d=cs.unibo.it header.i=@cs.unibo.it header.b=K099pCMP; arc=none smtp.client-ip=130.136.161.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cs.unibo.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cs.unibo.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cs.unibo.it header.i=@cs.unibo.it header.b="K099pCMP" Received: from cs.unibo.it (unknown [94.32.99.206]) by mail.virtlab.unibo.it (Postfix) with ESMTPSA id D1D1E1C015C; Fri, 10 Jul 2026 18:49:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.unibo.it; s=virtlab; t=1783702154; bh=TEJU6M8HgDrucRMEWOlfEySkUohsaiWDq6Fh0Ep524Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K099pCMPzT+EN4eeJY91k/R9AdMzsfbn/H6TkAOOUdp88S5JKZ0QgaX9BxSOs835f GRAy+NMcdSfLUAvKkCwcjE5gToFZgB5bSv07ehnrw7fcOxQWzvR7JaYCI87K0xZwPZ vfFfNhpMiFT3Z5S1D2Sv5f6D+SFi8yPF7aB26F0c= Date: Fri, 10 Jul 2026 18:49:11 +0200 From: Renzo Davoli To: Michal =?iso-8859-1?Q?Such=E1nek?= Cc: linux-kernel@vger.kernel.org, Andrew Morton , Oleg Nesterov , Shuah Khan , Alexey Gladkov , Eugene Syromyatnikov , Davide Berardi , strace-devel@lists.strace.io, "Dmitry V . Levin" Subject: Re: [PATCH v5 0/2] PTRACE_SET_SYSCALL_INFO: add support for seccomp syscall skipping Message-ID: References: <20260709100949.94345-1-renzo@cs.unibo.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Michal, I am not an expert of the powerpc architecture. On Fri, Jul 10, 2026 at 05:38:32PM +0200, Michal Suchánek wrote: > On these architectures the syscall number and the syscall return value > share the same register. Reading the file arch/powerpc/include/asm/syscall.h the functions syscall_get_nr() syscall_set_nr() read and write regs->gpr[0] while syscall_get_return_value() syscall_set_return_value() read and write regs->gpr[3] (and one bit in regs->ccr as an error flag). Am I missing another part of the entry/exit path where the two overlap? Thank you. renzo