From: Michael Ellerman <mpe@ellerman•id.au>
To: "Edgecombe, Rick P" <rick.p.edgecombe@intel•com>,
"Mehta, Sohil" <sohil.mehta@intel•com>,
"linux-kernel@vger•kernel.org" <linux-kernel@vger•kernel.org>,
"linux-arch@vger•kernel.org" <linux-arch@vger•kernel.org>,
"linux-api@vger•kernel.org" <linux-api@vger•kernel.org>
Cc: "mark.rutland@arm•com" <mark.rutland@arm•com>,
"irogers@google•com" <irogers@google•com>,
"dalias@libc•org" <dalias@libc•org>,
"linux-ia64@vger•kernel.org" <linux-ia64@vger•kernel.org>,
"linux-sh@vger•kernel.org" <linux-sh@vger•kernel.org>,
"alexander.shishkin@linux•intel.com"
<alexander.shishkin@linux•intel.com>,
"catalin.marinas@arm•com" <catalin.marinas@arm•com>,
"dave.hansen@linux•intel.com" <dave.hansen@linux•intel.com>,
"linux-mips@vger•kernel.org" <linux-mips@vger•kernel.org>,
"James.Bottomley@HansenPartnership•com"
<James.Bottomley@HansenPartnership•com>,
"jcmvbkbc@gmail•com" <jcmvbkbc@gmail•com>,
"schwab@linux-m68k•org" <schwab@linux-m68k•org>,
"hpa@zytor•com" <hpa@zytor•com>,
"sparclinux@vger•kernel.org" <sparclinux@vger•kernel.org>,
"agordeev@linux•ibm.com" <agordeev@linux•ibm.com>,
"will@kernel•org" <will@kernel•org>,
"linux-s390@vger•kernel.org" <linux-s390@vger•kernel.org>,
"gor@linux•ibm.com" <gor@linux•ibm.com>,
"ysato@users•sourceforge.jp" <ysato@users•sourceforg e.jp>,
"deller@gmx•de" <deller@gmx•de>,
"x86@kernel•org" <x86@kernel•org>,
"linux@armlinux•org.uk" <linux@armlinux•org.uk>,
"peterz@infradead•org" <peterz@infradead•org>,
"mingo@redhat•com" <mingo@redhat•com>,
"geert@linux-m68k•org" <geert@linux-m68k•org>,
"lukas.bulwahn@gmail•com" <lukas.bulwahn@gmail•com>,
"mattst88@gmail•com" <mattst88@gmail•com>,
"borntraeger@linux•ibm.com" <borntraeger@linux•ibm.com>,
"ebiederm@xmission•com" <ebiederm@xmission•com>,
"arnd@arndb•de" <arnd@arndb•de>,
"brgerst@gmail•com" <brgerst@gmail•com>,
"hca@linux•ibm.com" <hca@linux•ibm.com>,
"richard.henderson@linaro•org" <richard.henderson@linaro•org>,
"acme@kernel•org" <acme@kernel•org>,
"linux-m68k@lists•linux-m68k.org"
<linux-m68k@lists•linux-m68k.org>,
"broonie@kernel•org" <broonie@kernel•org>,
"ink@jurassic•park.msu.ru" <ink@jurassic•park.msu.ru>,
"npiggin@gmail•com" <npiggin@gmail•com>,
"Lutomirski, Andy" <luto@kernel•org>,
"glaubitz@physik•fu-berlin.de" <glaubitz@physik•fu-berlin.de>,
"namhyung@kern el.org" <namhyung@kernel•org>,
"tglx@linutronix•de" <tglx@linutronix•de>,
"linux-arm-kernel@lists•infradead.org"
<linux-arm-kernel@lists•infradead.org>,
"debug@rivosinc•com" <debug@rivosinc•com>,
"chris@zankel•net" <chris@zankel•net>,
"monstr@monstr•eu" <monstr@monstr•eu>,
"tsbogend@alpha•franken.de" <tsbogend@alpha•franken.de>,
"linux-parisc@vger•kernel.org" <linux-parisc@vger•kernel.org>,
"rmclure@linux•ibm.com" <rmclure@linux•ibm.com>,
"rdunlap@infradead•org" <rdunlap@infradead•org>,
"Hunter, Adrian" <adrian.hunter@intel•com>,
"linux-perf-users@vger•kernel.org"
<linux-perf-users@vger•kernel.org>,
"slyich@gmail•com" <slyich@gmail•com>,
"svens@linux•ibm.com" <svens@linux•ibm.com>,
"jolsa@kernel•org" <jolsa@kernel•org>,
"linux-alpha@vger•kernel.org" <linux-alpha@vger•kernel.org>,
"bp@alien8•de" <bp@alien8•de>,
"akpm@linux-foundation•org" <akpm@linux-foundation•org>,
"linuxppc-dev@lists•ozlabs.org" <linuxppc-dev@lists•ozlabs.org>,
"davem@davemloft•net" <davem@davemloft•net>
Subject: Re: [PATCH 2/2] arch: Reserve map_shadow_stack() syscall number for all architectures
Date: Thu, 14 Sep 2023 22:26:47 +1000 [thread overview]
Message-ID: <871qf17xfc.fsf@mail.lhotse> (raw)
In-Reply-To: <8b7106881fa227a64b4e951c6b9240a7126ac4a2.camel@intel.com>
"Edgecombe, Rick P" <rick.p.edgecombe@intel•com> writes:
> On Mon, 2023-09-11 at 18:02 +0000, Sohil Mehta wrote:
>> diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl
>> b/arch/powerpc/kernel/syscalls/syscall.tbl
>> index 20e50586e8a2..2767b8a42636 100644
>> --- a/arch/powerpc/kernel/syscalls/syscall.tbl
>> +++ b/arch/powerpc/kernel/syscalls/syscall.tbl
>> @@ -539,3 +539,4 @@
>> 450 nospu set_mempolicy_home_node sys_set_mempolicy_hom
>> e_node
>> 451 common cachestat sys_cachestat
>> 452 common fchmodat2 sys_fchmodat2
>> +453 common map_shadow_stack sys_map_shadow_stack
>
> I noticed in powerpc, the not implemented syscalls are manually mapped
> to sys_ni_syscall. It also has some special extra sys_ni_syscall()
> implementation bits to handle both ARCH_HAS_SYSCALL_WRAPPER and
> !ARCH_HAS_SYSCALL_WRAPPER. So wondering if it might need special
> treatment. Did you see those parts?
I don't think it needs any special treatment. It's processed by the same
script as other arches (scripts/syscalltbl.sh). So if there's no compat
or native entry it will default to sys_ni_syscall.
I think it's just habit/historical that we always spell out sys_ni_syscall.
cheers
next prev parent reply other threads:[~2023-09-14 23:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 18:02 [PATCH 0/2] arch: Sync all syscall tables with 2 newly added system calls Sohil Mehta
2023-09-11 18:02 ` [PATCH 1/2] tools headers UAPI: Sync fchmodat2() syscall table entries Sohil Mehta
2023-09-11 18:02 ` [PATCH 2/2] arch: Reserve map_shadow_stack() syscall number for all architectures Sohil Mehta
2023-09-11 21:10 ` Edgecombe, Rick P
2023-09-13 19:18 ` Sohil Mehta
2023-09-13 22:05 ` Edgecombe, Rick P
2023-09-14 12:26 ` Michael Ellerman [this message]
2023-09-13 19:32 ` [PATCH 0/2] arch: Sync all syscall tables with 2 newly added system calls Sohil Mehta
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=871qf17xfc.fsf@mail.lhotse \
--to=mpe@ellerman$(echo .)id.au \
--cc=James.Bottomley@HansenPartnership$(echo .)com \
--cc=agordeev@linux$(echo .)ibm.com \
--cc=alexander.shishkin@linux$(echo .)intel.com \
--cc=catalin.marinas@arm$(echo .)com \
--cc=dalias@libc$(echo .)org \
--cc=dave.hansen@linux$(echo .)intel.com \
--cc=gor@linux$(echo .)ibm.com \
--cc=hpa@zytor$(echo .)com \
--cc=irogers@google$(echo .)com \
--cc=jcmvbkbc@gmail$(echo .)com \
--cc=linux-api@vger$(echo .)kernel.org \
--cc=linux-arch@vger$(echo .)kernel.org \
--cc=linux-ia64@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-mips@vger$(echo .)kernel.org \
--cc=linux-s390@vger$(echo .)kernel.org \
--cc=linux-sh@vger$(echo .)kernel.org \
--cc=mark.rutland@arm$(echo .)com \
--cc=rick.p.edgecombe@intel$(echo .)com \
--cc=schwab@linux-m68k$(echo .)org \
--cc=sohil.mehta@intel$(echo .)com \
--cc=sparclinux@vger$(echo .)kernel.org \
--cc=will@kernel$(echo .)org \
--cc=ysato@users$(echo .)sourceforg \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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