Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3434560imu; Mon, 19 Nov 2018 16:15:24 -0800 (PST) X-Google-Smtp-Source: AJdET5cGHu/hV+/115C2nz8gYLpjy3NbtPY5MJgchUuYj3KhC7Vb6PRY6jRCtQOtKiyg0I6HLy8p X-Received: by 2002:a63:8f45:: with SMTP id r5mr21863950pgn.222.1542672924292; Mon, 19 Nov 2018 16:15:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542672924; cv=none; d=google.com; s=arc-20160816; b=XlNibMANBeX/mYE2YZa3JIc85f4KhXVhBcx6DuX5KgakgdFpKMPOO9HCNtTYsE7u7E 7pf4Q1xPE2AMQPGItUuRyaZCHIQL0k+JxNMLOFcUODAF2dKL6Sc9KG/naEAJjFqyl216 jTXEDkKJAI2dhNy8gc8QEPi7Hnt8na/7WB+P+QEaFSZbfMyxDQE5WVzbNCSlFaDmZNfe fEbxKPq9t4MT7G6gK2EqpgGpqvMIbWwQN+thKfFbMghN2h8LzduEyzbruKtmjUkD72iJ p1OnjJZNK2PbjQmgT9Nd4dUU4inqxpQluwATPmq7+7Og0sA4MBh7IMxmz2+pfmQa89Vm kHcQ== 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=ZhIBE19kpg4+CuqtY8aPJND/BWZRsva0xtfqygHFAqo=; b=eQ0GKxPHT3jsXykrQWgxfL+bSaFT6eP0YMD4ahmny38v2gUU9NRKmduzAy/WHcUmol uV615h2JXXsAxs7+uHqWdAcjhwR4ipu9gYjWo+x6PktUB/7WWUwvJBBolPLHdF0AcHQx HNj+KyQdphqtwBnDAZVlylCUQXrrhhFHTv7JJiLhW3XDD6y5nR3B+0MxLYOAPgwljGHI 621HdZnv4O9up93FwyHInUiGkmoXNOlm8pQu3P8fmizc7UW9nBVb/OOgmhEtzNXlc38h 3Qx3QVvARknc5+L4yUUOzzXmPqTO9l5d8CwgwJphnA9FSHrMpmkzHhzrLaJIkyYq6HKB yJJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a185si38305005pge.404.2018.11.19.16.15.09; Mon, 19 Nov 2018 16:15:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731997AbeKTKho (ORCPT + 99 others); Tue, 20 Nov 2018 05:37:44 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:51034 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbeKTKho (ORCPT ); Tue, 20 Nov 2018 05:37:44 -0500 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 Cc: Elvira Khabirova , Albert Ou , Alexey Brodkin , Aurelien Jacquiot , Chris Zankel , Eric Paris , Geert Uytterhoeven , Greentime Hu , Ley Foon Tan , Mark Salter , Max Filippov , Palmer Dabbelt , Paul Moore , Richard Kuo , Vincent Chen , Vineet Gupta , Yoshinori Sato , linux-audit@redhat.com, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-riscv@lists.infradead.org, linux-snps-arc@lists.infradead.org, linux-xtensa@linux-xtensa.org, nios2-dev@lists.rocketboards.org, uclinux-h8-devel@lists.sourceforge.jp, linux-kernel@vger.kernel.org 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- ldv