From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Lutomirski Subject: Re: Detecting the availability of VSYSCALL Date: Wed, 26 Jun 2019 09:52:15 -0700 Message-ID: References: <87v9wty9v4.fsf@oldenburg2.str.redhat.com> <87lfxpy614.fsf@oldenburg2.str.redhat.com> <87a7e5v1d9.fsf@oldenburg2.str.redhat.com> <87o92kmtp5.fsf@oldenburg2.str.redhat.com> <87r27gjss3.fsf@oldenburg2.str.redhat.com> <534B9F63-E949-4CF5-ACAC-71381190846F@amacapital.net> <87a7e4jr4s.fsf@oldenburg2.str.redhat.com> <6CECE9DE-51AB-4A21-A257-8B85C4C94EB0@amacapital.net> <87sgrw1ejv.fsf@oldenburg2.str.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: List-Post: List-Help: List-Unsubscribe: List-Subscribe: In-Reply-To: <87sgrw1ejv.fsf@oldenburg2.str.redhat.com> To: Florian Weimer Cc: Andy Lutomirski , Thomas Gleixner , Linux API , Kernel Hardening , linux-x86_64@vger.kernel.org, linux-arch , Kees Cook , Carlos O'Donell , X86 ML List-Id: linux-api@vger.kernel.org On Wed, Jun 26, 2019 at 9:45 AM Florian Weimer wrote: > > * Andy Lutomirski: > > > Can=E2=80=99t an ELF note be done with some more or less ordinary asm s= uch > > that any link editor will insert it correctly? > > We've just been over this for the CET enablement. ELF PT_NOTE parsing > was rejected there. No one told me this. Unless I missed something, the latest kernel patches still had PT_NOTE parsing. Can you point me at an enlightening thread or explain what happened? > > The problem with a personality flag is that it needs to have some kind > > of sensible behavior for setuid programs, and getting that right in a > > way that doesn=E2=80=99t scream =E2=80=9Cexploit me=E2=80=9D while pres= erving useful > > compatibility may be tricky. > > Are restrictive personality flags still a problem with user namespaces? > I think it would be fine to restrict this one to CAP_SYS_ADMIN. We could possibly get away with this, but now we're introducing a whole new mechanism. I'd rather just add proper per-namespace sysctls, but this is a pretty big hammer.