Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp288284imb; Fri, 1 Mar 2019 00:13:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxWEFUWIaylRtEyzqRUg0+qQSL9SfWCoSnpyvuKGjToilnu1ygkAkQ96mAGbNXrBRdBKWX7 X-Received: by 2002:a17:902:f096:: with SMTP id go22mr4048987plb.172.1551428016758; Fri, 01 Mar 2019 00:13:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551428016; cv=none; d=google.com; s=arc-20160816; b=1FQkQGzrSVzPqec1rMFFYfqhAAsMnh3dGbwJ0+B/By/mrZEifFSWQXtEVyir3Uj+FW kbBkS3KJcO5GNNy+pbUIi269sw7aYiBTXZqx495UJ+8o9kM0GP2JI8iaX6ZUC2zSrTbq adi960LzCR8E6xb3Y7odX4faGyF91VHXI/kRYeNkzBWolPQo13idMY6w5JHgBXsxG5F5 bOaGL08hglAuJUb9FTJTVTJ6krjtXS0oi2NJ+Lo+Y4y+NeiJlxwHzdabzvxLBOiGCjih tiq4K264QA/k63HRjFs2X7XZfiI6uWJfLMeXv/kwr6IGM3oQjDwRKTW2H1pDqIzy2l0Q TGxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=BNPk8cWK2gEFaPNkD2fD1SMpozJbDEqLJ0DZ+XcBuiI=; b=A5XScbdjxDKBstWctF0M0Iw2mGV60aBgncOlPuYzLHprpbMAnOdhhCLhY0Vw2PINBN LvcFkqg0NW8LKCjsbbrPDHyVSEnYHOUzvMwTRPMYNAa5MANU2awcgjL1Yc95cufKGBSL kTOLyk+/hiKwjH99bTipM8LAqlU8GcLRFc5/+swiz5G//hpkKwar3gY8NCOHkrPRcL4O luzyiwIuntZmMKyQKxL943AQn7hENOalL9HzJtgrGzy7QE2Ih2UzoBS8Kz7ymIu4k7Mf PdBrdw0yqu1p/wNM3tS3Bg/hNP0v0COnVQD9lYgTggeQwWByaVe2chFpub+Hx3Ig2/1C rPtQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x77si6292928pgx.310.2019.03.01.00.12.51; Fri, 01 Mar 2019 00:13:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732515AbfCAHa0 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 1 Mar 2019 02:30:26 -0500 Received: from mga04.intel.com ([192.55.52.120]:50762 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfCAHaZ (ORCPT ); Fri, 1 Mar 2019 02:30:25 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 23:30:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,426,1544515200"; d="scan'208";a="121750376" Received: from lftan-mobl.gar.corp.intel.com (HELO ubuntu) ([10.226.248.85]) by orsmga008.jf.intel.com with SMTP; 28 Feb 2019 23:30:21 -0800 Received: by ubuntu (sSMTP sendmail emulation); Fri, 01 Mar 2019 15:30:20 +0800 Message-ID: <1551425419.24631.18.camel@intel.com> Subject: Re: [PATCH 10/14] nios2: define syscall_get_arch() From: Ley Foon Tan To: "Dmitry V. Levin" , 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 Date: Fri, 01 Mar 2019 15:30:19 +0800 In-Reply-To: <20190227153109.GF23744@altlinux.org> References: <20190109124044.GA11935@altlinux.org> <20190109124323.GJ11981@altlinux.org> <20190227153109.GF23744@altlinux.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.18.5.2-0ubuntu3.1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-02-27 at 18:31 +0300, Dmitry V. Levin wrote: > 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 Acked-by: Ley Foon Tan Regards Ley Foon > --- >  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 > > ________________________________ > > Confidentiality Notice. > This message may contain information that is confidential or > otherwise protected from disclosure. If you are not the intended > recipient, you are hereby notified that any use, disclosure, > dissemination, distribution, or copying of this message, or any > attachments, is strictly prohibited. If you have received this > message in error, please advise the sender by reply e-mail, and > delete the message and any attachments. Thank you.