Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp865541imu; Fri, 9 Nov 2018 07:20:20 -0800 (PST) X-Google-Smtp-Source: AJdET5c9+a9/kbbZKgeP0Mr0zCnsORQvUEzGrS1vMeSCH1riD5C0jAOXIamsAS5G0WXdZuLffdIc X-Received: by 2002:a62:b0b:: with SMTP id t11-v6mr8925930pfi.93.1541776820371; Fri, 09 Nov 2018 07:20:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541776820; cv=none; d=google.com; s=arc-20160816; b=PDFTjWgzBxuAh9cKeJmPBAmAlGrtopjixtE10yQE0w3o9+/VclTb6IBENj67J35Pyo tReQpHn0ClDuy4XuZfpzpCMMMHrVXCaRZR78t2DzxZksrAer1mfpFwgPOyXKKfjoILD9 p+wZz1cTK12M5nJOMPWiSOxfLw11UiykxL2tlkSaFP/maZAELZJA13TcIUCc/8UiOsrP 2MZMFp21+hL8JCoLbUytQ1JulwROyJsWkWJyZyMP7LHhLRaLSdf3okryPQU1ldMGWHja iahQ20PttPxkQyWjVrTkaYAL52YBWLJ7AtjB5YU/SApwMJs7T2VHWpZaLuDmuAnPmVMy NhVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nXXXLPbjEIpwJWVZz6r3Q9gW06LTMJkFFigJcZQ2Ua0=; b=IFp38uITTxsbxsrGRvVWpbBUVSU8v6kZAM4twbU/4kjZsdC9KGTBaf3UYPtMEw8xw+ rzAAd4nFpgZDDO7rlPbOEQbrLqrdCyVmdHwxO2dPEmIDDsEHdyQ8YdlmvzDrAm8QrdT6 WwNgHzqdbzg807dIIbm+OnG+0Ws/JxiAuSvxCHGwo/Za8HePZsJntnqJEzzV9F5CVChr e7/Fzynuno9pD8R/nAqdwjhIWk+VvLD8s1EaX6dTGmttWKy0YP0IFm572GSXv20/FSy6 j4D3i1ssrous2YcRMa3ndRqCl0ITRzHwpRzcL9jnpywdo/sgzR87OQsxkjkV4pU6b9HM qPGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HKI4Hb2O; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si7077104pgp.186.2018.11.09.07.19.44; Fri, 09 Nov 2018 07:20:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HKI4Hb2O; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbeKJA6j (ORCPT + 99 others); Fri, 9 Nov 2018 19:58:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:51694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727802AbeKJA6j (ORCPT ); Fri, 9 Nov 2018 19:58:39 -0500 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0470820892 for ; Fri, 9 Nov 2018 15:17:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541776659; bh=fcMmG+hGdT/EyOrz4pCXUiDLwKLkHOCh7WRgsbJQMzM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HKI4Hb2OMuLZpkMR9BnP58JjTi3DoWIsdm9RM4u3d87s2fflUR3wBnluAUYdupZuC L9TSbc7NJHdMJjHMk1WXC4u9U/VYX5MQVabZRoekGEzv7oUza1FRMCJnKJ5fbduqm8 vNjM0RQ6x4zdKcrpyB9dCHc8Ss3lk6/9Uzegxtsw= Received: by mail-wr1-f47.google.com with SMTP id e3-v6so2285849wrs.5 for ; Fri, 09 Nov 2018 07:17:38 -0800 (PST) X-Gm-Message-State: AGRZ1gL5KRbXuIBIH/Zzq9PExSqWbPwKlED1hGSDfxH8Gczjfv/XjRIF A9WV6VacGtdA4EiTfX/+uBMjYnkzTvybf6MItAcJ6w== X-Received: by 2002:adf:b1db:: with SMTP id r27-v6mr8382930wra.95.1541776657493; Fri, 09 Nov 2018 07:17:37 -0800 (PST) MIME-Version: 1.0 References: <20181109031605.GF21511@altlinux.org> In-Reply-To: From: Andy Lutomirski Date: Fri, 9 Nov 2018 07:17:25 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 06/13] arc: define syscall_get_arch() To: Alexey Brodkin Cc: "Dmitry V. Levin" , LKML , linux-audit@redhat.com, Vineet Gupta , Eric Paris , arcml , Andrew Lutomirski , Paul Moore , Elvira Khabirova Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 9, 2018 at 6:22 AM Alexey Brodkin wrote: > > Hi Dmitry, > > On Fri, 2018-11-09 at 06:16 +0300, Dmitry V. Levin wrote: > > 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/arc/include/asm/syscall.h | 6 ++++++ > > include/uapi/linux/audit.h | 1 + > > 2 files changed, 7 insertions(+) > > [snip] > > > diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h > > index 818ae690ab79..a7149ceb5b98 100644 > > --- a/include/uapi/linux/audit.h > > +++ b/include/uapi/linux/audit.h > > @@ -375,6 +375,7 @@ enum { > > > > #define AUDIT_ARCH_AARCH64 (EM_AARCH64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) > > #define AUDIT_ARCH_ALPHA (EM_ALPHA|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) > > +#define AUDIT_ARCH_ARC (EM_ARC) > > Similarly here we need to have: > ---------------------------->8----------------------------- > +#define AUDIT_ARCH_ARC (EM_ARC|EM_ARCV2) > ---------------------------->8----------------------------- > Huh? How does the bitwise or of two ELF machine codes make any sense?