From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FA4DC46465 for ; Tue, 20 Nov 2018 20:27:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58B3C214D9 for ; Tue, 20 Nov 2018 20:27:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore-com.20150623.gappssmtp.com header.i=@paul-moore-com.20150623.gappssmtp.com header.b="K52MWwN4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 58B3C214D9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=paul-moore.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726941AbeKUG6E (ORCPT ); Wed, 21 Nov 2018 01:58:04 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43627 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbeKUG6D (ORCPT ); Wed, 21 Nov 2018 01:58:03 -0500 Received: by mail-lj1-f194.google.com with SMTP id 83-v6so2791930ljf.10 for ; Tue, 20 Nov 2018 12:27:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UHQXYBlESi9ND8yKpEZyLeSHKrDeqYCCB7KMnHp3wz4=; b=K52MWwN4ZRoyx9SF9Eyvj7Jyts2CQ+MEZqbNVDhDyXca4haI0UcJ8Lkv/y+FtDmeBg ohcKHtN2IjxdDLDpBRPD7AFse9UtwiEA94kml4bF4TUQWF7VWx61mZjG6u6eVwdgz99r cTeTnZ6nV5Yb13wJTsU24NsYf0VUc8cUxq0D8ixW/k9/g9/v7t2HAp90YOdTYDSj9UDX Wni1FGeW6cI9ru3Co79/zgQ+VgxuGTMwy7IGH/LW4r0ikbdl/DVX+Ym/ERLrPFfZzGHV jx0AGwlpzcd4t7SVezhAVB4p+SeQGhOiHsRRqrvCa7W2q3+FgrimddCpRPAqoRvd+qhC 3g9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UHQXYBlESi9ND8yKpEZyLeSHKrDeqYCCB7KMnHp3wz4=; b=KjxTgzy9gBrqMtBpwzb3Ilkhwg+HJtjAI+vCgj8sAmXeaaXcCcIscpDp6RoKeRPm5g ZRN/d59InCEBhZeB2OhC9kzjXcaWsV/ISG1/6srFRrrk2k7b2/V1nsS0rGIGUdMWpZH8 pH+akLrBJgjYapIBk15/Rlnd24+CTRus6q76/lLY00ebGTbmZk2Drga5whRKEftEzHDj If5dzpjtBAkdzDiiAHAfXrPySs9TQJo4tej+Hmrd6MMV+yxiIAJlVgxFTTQInIOC/8DR 7GrlxbdwwOBT4mfROPOxtdrkQtKWWxH8RQKIxiYVFKE95EEsowS08aEO8H5lo0PLng/t rgsQ== X-Gm-Message-State: AA+aEWZlwnwrH36SOSNrGGNRFiUf9doLr9ARv3g/00+iWemVKJEX0Uc3 jszFJ6uuKF/TJAImR9MubP+f4IPSmnjWMIh2xyhg X-Google-Smtp-Source: AFSGD/Vjo/03rvJteIUMyZJbMDf3noXyS/ACKuTjL1Fh3U1WmHdq7tSloilfxqKgkN3vsbGJDe+TI+5dV52N61TibjE= X-Received: by 2002:a2e:93ce:: with SMTP id p14-v6mr2054929ljh.42.1542745624786; Tue, 20 Nov 2018 12:27:04 -0800 (PST) MIME-Version: 1.0 References: <20181107042751.3b519062@akathisia> <20181120001128.GA11300@altlinux.org> In-Reply-To: <20181120001128.GA11300@altlinux.org> From: Paul Moore Date: Tue, 20 Nov 2018 15:26:53 -0500 Message-ID: Subject: Re: [PATCH v2 00/15] Prepare for PTRACE_GET_SYSCALL_INFO To: ldv@altlinux.org Cc: luto@kernel.org, lineprinter@altlinux.org, aou@eecs.berkeley.edu, alexey.brodkin@synopsys.com, jacquiot.aurelien@gmail.com, chris@zankel.net, Eric Paris , geert@linux-m68k.org, green.hu@gmail.com, lftan@altera.com, msalter@redhat.com, jcmvbkbc@gmail.com, palmer@sifive.com, rkuo@codeaurora.org, deanbo422@gmail.com, vgupta@synopsys.com, ysato@users.sourceforge.jp, 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 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 Mon, Nov 19, 2018 at 7:11 PM Dmitry V. Levin wrote: > > 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. No real comment from me, most of this is arch specific code so I'll let the individual arch folks comment on that; they know far better than I do what is correct. That said, anything that gets us closer to being able to offer syscall auditing for these arches gets a big thumbs up from me - thanks! > 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 -- paul moore www.paul-moore.com