Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp263210imu; Thu, 8 Nov 2018 19:17:41 -0800 (PST) X-Google-Smtp-Source: AJdET5cfAeGi9VegOJxU/0H0JSlxwlx5F+j/YdxltWm/69zCKCqOzPKb4f8CEQKv0tPptNdttofg X-Received: by 2002:a63:224f:: with SMTP id t15mr5987098pgm.69.1541733461309; Thu, 08 Nov 2018 19:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541733461; cv=none; d=google.com; s=arc-20160816; b=fFihsUX54GWpSmxK6T3VZ/OQUzzU2NTe0S3ErWj28eRQzEEF8Af0rljnBo8crH8yc/ ta+tlydZNziZCUUIf3CBrfNxcNyMx9VTEcl9zLNZ7C1zR4+xLEpfx954cmBTNekS45mV 9bW+Js6ry0CasHda/YE/dHv60WFC8yzZn1lTbe9y0iXNRwqVCdh8GZTWPZw9m2OYy3Bv oEadDhXSOLvMfLwgetZ0m9zTD3aTttfNgjvUsMg0xtJ/XXL9ednqGUJ+xPAbVM7Vlxm9 vf2blDKH1htGg3nLuItFaK+XNmh6UfSM77iWpo2WxIn7oJOFTVdzvbKTb/6kuqnRAlo9 JYXA== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=L6KVhthrNvZX8NGsFe2ruYPleGvIPQqHQCOXLi7XCuc=; b=lBh8T0Z/ZPz2BCb1IdU2OQzpll7bm7Hubd4UCYI3GUKh2Pt9d1xiAFMAYouglG5BAu MBY939C+wurNvmOhb3Z5aoFCxB83jPSknLiYaooxLMwyAmB9IYv79w9PrVynlAbuGWs9 2qFiPyqy48c1iUBrqEt7ji5M6KJe0KUW+OiwAuTJGeOwh4duQhkqRNWNldfURSU9eEnW lFYdZqC+LHRV1Ba564aQE5X5IS3s0/VwfzzxG9laGcES2j2iANL7h1zfkVMI+QCmPI1Z mpErDr2/utZT2kwDlLPipqhNKwf6RUe49qRaYayJvMSR9C0kTt5GCwrvfgY1l+/lKzY8 w9gQ== 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 w22-v6si5237155pgk.214.2018.11.08.19.17.26; Thu, 08 Nov 2018 19:17:41 -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 S1727944AbeKIMzF (ORCPT + 99 others); Fri, 9 Nov 2018 07:55:05 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:49114 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727238AbeKIMzF (ORCPT ); Fri, 9 Nov 2018 07:55:05 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id D916772CC59; Fri, 9 Nov 2018 06:16:25 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id CAC027CD1FF; Fri, 9 Nov 2018 06:16:25 +0300 (MSK) Date: Fri, 9 Nov 2018 06:16:25 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski , Yoshinori Sato , Paul Moore , Eric Paris Cc: Elvira Khabirova , uclinux-h8-devel@lists.sourceforge.jp, linux-audit@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 08/13] h8300: define syscall_get_arch() Message-ID: <20181109031625.GH21511@altlinux.org> Mail-Followup-To: Andy Lutomirski , Yoshinori Sato , Paul Moore , Eric Paris , Elvira Khabirova , uclinux-h8-devel@lists.sourceforge.jp, linux-audit@redhat.com, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181109031303.GA20906@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 that use tracehook_report_syscall_entry() in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- arch/h8300/include/asm/syscall.h | 5 +++++ include/uapi/linux/audit.h | 1 + 2 files changed, 6 insertions(+) diff --git a/arch/h8300/include/asm/syscall.h b/arch/h8300/include/asm/syscall.h index 924990401237..699664a0b1be 100644 --- a/arch/h8300/include/asm/syscall.h +++ b/arch/h8300/include/asm/syscall.h @@ -8,6 +8,7 @@ #include #include #include +#include static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) @@ -47,6 +48,10 @@ syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, } } +static inline int syscall_get_arch(void) +{ + return AUDIT_ARCH_H8300; +} /* Misc syscall related bits */ diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index 3eb1397c2b8f..2319283f00e5 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h @@ -381,6 +381,7 @@ enum { #define AUDIT_ARCH_C6X (EM_TI_C6000) #define AUDIT_ARCH_CRIS (EM_CRIS|__AUDIT_ARCH_LE) #define AUDIT_ARCH_FRV (EM_FRV) +#define AUDIT_ARCH_H8300 (EM_H8_300) #define AUDIT_ARCH_I386 (EM_386|__AUDIT_ARCH_LE) #define AUDIT_ARCH_IA64 (EM_IA_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) #define AUDIT_ARCH_M32R (EM_M32R) -- ldv