public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v10 1/3] arm64: Add __NR_* definitions for compat syscalls
Date: Fri, 04 Jul 2014 13:17:43 +0200	[thread overview]
Message-ID: <4723610.G5HFZHp0Yu@wuerfel> (raw)
In-Reply-To: <53B68A8B.1020106@linaro.org>

On Friday 04 July 2014 20:05:47 AKASHI Takahiro wrote:
> On 07/04/2014 07:06 PM, Arnd Bergmann wrote:
> > On Friday 04 July 2014 16:28:29 AKASHI Takahiro wrote:
> >> From: Catalin Marinas <catalin.marinas@arm.com>
> >>
> >> This patch adds __NR_* definitions to asm/unistd32.h, moves the
> >> __NR_compat_* definitions to asm/unistd.h and removes all the explicit
> >> unistd32.h includes apart from the one building the compat syscall
> >> table. The aim is to have the compat __NR_* definitions available but
> >> without colliding with the native syscall definitions.
> >>
> >> And adds more syscall definitions for 3.16.
> >
> > Can you explain in more detail why you want to add those macros? I've
> > looked at all three patches in the series but can't find any code using
> > them.
> 
> Right. "unistd32.h" is not used by this patch, but by lib/compat_audit.c.
> when I thought of adding audit support for arm64, there was duplicated code
> of auditing compat system calls across many architectures.
> lib/compat_audit.c fixes this issue but at the same time it also requires
> __NR_* macros for a couple of compat system calls which arm64 didn't have.
> 
> In the first implementation, I generated an extra generated/asm/unistd_32.h
> from the original asm/unist32.h by using a sed script. But Catalin suggested
> (agreed?) to modify unistd32.h for this purpose.
> 
> See
> http://lists.infradead.org/pipermail/linux-arm-kernel/2014-January/228992.html
> 

Ok, thanks for the explanation. It would be good to have that in the changeset
comment as well, in case other people wonder about the same question.

	Arnd

  reply	other threads:[~2014-07-04 11:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-04  7:28 [PATCH v10 0/3] arm64: Add audit support AKASHI Takahiro
2014-07-04  7:28 ` [PATCH v10 1/3] arm64: Add __NR_* definitions for compat syscalls AKASHI Takahiro
2014-07-04 10:06   ` Arnd Bergmann
2014-07-04 10:57     ` Catalin Marinas
2014-07-04 11:05     ` AKASHI Takahiro
2014-07-04 11:17       ` Arnd Bergmann [this message]
2015-01-28 21:31   ` Timur Tabi
2015-01-28 21:35     ` Arnd Bergmann
2015-01-29  9:57     ` Will Deacon
2014-07-04  7:28 ` [PATCH v10 2/3] arm64: Add audit support AKASHI Takahiro
2014-07-04  7:28 ` [PATCH v10 3/3] arm64: audit: Add audit hook in syscall_trace_enter/exit() AKASHI Takahiro
2014-07-10 10:08 ` [PATCH v10 0/3] arm64: Add audit support Catalin Marinas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4723610.G5HFZHp0Yu@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox