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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 23 Sep 2021 23:32:47 +0000 From: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com> To: "Lutomirski, Andy" <luto@...nel.org>, "Hansen, Dave" <dave.hansen@...el.com> CC: "bsingharora@...il.com" <bsingharora@...il.com>, "hpa@...or.com" <hpa@...or.com>, "esyr@...hat.com" <esyr@...hat.com>, "peterz@...radead.org" <peterz@...radead.org>, "rdunlap@...radead.org" <rdunlap@...radead.org>, "keescook@...omium.org" <keescook@...omium.org>, "Yu, Yu-cheng" <yu-cheng.yu@...el.com>, "dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>, "linux-mm@...ck.org" <linux-mm@...ck.org>, "fweimer@...hat.com" <fweimer@...hat.com>, "nadav.amit@...il.com" <nadav.amit@...il.com>, "jannh@...gle.com" <jannh@...gle.com>, "kcc@...gle.com" <kcc@...gle.com>, "linux-arch@...r.kernel.org" <linux-arch@...r.kernel.org>, "bp@...en8.de" <bp@...en8.de>, "oleg@...hat.com" <oleg@...hat.com>, "hjl.tools@...il.com" <hjl.tools@...il.com>, "Yang, Weijiang" <weijiang.yang@...el.com>, "linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>, "pavel@....cz" <pavel@....cz>, "arnd@...db.de" <arnd@...db.de>, "Moreira, Joao" <joao.moreira@...el.com>, "tglx@...utronix.de" <tglx@...utronix.de>, "mike.kravetz@...cle.com" <mike.kravetz@...cle.com>, "x86@...nel.org" <x86@...nel.org>, "tarasmadan@...gle.com" <tarasmadan@...gle.com>, "Dave.Martin@....com" <Dave.Martin@....com>, "vedvyas.shanbhogue@...el.com" <vedvyas.shanbhogue@...el.com>, "Shankar, Ravi V" <ravi.v.shankar@...el.com>, "mingo@...hat.com" <mingo@...hat.com>, "corbet@....net" <corbet@....net>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "linux-api@...r.kernel.org" <linux-api@...r.kernel.org>, "gorcunov@...il.com" <gorcunov@...il.com> Subject: Re: [NEEDS-REVIEW] Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack On Mon, 2021-09-20 at 09:48 -0700, Andy Lutomirski wrote: > My general opinion here (take this with a grain of salt -- I haven't > paged back in every single detail) is that the kernel should make it > straightforward for a libc to do the right thing without nasty races, > cross-thread coordination, or unnecessary permission to write to the > stack. I *also* think that it should be possible for userspace to > manage its own shadow stack allocation if it wants to, since I'm sure > there will be JIT or green thread or other use cases that want to do > crazy things that we fail to anticipate with in-kernel magic. > > So perhaps we should keep the explicit allocation and free > operations, have a way to opt-in to WRSS being flipped on, but also > do our best to have API that handle the known cases well. > > Does that make sense? Can we have both approaches work in the same > kernel? I think so. I'll take a look at adding a prctl to enable WRSS. Since there already is ARCH_X86_CET_DISABLE to disable CET, it doesn't seem like it should escalate anything. And ARCH_X86_CET_LOCK can prevent turning it on if desired. Thanks, Rick
Powered by blists - more mailing lists