[LEDE-DEV] [PATCH] x86/64: enable CONFIG_X86_VSYSCALL_EMULATION in kernel config

Stijn Segers foss at volatilesystems.org
Mon Feb 19 09:32:33 PST 2018



Op ma, 19 feb 2018 om 6:23 , schreef Stijn Segers 
<foss at volatilesystems.org>:
> 
> Op ma, 19 feb 2018 om 1:43 , schreef Syrone Wong 
> <wong.syrone at gmail.com>:
>> It's fixed by 
>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.9.y&id=83946c33b9b99b5bc6157cfbf3970265f006c2bf
>> 
>> Best Regards,
>> Syrone Wong
> 
> Thanks, will send in a new patch.
> 
> Stijn

It turns out this patch already made it into 4.4.116 as well:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.4.y&id=4f3e6ab44b928ef70b77aa374886cb59fd9e4171

So please toss this patch. Evidently the X86_VSYSCALL_EMULATION bit 
didn't interfere with the patch, so 4.4.116 still compiled fine at 
first just like 4.4.115 and 4.4.114...

Stijn

> 
>> 
>> 
>> On Mon, Feb 19, 2018 at 4:46 AM, Stijn Segers 
>> <foss at volatilesystems.org> wrote:
>>>  CONFIG_X86_VSYSCALL_EMULATION is disabled by default on x86/64, 
>>> but without it the new KAISER stuff breaks
>>>  in the way shown below:
>>> 
>>>   CC      arch/x86/mm/kaiser.o
>>>  arch/x86/mm/kaiser.c: In function 'kaiser_init':
>>>  arch/x86/mm/kaiser.c:348:8: error: 'vsyscall_pgprot' undeclared 
>>> (first use in this function)
>>>         vsyscall_pgprot);
>>>         ^
>>>  arch/x86/mm/kaiser.c:270:47: note: in definition of macro 
>>> 'kaiser_add_user_map_early'
>>>   int __ret = kaiser_add_user_map(start, size, flags); \
>>>                                                ^~~~~
>>>  arch/x86/mm/kaiser.c:348:8: note: each undeclared identifier is 
>>> reported only once for each function it appears in
>>>         vsyscall_pgprot);
>>>         ^
>>>  arch/x86/mm/kaiser.c:270:47: note: in definition of macro 
>>> 'kaiser_add_user_map_early'
>>>   int __ret = kaiser_add_user_map(start, size, flags); \
>>>                                                ^~~~~
>>>  scripts/Makefile.build:269: recipe for target 
>>> 'arch/x86/mm/kaiser.o' failed
>>> 
>>>  Signed-off-by: Stijn Segers <foss at volatilesystems.org>
>>>  ---
>>>   target/linux/x86/64/config-default | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>> 
>>>  diff --git a/target/linux/x86/64/config-default 
>>> b/target/linux/x86/64/config-default
>>>  index 7d38df3030..bad7dddbe3 100644
>>>  --- a/target/linux/x86/64/config-default
>>>  +++ b/target/linux/x86/64/config-default
>>>  @@ -343,7 +343,7 @@ CONFIG_X86_MINIMUM_CPU_FAMILY=64
>>>   CONFIG_X86_PM_TIMER=y
>>>   # CONFIG_X86_POWERNOW_K8 is not set
>>>   CONFIG_X86_TSC=y
>>>  -# CONFIG_X86_VSYSCALL_EMULATION is not set
>>>  +CONFIG_X86_VSYSCALL_EMULATION=y
>>>   CONFIG_X86_X2APIC=y
>>>   # CONFIG_X86_X32 is not set
>>>   CONFIG_XEN=y
>>>  --
>>>  2.11.0
>>> 
>>> 
>>>  _______________________________________________
>>>  Lede-dev mailing list
>>>  Lede-dev at lists.infradead.org
>>>  http://lists.infradead.org/mailman/listinfo/lede-dev
>> 
>> _______________________________________________
>> Lede-dev mailing list
>> Lede-dev at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/lede-dev
> 
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev




More information about the Lede-dev mailing list