Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1934465img; Wed, 27 Feb 2019 07:55:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IYiT5GL5AwOUUXla28QKguGdNvnhVlQMYRaxVlV1LJh1Kw+RI6SBkD70RueXI2K/Z1pcsg5 X-Received: by 2002:aa7:81ce:: with SMTP id c14mr2258414pfn.51.1551282945544; Wed, 27 Feb 2019 07:55:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551282945; cv=none; d=google.com; s=arc-20160816; b=TQAG476AlwE423AEkkxLx0tJXv9fL0h1Ci4ip7XiOVdRTEYsxqeFId52KdPC8xoeYV TwD5fAil3Z+/NYf86DeA77PwuDL5tVkh4/B2znS1ddE8R5R777pdxluIWEV6RxGM3aqO 3mzm21VuHm7zHHEZKFLKv8Bgt9deZ8ATyGyu723a+JLLOtnuB7kSeYwghXwov2juxYrO yd4dUz+RRsckZtMlXoaVk7AEODNtQrVgw8k/Ln1AsrWeRuTuO2AsIdBMGBvg5GVFR51i K8vmXpm5C07o15BoQiP86KlTQy9rp3Kj8nJYkXMSMWO8paFIT7D7dQ7GxZ7FHHOP4GXo YOhg== 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=BTYAsyNPiFl9/JACZaFcZ045uLQYRljl0QDaUSFxFR8=; b=V5iPYDprNyDN+SV5SaFDB8jga2HACg+ZBI7IjfBksnUcFPYMu+uK4Vg1bzZ8uei5pk ZgKnHeK6hbhsvWuh/quRBTppAZ5EgLbikHJkNmMoPCeWTdEvgFFbbaxFXu2ZoBHAQkzz pEIIj92DX7Tm4a9xk8/3YakIqkYeD52u+xveEIB8yyskqdcF4dBZEP6pw6pHNwFtEVCp y1LJNFcIz6fn853QnlAuRkZQJajcflarDKTQAhRpAfJevpmN5G3CnR0dZDFTw/bZkIW8 H8E7B95Pe1R2o2ESpDsGX0yJETsmxrx0frlnvruEw2U7Tyk1BEYkbSyluWz5Dh3PVH/T LfUw== 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 68si15084779pga.497.2019.02.27.07.55.30; Wed, 27 Feb 2019 07:55:45 -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 S1730033AbfB0PbN (ORCPT + 99 others); Wed, 27 Feb 2019 10:31:13 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:40540 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfB0PbN (ORCPT ); Wed, 27 Feb 2019 10:31:13 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id D4E2E72CCBA; Wed, 27 Feb 2019 18:31:09 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id B64487CC72E; Wed, 27 Feb 2019 18:31:09 +0300 (MSK) Date: Wed, 27 Feb 2019 18:31:09 +0300 From: "Dmitry V. Levin" To: Ley Foon Tan , nios2-dev@lists.rocketboards.org Cc: Elvira Khabirova , Eugene Syromyatnikov , Oleg Nesterov , Andy Lutomirski , Paul Moore , linux-audit@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 10/14] nios2: define syscall_get_arch() Message-ID: <20190227153109.GF23744@altlinux.org> References: <20190109124044.GA11935@altlinux.org> <20190109124323.GJ11981@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190109124323.GJ11981@altlinux.org> 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 addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Acked-by: Paul Moore Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: Ley Foon Tan Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: nios2-dev@lists.rocketboards.org Cc: linux-audit@redhat.com Signed-off-by: Dmitry V. Levin --- This is just a gentle ping, the patch is unchanged. arch/nios2/include/asm/syscall.h | 6 ++++++ include/uapi/linux/audit.h | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/nios2/include/asm/syscall.h b/arch/nios2/include/asm/syscall.h index 9de220854c4a..cf35e210fc4d 100644 --- a/arch/nios2/include/asm/syscall.h +++ b/arch/nios2/include/asm/syscall.h @@ -17,6 +17,7 @@ #ifndef __ASM_NIOS2_SYSCALL_H__ #define __ASM_NIOS2_SYSCALL_H__ +#include #include #include @@ -135,4 +136,9 @@ static inline void syscall_set_arguments(struct task_struct *task, } } +static inline int syscall_get_arch(void) +{ + return AUDIT_ARCH_NIOS2; +} + #endif diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index 1568ddc1c945..efeb0bbd6c4d 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h @@ -403,6 +403,7 @@ enum { __AUDIT_ARCH_CONVENTION_MIPS64_N32) #define AUDIT_ARCH_NDS32 (EM_NDS32|__AUDIT_ARCH_LE) #define AUDIT_ARCH_NDS32BE (EM_NDS32) +#define AUDIT_ARCH_NIOS2 (EM_ALTERA_NIOS2|__AUDIT_ARCH_LE) #define AUDIT_ARCH_OPENRISC (EM_OPENRISC) #define AUDIT_ARCH_PARISC (EM_PARISC) #define AUDIT_ARCH_PARISC64 (EM_PARISC|__AUDIT_ARCH_64BIT) -- ldv