* Re: [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM [not found] ` <20210205151631.43511-11-kirill.shutemov@linux.intel.com> @ 2021-02-05 15:42 ` H.J. Lu 2021-02-07 8:07 ` Dmitry Vyukov 0 siblings, 1 reply; 4+ messages in thread From: H.J. Lu @ 2021-02-05 15:42 UTC (permalink / raw) To: Kirill A. Shutemov Cc: Dave Hansen, Andy Lutomirski, Peter Zijlstra, the arch/x86 maintainers, Andrey Ryabinin, Alexander Potapenko, Dmitry Vyukov, Catalin Marinas, Will Deacon, Andi Kleen, Linux-MM, LKML, GNU C Library, GCC Development On Fri, Feb 5, 2021 at 7:16 AM Kirill A. Shutemov <kirill.shutemov@linux.intel.com> wrote: > > Provide prctl() interface to enabled LAM for user addresses. Depending > how many tag bits requested it may result in enabling LAM_U57 or > LAM_U48. I prefer the alternate kernel interface based on CET arch_prctl interface which is implemented in glibc on users/intel/lam/master branch: https://gitlab.com/x86-glibc/glibc/-/tree/users/intel/lam/master and in GCC on users/intel/lam/master branch: https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master -- H.J. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM 2021-02-05 15:42 ` [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM H.J. Lu @ 2021-02-07 8:07 ` Dmitry Vyukov 2021-02-07 14:09 ` Kirill A. Shutemov 0 siblings, 1 reply; 4+ messages in thread From: Dmitry Vyukov @ 2021-02-07 8:07 UTC (permalink / raw) To: H.J. Lu Cc: Kirill A. Shutemov, Dave Hansen, Andy Lutomirski, Peter Zijlstra, the arch/x86 maintainers, Andrey Ryabinin, Alexander Potapenko, Catalin Marinas, Will Deacon, Andi Kleen, Linux-MM, LKML, GNU C Library, GCC Development On Fri, Feb 5, 2021 at 4:43 PM H.J. Lu <hjl.tools@gmail.com> wrote: > > On Fri, Feb 5, 2021 at 7:16 AM Kirill A. Shutemov > <kirill.shutemov@linux.intel.com> wrote: > > > > Provide prctl() interface to enabled LAM for user addresses. Depending > > how many tag bits requested it may result in enabling LAM_U57 or > > LAM_U48. > > I prefer the alternate kernel interface based on CET arch_prctl interface which > is implemented in glibc on users/intel/lam/master branch: > > https://gitlab.com/x86-glibc/glibc/-/tree/users/intel/lam/master > > and in GCC on users/intel/lam/master branch: > > https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master Hi Kirill, H.J., I don't have strong preference for PR_SET/GET_TAGGED_ADDR_CTRL vs ARCH_X86_FEATURE_1_ENABLE itself, but tying LAM to ELF and GNU_PROPERTY in the second option looks strange. LAM can be used outside of ELF/GNU, right? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM 2021-02-07 8:07 ` Dmitry Vyukov @ 2021-02-07 14:09 ` Kirill A. Shutemov 2021-02-07 14:11 ` Dmitry Vyukov 0 siblings, 1 reply; 4+ messages in thread From: Kirill A. Shutemov @ 2021-02-07 14:09 UTC (permalink / raw) To: Dmitry Vyukov Cc: H.J. Lu, Kirill A. Shutemov, Dave Hansen, Andy Lutomirski, Peter Zijlstra, the arch/x86 maintainers, Andrey Ryabinin, Alexander Potapenko, Catalin Marinas, Will Deacon, Andi Kleen, Linux-MM, LKML, GNU C Library, GCC Development On Sun, Feb 07, 2021 at 09:07:02AM +0100, Dmitry Vyukov wrote: > On Fri, Feb 5, 2021 at 4:43 PM H.J. Lu <hjl.tools@gmail.com> wrote: > > > > On Fri, Feb 5, 2021 at 7:16 AM Kirill A. Shutemov > > <kirill.shutemov@linux.intel.com> wrote: > > > > > > Provide prctl() interface to enabled LAM for user addresses. Depending > > > how many tag bits requested it may result in enabling LAM_U57 or > > > LAM_U48. > > > > I prefer the alternate kernel interface based on CET arch_prctl interface which > > is implemented in glibc on users/intel/lam/master branch: > > > > https://gitlab.com/x86-glibc/glibc/-/tree/users/intel/lam/master > > > > and in GCC on users/intel/lam/master branch: > > > > https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master > > Hi Kirill, H.J., > > I don't have strong preference for PR_SET/GET_TAGGED_ADDR_CTRL vs > ARCH_X86_FEATURE_1_ENABLE itself, but tying LAM to ELF and > GNU_PROPERTY in the second option looks strange. LAM can be used > outside of ELF/GNU, right? Sure. In both cases it's still a syscall. -- Kirill A. Shutemov ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM 2021-02-07 14:09 ` Kirill A. Shutemov @ 2021-02-07 14:11 ` Dmitry Vyukov 0 siblings, 0 replies; 4+ messages in thread From: Dmitry Vyukov @ 2021-02-07 14:11 UTC (permalink / raw) To: Kirill A. Shutemov Cc: H.J. Lu, Kirill A. Shutemov, Dave Hansen, Andy Lutomirski, Peter Zijlstra, the arch/x86 maintainers, Andrey Ryabinin, Alexander Potapenko, Catalin Marinas, Will Deacon, Andi Kleen, Linux-MM, LKML, GNU C Library, GCC Development On Sun, Feb 7, 2021 at 3:09 PM Kirill A. Shutemov <kirill@shutemov.name> wrote: > > On Sun, Feb 07, 2021 at 09:07:02AM +0100, Dmitry Vyukov wrote: > > On Fri, Feb 5, 2021 at 4:43 PM H.J. Lu <hjl.tools@gmail.com> wrote: > > > > > > On Fri, Feb 5, 2021 at 7:16 AM Kirill A. Shutemov > > > <kirill.shutemov@linux.intel.com> wrote: > > > > > > > > Provide prctl() interface to enabled LAM for user addresses. Depending > > > > how many tag bits requested it may result in enabling LAM_U57 or > > > > LAM_U48. > > > > > > I prefer the alternate kernel interface based on CET arch_prctl interface which > > > is implemented in glibc on users/intel/lam/master branch: > > > > > > https://gitlab.com/x86-glibc/glibc/-/tree/users/intel/lam/master > > > > > > and in GCC on users/intel/lam/master branch: > > > > > > https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master > > > > Hi Kirill, H.J., > > > > I don't have strong preference for PR_SET/GET_TAGGED_ADDR_CTRL vs > > ARCH_X86_FEATURE_1_ENABLE itself, but tying LAM to ELF and > > GNU_PROPERTY in the second option looks strange. LAM can be used > > outside of ELF/GNU, right? > > Sure. In both cases it's still a syscall. Oh, I meant just the naming scheme. The consts are declared in elf.h and are prefixed with GNU_PROPERTY. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-07 14:11 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20210205151631.43511-1-kirill.shutemov@linux.intel.com> [not found] ` <20210205151631.43511-11-kirill.shutemov@linux.intel.com> 2021-02-05 15:42 ` [RFC 9/9] x86/mm: Implement PR_SET/GET_TAGGED_ADDR_CTRL with LAM H.J. Lu 2021-02-07 8:07 ` Dmitry Vyukov 2021-02-07 14:09 ` Kirill A. Shutemov 2021-02-07 14:11 ` Dmitry Vyukov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).