Re: [PATCH v41 19/24] x86/vdso: Implement a vDSO for Intel SGX enclave call
From: Jarkko Sakkinen
Date: Tue Nov 17 2020 - 14:41:36 EST
On Tue, Nov 17, 2020 at 02:14:02PM +0100, Borislav Petkov wrote:
> On Fri, Nov 13, 2020 at 12:01:30AM +0200, Jarkko Sakkinen wrote:
> > diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile
> > index 2ad757fb3c23..9915fbd34264 100644
> > --- a/arch/x86/entry/vdso/Makefile
> > +++ b/arch/x86/entry/vdso/Makefile
> > @@ -27,6 +27,7 @@ VDSO32-$(CONFIG_IA32_EMULATION) := y
> > vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o
> > vobjs32-y := vdso32/note.o vdso32/system_call.o vdso32/sigreturn.o
> > vobjs32-y += vdso32/vclock_gettime.o
> > +vobjs-$(VDSO64-y) += vsgx.o
>
> Why?
>
> This needs to be CONFIG_X86_SGX as you need this vdso functionality only
> when SGX is enabled.
Agreed.
> --
> Regards/Gruss,
> Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette
/Jarkko