lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+icZUUbYA=QzXVJjRRQdSjqWM8Ap7p5vqPE3JL1YzHzArXcpw@mail.gmail.com>
Date:	Wed, 23 Jan 2013 14:08:28 +0100
From:	Sedat Dilek <sedat.dilek@...il.com>
To:	Frederic Weisbecker <fweisbec@...il.com>
Cc:	LKML <linux-kernel@...r.kernel.org>, x86@...nel.org,
	Thomas Gleixner <tglx@...utronix.de>, rostedt@...dmis.org
Subject: Re: [ANNOUNCE] 3.8-rc4-nohz3

On Wed, Jan 23, 2013 at 1:20 PM, Frederic Weisbecker <fweisbec@...il.com> wrote:
> 2013/1/23 Sedat Dilek <sedat.dilek@...il.com>:
>> On Wed, Jan 23, 2013 at 1:11 PM, Frederic Weisbecker <fweisbec@...il.com> wrote:
>>> 2013/1/23 Sedat Dilek <sedat.dilek@...il.com>:
>>>> On Wed, Jan 23, 2013 at 12:19 PM, Sedat Dilek <sedat.dilek@...il.com> wrote:
>>>>> Hi Frederic,
>>>>>
>>>>> I wanted to 3.8-rc4-nohz3 [1] here on my Ubuntu/precise AMD64 system.
>>>>>
>>>>> Unfortunately, the build breaks like this:
>>>>>
>>>>> ERROR: "guest_enter" [arch/x86/kvm/kvm.ko] undefined!
>>>>> ERROR: "guest_exit" [arch/x86/kvm/kvm.ko] undefined!
>>>>>
>>>>
>>>> Looks like you tested with CONFIG_KVM=y (as module fails!).
>>>
>>> Yep. looks like I forgot some EXPORT_SYMBOL().
>>>
>>
>> Hmmm, that was my first thought, too, but about...
>>
>> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
>> index c243b81..fff0932 100644
>> --- a/arch/x86/kvm/x86.c
>> +++ b/arch/x86/kvm/x86.c
>> @@ -5713,7 +5713,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
>>         if (req_immediate_exit)
>>                 smp_send_reschedule(vcpu->cpu);
>>
>> -       kvm_guest_enter();
>> +       guest_enter();
>>
>>         if (unlikely(vcpu->arch.switch_db_regs)) {
>>                 set_debugreg(0, 7);
>
> Yeah, guest_enter and guest_exit need an EXPORT_SYMBOL() in
> kernel/context_tracking.c such that the module can find these
> functions.

My patch did not fix it!

kernel/context_tracking.c:114:EXPORT_SYMBOL_GPL(guest_enter);
kernel/context_tracking.c:123:EXPORT_SYMBOL_GPL(guest_exit);

[ build-log ]
ERROR: "guest_enter" [arch/x86/kvm/kvm.ko] undefined!
ERROR: "guest_exit" [arch/x86/kvm/kvm.ko] undefined!
make[3]: *** [__modpost] Error 1

$ egrep 'CONFIG_KVM|CONFIG_CONTEXT_TRACKING' linux/.config
CONFIG_CONTEXT_TRACKING=y
# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_KVM_GUEST=y
CONFIG_KVM_APIC_ARCHITECTURE=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
# CONFIG_KVM_AMD is not set
# CONFIG_KVM_MMU_AUDIT is not set

- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ