Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1185004imu; Tue, 20 Nov 2018 13:08:24 -0800 (PST) X-Google-Smtp-Source: AJdET5fxd9L1lp2KHuY4kJrlMjy67Bg9GjzdEd9FyvwquPAeyC4E4XA+AdlU1OH3Dfk2ZjQlm+oP X-Received: by 2002:aa7:83c6:: with SMTP id j6mr3843279pfn.91.1542748104483; Tue, 20 Nov 2018 13:08:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542748104; cv=none; d=google.com; s=arc-20160816; b=jiBbUBTk8YFHGEekjazXThvX8ZDi7BhGpPbC1Q/M6L5CSV71fcW2Vj96Kt3ED9Ck67 /kDukn7YrJqDuuYYrLd6yRXCjv2IKdZuYi9hjVsGztJjY9gW5/6zUtOWU0Awm9JEk7wf WXRT7gxo9f7CrUBXisG+BhJd8fGgGthw80Yf9Ov231MiJkVqCHCAlTxRLfJ03TIMIbl+ ytdt/wDwNkRheQtPz0GgrwepOfqe1rfU5XZwmH9EAQH5r21owX8+HR0rwVWgWBayuhMq bOF8bCoIpj7tEFOdW1FITV5vGsWs1tHWx0wQzbqBHSOQ/0F0mKul+VnW/Im5E3DPQB+U SnkQ== 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=UHQXYBlESi9ND8yKpEZyLeSHKrDeqYCCB7KMnHp3wz4=; b=AkZvQZbOEe6dDQX5wFqxMvMUbeCfQPYmZqc54YcFsVLJrvuYAPHlANHhVQF7YXUeQ8 DGXrjG85fWGL+6nPgcuywlcnqTbB4N4uiEghJp6mx53WE262Mrlv7jlblavhTVUjW/Pg E7c2Dt32zjwyZ8Q/zAtmP69/81Sc6HFiPU1j57U7b+6PBNCx+MU5gwDmIUjPlffxgj0c vfEwolyj+r7hQxUl9BJ7hy5vt+P3/GU2ZG0dGnYFYi257NZ/rAuMjKdNBtrkpgNUqf3o kbUEnYntDy0khdGkrsVZzehIDsXd+pCuaKdYH8jiKyWd/0y2HFLFcrSF/ILpG3E6yh/p ZA+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=K52MWwN4; 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 m8si3304072pgd.555.2018.11.20.13.08.03; Tue, 20 Nov 2018 13:08:24 -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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=K52MWwN4; 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 S1726824AbeKUG6E (ORCPT + 99 others); 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-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