Re: [RFC PATCH v4 6/9] x86/cet/ibt: Add arch_prctl functions for IBT

2018-10-04 Thread Yu-cheng Yu
On Thu, 2018-10-04 at 09:12 -0700, Andy Lutomirski wrote: > On Thu, Oct 4, 2018 at 9:08 AM Florian Weimer wrote: > > > > * Yu-cheng Yu: > > > > > On Thu, 2018-10-04 at 15:28 +0200, Eugene Syromiatnikov wrote: > > > > On Fri, Sep 21, 2018 at 08:05:50AM -0700, Yu-cheng Yu wrote: > > > > > Update A

Re: [RFC PATCH v4 6/9] x86/cet/ibt: Add arch_prctl functions for IBT

2018-10-04 Thread Florian Weimer
* Yu-cheng Yu: > On Thu, 2018-10-04 at 15:28 +0200, Eugene Syromiatnikov wrote: >> On Fri, Sep 21, 2018 at 08:05:50AM -0700, Yu-cheng Yu wrote: >> > Update ARCH_CET_STATUS and ARCH_CET_DISABLE to include Indirect >> > Branch Tracking features. >> > >> > Introduce: >> > >> > arch_prctl(ARCH_CET_L

Re: [RFC PATCH v4 6/9] x86/cet/ibt: Add arch_prctl functions for IBT

2018-10-04 Thread Andy Lutomirski
On Thu, Oct 4, 2018 at 9:08 AM Florian Weimer wrote: > > * Yu-cheng Yu: > > > On Thu, 2018-10-04 at 15:28 +0200, Eugene Syromiatnikov wrote: > >> On Fri, Sep 21, 2018 at 08:05:50AM -0700, Yu-cheng Yu wrote: > >> > Update ARCH_CET_STATUS and ARCH_CET_DISABLE to include Indirect > >> > Branch Tracki

Re: [RFC PATCH v4 6/9] x86/cet/ibt: Add arch_prctl functions for IBT

2018-10-04 Thread Andy Lutomirski
> On Oct 4, 2018, at 8:37 AM, Yu-cheng Yu wrote: > >> On Thu, 2018-10-04 at 15:28 +0200, Eugene Syromiatnikov wrote: >>> On Fri, Sep 21, 2018 at 08:05:50AM -0700, Yu-cheng Yu wrote: >>> Update ARCH_CET_STATUS and ARCH_CET_DISABLE to include Indirect >>> Branch Tracking features. >>> >>> Introduce:

Re: [RFC PATCH v4 6/9] x86/cet/ibt: Add arch_prctl functions for IBT

2018-10-04 Thread Yu-cheng Yu
On Thu, 2018-10-04 at 15:28 +0200, Eugene Syromiatnikov wrote: > On Fri, Sep 21, 2018 at 08:05:50AM -0700, Yu-cheng Yu wrote: > > Update ARCH_CET_STATUS and ARCH_CET_DISABLE to include Indirect > > Branch Tracking features. > > > > Introduce: > > > > arch_prctl(ARCH_CET_LEGACY_BITMAP, unsigned lo

Re: [RFC PATCH v4 6/9] x86/cet/ibt: Add arch_prctl functions for IBT

2018-10-04 Thread Eugene Syromiatnikov
On Fri, Sep 21, 2018 at 08:05:50AM -0700, Yu-cheng Yu wrote: > Update ARCH_CET_STATUS and ARCH_CET_DISABLE to include Indirect > Branch Tracking features. > > Introduce: > > arch_prctl(ARCH_CET_LEGACY_BITMAP, unsigned long *addr) > Enable the Indirect Branch Tracking legacy code bitmap. > >

[RFC PATCH v4 6/9] x86/cet/ibt: Add arch_prctl functions for IBT

2018-09-21 Thread Yu-cheng Yu
Update ARCH_CET_STATUS and ARCH_CET_DISABLE to include Indirect Branch Tracking features. Introduce: arch_prctl(ARCH_CET_LEGACY_BITMAP, unsigned long *addr) Enable the Indirect Branch Tracking legacy code bitmap. The parameter 'addr' is a pointer to a user buffer. On returning to the