Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-21 Thread Li Kun
On 2018/1/19 22:28, Will Deacon Wrote: On Fri, Jan 19, 2018 at 11:37:24AM +0800, Li Kun wrote: 在 2018/1/17 18:07, Will Deacon 写道: On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: On 2018/1/5 21:12, Will Deacon wrote: diff --git a/arch/arm64/mm/context.c

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-21 Thread Li Kun
On 2018/1/19 22:28, Will Deacon Wrote: On Fri, Jan 19, 2018 at 11:37:24AM +0800, Li Kun wrote: 在 2018/1/17 18:07, Will Deacon 写道: On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: On 2018/1/5 21:12, Will Deacon wrote: diff --git a/arch/arm64/mm/context.c

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-19 Thread Will Deacon
On Fri, Jan 19, 2018 at 11:37:24AM +0800, Li Kun wrote: > 在 2018/1/17 18:07, Will Deacon 写道: > >On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: > >>On 2018/1/5 21:12, Will Deacon wrote: > >>>diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c > >>>index

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-19 Thread Will Deacon
On Fri, Jan 19, 2018 at 11:37:24AM +0800, Li Kun wrote: > 在 2018/1/17 18:07, Will Deacon 写道: > >On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: > >>On 2018/1/5 21:12, Will Deacon wrote: > >>>diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c > >>>index

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-18 Thread Li Kun
Hi will, 在 2018/1/17 18:07, Will Deacon 写道: On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: Hi Will, On 2018/1/5 21:12, Will Deacon wrote: diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c index 5f7097d0cd12..d99b36555a16 100644 --- a/arch/arm64/mm/context.c +++

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-18 Thread Li Kun
Hi will, 在 2018/1/17 18:07, Will Deacon 写道: On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: Hi Will, On 2018/1/5 21:12, Will Deacon wrote: diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c index 5f7097d0cd12..d99b36555a16 100644 --- a/arch/arm64/mm/context.c +++

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-18 Thread Yisheng Xie
Hi Will, On 2018/1/17 18:07, Will Deacon wrote: > On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: >> Hi Will, >> >> On 2018/1/5 21:12, Will Deacon wrote: >>> diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c >>> index 5f7097d0cd12..d99b36555a16 100644 >>> ---

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-18 Thread Yisheng Xie
Hi Will, On 2018/1/17 18:07, Will Deacon wrote: > On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: >> Hi Will, >> >> On 2018/1/5 21:12, Will Deacon wrote: >>> diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c >>> index 5f7097d0cd12..d99b36555a16 100644 >>> ---

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-17 Thread Will Deacon
On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: > Hi Will, > > On 2018/1/5 21:12, Will Deacon wrote: > > diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c > > index 5f7097d0cd12..d99b36555a16 100644 > > --- a/arch/arm64/mm/context.c > > +++ b/arch/arm64/mm/context.c > >

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-17 Thread Will Deacon
On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: > Hi Will, > > On 2018/1/5 21:12, Will Deacon wrote: > > diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c > > index 5f7097d0cd12..d99b36555a16 100644 > > --- a/arch/arm64/mm/context.c > > +++ b/arch/arm64/mm/context.c > >

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-16 Thread Yisheng Xie
Hi Will, On 2018/1/5 21:12, Will Deacon wrote: > diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c > index 5f7097d0cd12..d99b36555a16 100644 > --- a/arch/arm64/mm/context.c > +++ b/arch/arm64/mm/context.c > @@ -246,6 +246,8 @@ asmlinkage void post_ttbr_update_workaround(void) >

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-16 Thread Yisheng Xie
Hi Will, On 2018/1/5 21:12, Will Deacon wrote: > diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c > index 5f7097d0cd12..d99b36555a16 100644 > --- a/arch/arm64/mm/context.c > +++ b/arch/arm64/mm/context.c > @@ -246,6 +246,8 @@ asmlinkage void post_ttbr_update_workaround(void) >

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-08 Thread Will Deacon
Hi James, Thanks for having a look. On Mon, Jan 08, 2018 at 12:16:28PM +, James Morse wrote: > On 05/01/18 13:12, Will Deacon wrote: > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > > index 22168cd0dde7..5203b6040cb6 100644 > > --- a/arch/arm64/mm/fault.c > > +++

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-08 Thread Will Deacon
Hi James, Thanks for having a look. On Mon, Jan 08, 2018 at 12:16:28PM +, James Morse wrote: > On 05/01/18 13:12, Will Deacon wrote: > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > > index 22168cd0dde7..5203b6040cb6 100644 > > --- a/arch/arm64/mm/fault.c > > +++

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-08 Thread James Morse
Hi Will, Marc, On 05/01/18 13:12, Will Deacon wrote: > Aliasing attacks against CPU branch predictors can allow an attacker to > redirect speculative control flow on some CPUs and potentially divulge > information from one context to another. > > This patch adds initial skeleton code behind a new

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-08 Thread James Morse
Hi Will, Marc, On 05/01/18 13:12, Will Deacon wrote: > Aliasing attacks against CPU branch predictors can allow an attacker to > redirect speculative control flow on some CPUs and potentially divulge > information from one context to another. > > This patch adds initial skeleton code behind a new

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-07 Thread Jon Masters
On 01/05/2018 08:12 AM, Will Deacon wrote: > Aliasing attacks against CPU branch predictors can allow an attacker to > redirect speculative control flow on some CPUs and potentially divulge > information from one context to another. > > This patch adds initial skeleton code behind a new Kconfig

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-07 Thread Jon Masters
On 01/05/2018 08:12 AM, Will Deacon wrote: > Aliasing attacks against CPU branch predictors can allow an attacker to > redirect speculative control flow on some CPUs and potentially divulge > information from one context to another. > > This patch adds initial skeleton code behind a new Kconfig

[PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-05 Thread Will Deacon
Aliasing attacks against CPU branch predictors can allow an attacker to redirect speculative control flow on some CPUs and potentially divulge information from one context to another. This patch adds initial skeleton code behind a new Kconfig option to enable implementation-specific mitigations

[PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-05 Thread Will Deacon
Aliasing attacks against CPU branch predictors can allow an attacker to redirect speculative control flow on some CPUs and potentially divulge information from one context to another. This patch adds initial skeleton code behind a new Kconfig option to enable implementation-specific mitigations