From patchwork Tue Nov 20 00:11:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dmitry V. Levin" X-Patchwork-Id: 1000199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zbq6vNWO"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="EpIwF6g/"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42zR2x147hz9s8F for ; Tue, 20 Nov 2018 11:11:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QZ/j9+PmnFM6zNGk1aDi7lLKVWblbPbVsF/WuHsJuKA=; b=Zbq6vNWOESw9jy wBtj/DfKB8JSYbDw4+Hl9+xwRTw0SfmK67bNViKdVna9HdB2eOSnhfItGKoRCosnlEuU4yjUGaRFo Cg+n9YsuFMkxVYYXcWH+paNfO9VpOL4/eIFLWk6nXRqqQpo7Bl6wgEEa9//Z7Kt6hrlEBK2ccF2CT Ob+uKTpev1QVA/Tsi2GifoEiqh8UdzXpQyfb3q0NlO+abW4DZoHu/0QcCRg13Gx5X0rIBLjfLHf+e OQaQckSWiRVLKlE2cJoOMGSkOjvNatIhZC9Pp6f8J5qEJD2LCLLCiEjnC6TgPK4+O67x9PXpYtRXS 2NOiLxJ2qJCQS0ZofQwA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOtdu-0006Ca-Dj; Tue, 20 Nov 2018 00:11:50 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOtdq-0006Bx-Df; Tue, 20 Nov 2018 00:11:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZhIBE19kpg4+CuqtY8aPJND/BWZRsva0xtfqygHFAqo=; b=EpIwF6g/H1xhYF7DRYzAkL7GZ PFx20/dm1i8zjWEZH27OvDRCFYOIdKsOPccR0WQk5Pr33/fd6fK6c5zSQFsh5PVRpgXWDgq1qmFd3 o5DttYMuJKmbHfkJSFUhSFaE0AHwN80wUiVzJ7WhWvdMNFA4QbHOogz78IrzVtDZJux8jcJpQICqC fDN28/Ve0GOg7+bXE8+odfaxn1MLktNfY89rx6zqsve9XogInDTW+iI3gwYU38nKn0gmPa3GbUqaq O2Zm5ayLK2BUmROYggg2o6sWXR3TK0uRCugVWNS1jhhyHinGffSaqE23PGcdRPqS+Ufi0XuEqSzgC KkaNKj+iA==; Received: from vmicros1.altlinux.org ([194.107.17.57]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOtdl-0005vw-Gs; Tue, 20 Nov 2018 00:11:43 +0000 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 3A24472CA5E; Tue, 20 Nov 2018 03:11:29 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 288D97CD1FF; Tue, 20 Nov 2018 03:11:29 +0300 (MSK) Date: Tue, 20 Nov 2018 03:11:29 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski Subject: [PATCH v2 00/15] Prepare for PTRACE_GET_SYSCALL_INFO Message-ID: <20181120001128.GA11300@altlinux.org> References: <20181107042751.3b519062@akathisia> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_001141_609778_D8B1DD2F X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Brodkin , Max Filippov , linux-riscv@lists.infradead.org, Vincent Chen , Paul Moore , Yoshinori Sato , linux-hexagon@vger.kernel.org, Elvira Khabirova , Palmer Dabbelt , Mark Salter , Geert Uytterhoeven , linux-snps-arc@lists.infradead.org, uclinux-h8-devel@lists.sourceforge.jp, linux-xtensa@linux-xtensa.org, Albert Ou , Aurelien Jacquiot , linux-m68k@lists.linux-m68k.org, Greentime Hu , nios2-dev@lists.rocketboards.org, linux-c6x-dev@linux-c6x.org, Chris Zankel , Vineet Gupta , linux-kernel@vger.kernel.org, Eric Paris , Richard Kuo , linux-audit@redhat.com, Ley Foon Tan Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org syscall_get_arch() is required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. The primary intent is that the triple (audit_arch, syscall_nr, arg1..arg6) should describe what system call is being called and what its arguments are. Dmitry V. Levin (15): Move EM_HEXAGON to uapi/linux/elf-em.h Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Move EM_UNICORE to uapi/linux/elf-em.h elf-em.h: add EM_NDS32 elf-em.h: add EM_XTENSA m68k: define syscall_get_arch() arc: define syscall_get_arch() c6x: define syscall_get_arch() h8300: define syscall_get_arch() hexagon: define syscall_get_arch() nds32: define syscall_get_arch() nios2: define syscall_get_arch() riscv: define syscall_get_arch() unicore32: define syscall_get_arch() xtensa: define syscall_get_arch() arch/arc/include/asm/elf.h | 6 +----- arch/arc/include/asm/syscall.h | 10 ++++++++++ arch/c6x/include/asm/syscall.h | 7 +++++++ arch/h8300/include/asm/syscall.h | 5 +++++ arch/hexagon/include/asm/elf.h | 6 +----- arch/hexagon/include/asm/syscall.h | 8 ++++++++ arch/m68k/include/asm/syscall.h | 12 ++++++++++++ arch/nds32/include/asm/syscall.h | 8 ++++++++ arch/nios2/include/asm/syscall.h | 6 ++++++ arch/riscv/include/asm/syscall.h | 10 ++++++++++ arch/unicore32/include/asm/elf.h | 3 +-- arch/unicore32/include/asm/syscall.h | 12 ++++++++++++ arch/xtensa/include/asm/syscall.h | 7 +++++++ include/uapi/linux/audit.h | 15 +++++++++++++++ include/uapi/linux/elf-em.h | 7 +++++++ 15 files changed, 110 insertions(+), 12 deletions(-) create mode 100644 arch/m68k/include/asm/syscall.h create mode 100644 arch/unicore32/include/asm/syscall.h