lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <871qf17xfc.fsf@mail.lhotse>
Date:   Thu, 14 Sep 2023 22:26:47 +1000
From:   Michael Ellerman <mpe@...erman.id.au>
To:     "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>,
        "Mehta, Sohil" <sohil.mehta@...el.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-arch@...r.kernel.org" <linux-arch@...r.kernel.org>,
        "linux-api@...r.kernel.org" <linux-api@...r.kernel.org>
Cc:     "svens@...ux.ibm.com" <svens@...ux.ibm.com>,
        "catalin.marinas@....com" <catalin.marinas@....com>,
        "schwab@...ux-m68k.org" <schwab@...ux-m68k.org>,
        "brgerst@...il.com" <brgerst@...il.com>,
        "alexander.shishkin@...ux.intel.com" 
        <alexander.shishkin@...ux.intel.com>,
        "linux-perf-users@...r.kernel.org" <linux-perf-users@...r.kernel.org>,
        "x86@...nel.org" <x86@...nel.org>,
        "monstr@...str.eu" <monstr@...str.eu>,
        "borntraeger@...ux.ibm.com" <borntraeger@...ux.ibm.com>,
        "dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>,
        "christophe.leroy@...roup.eu" <christophe.leroy@...roup.eu>,
        "mark.rutland@....com" <mark.rutland@....com>,
        "glaubitz@...sik.fu-berlin.de" <glaubitz@...sik.fu-berlin.de>,
        "dalias@...c.org" <dalias@...c.org>,
        "lukas.bulwahn@...il.com" <lukas.bulwahn@...il.com>,
        "rdunlap@...radead.org" <rdunlap@...radead.org>,
        "tglx@...utronix.de" <tglx@...utronix.de>,
        "hca@...ux.ibm.com" <hca@...ux.ibm.com>,
        "linux@...linux.org.uk" <linux@...linux.org.uk>,
        "sparclinux@...r.kernel.org" <sparclinux@...r.kernel.org>,
        "arnd@...db.de" <arnd@...db.de>,
        "linux-ia64@...r.kernel.org" <linux-ia64@...r.kernel.org>,
        "ebiederm@...ssion.com" <ebiederm@...ssion.com>,
        "Lutomirski, Andy" <luto@...nel.org>,
        "jolsa@...nel.org" <jolsa@...nel.org>,
        "linux-parisc@...r.kernel.org" <linux-parisc@...r.kernel.org>,
        "akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
        "linux-sh@...r.kernel.org" <linux-sh@...r.kernel.org>,
        "linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
        "geert@...ux-m68k.org" <geert@...ux-m68k.org>,
        "hpa@...or.com" <hpa@...or.com>,
        "James.Bottomley@...senPartnership.com" 
        <James.Bottomley@...senPartnership.com>,
        "peterz@...radead.org" <peterz@...radead.org>,
        "ink@...assic.park.msu.ru" <ink@...assic.park.msu.ru>,
        "linux-m68k@...ts.linux-m68k.org" <linux-m68k@...ts.linux-m68k.org>,
        "tsbogend@...ha.franken.de" <tsbogend@...ha.franken.de>,
        "broonie@...nel.org" <broonie@...nel.org>,
        "Hunter, Adrian" <adrian.hunter@...el.com>,
        "acme@...nel.org" <acme@...nel.org>,
        "ysato@...rs.sourceforge.jp" <ysato@...rs.sourceforge.jp>,
        "deller@....de" <deller@....de>,
        "debug@...osinc.com" <debug@...osinc.com>,
        "rmclure@...ux.ibm.com" <rmclure@...ux.ibm.com>,
        "gor@...ux.ibm.com" <gor@...ux.ibm.com>,
        "slyich@...il.com" <slyich@...il.com>,
        "npiggin@...il.com" <npiggin@...il.com>,
        "agordeev@...ux.ibm.com" <agordeev@...ux.ibm.com>,
        "chris@...kel.net" <chris@...kel.net>,
        "mingo@...hat.com" <mingo@...hat.com>,
        "linux-mips@...r.kernel.org" <linux-mips@...r.kernel.org>,
        "linux-alpha@...r.kernel.org" <linux-alpha@...r.kernel.org>,
        "mattst88@...il.com" <mattst88@...il.com>,
        "linux-s390@...r.kernel.org" <linux-s390@...r.kernel.org>,
        "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "jcmvbkbc@...il.com" <jcmvbkbc@...il.com>,
        "bp@...en8.de" <bp@...en8.de>,
        "richard.henderson@...aro.org" <richard.henderson@...aro.org>,
        "irogers@...gle.com" <irogers@...gle.com>,
        "namhyung@...nel.org" <namhyung@...nel.org>,
        "will@...nel.org" <will@...nel.org>,
        "davem@...emloft.net" <davem@...emloft.net>
Subject: Re: [PATCH 2/2] arch: Reserve map_shadow_stack() syscall number for
 all architectures

"Edgecombe, Rick P" <rick.p.edgecombe@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ