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] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 25 Aug 2014 17:22:04 -0400
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Jim Davis <jim.epost@...il.com>
Cc:	Stephen Rothwell <sfr@...b.auug.org.au>,
	linux-next <linux-next@...r.kernel.org>,
	linux-kernel <linux-kernel@...r.kernel.org>, mingo@...hat.com
Subject: Re: randconfig build error with next-20140825, in
 include/linux/tracepoint.h

On Mon, 25 Aug 2014 09:30:14 -0700
Jim Davis <jim.epost@...il.com> wrote:

> Building with the attached random configuration file,
> 
> In file included from include/linux/linkage.h:6:0,
>                  from include/linux/preempt.h:9,
>                  from include/linux/preempt_mask.h:4,
>                  from include/linux/hardirq.h:4,
>                  from include/linux/kvm_host.h:10,
>                  from arch/x86/kvm/x86.c:22:
> include/linux/tracepoint.h:214:20: error:
> ‘__tracepoint_kvm_ple_window’ undeclared here (not in a function)
>   EXPORT_SYMBOL_GPL(__tracepoint_##name)
>                     ^
> include/linux/export.h:57:16: note: in definition of macro ‘__EXPORT_SYMBOL’
>   extern typeof(sym) sym;     \
>                 ^
> include/linux/tracepoint.h:214:2: note: in expansion of macro ‘EXPORT_SYMBOL_GPL
> ’
>   EXPORT_SYMBOL_GPL(__tracepoint_##name)
>   ^
> arch/x86/kvm/x86.c:7676:1: note: in expansion of macro ‘EXPORT_TRACEPOINT_SYMBOL
> _GPL’
>  EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_ple_window);
>  ^
>   LD      fs/affs/built-in.o
>   CC [M]  fs/affs/super.o
> make[2]: *** [arch/x86/kvm/x86.o] Error 1
> make[1]: *** [arch/x86/kvm] Error 2

Does this fix it for you?

-- Steve

>From e754b26d0d2d5671780f418a0b3acaa8edce4276 Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (Red Hat)" <rostedt@...dmis.org>
Date: Mon, 25 Aug 2014 17:19:02 -0400
Subject: [PATCH] KVM: Only export kvm_ple_window for x86_64

Commit 7b46268d2954 "KVM: trace kvm_ple_window grow/shrink"
Added the tracepoint kvm_ple_window under a #ifdef CONFIG_X86_64 but
left the export for that tracepoint unprotected, which would cause it
to fail to compile when X86_32 is set.

Reported-by: Jim Davis <jim.epost@...il.com>
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
---
 arch/x86/kvm/x86.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c10408ef9ab1..3da45a3ecaa4 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -7673,4 +7673,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_invlpga);
 EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_skinit);
 EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_nested_intercepts);
 EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_write_tsc_offset);
+#ifdef CONFIG_X86_64
 EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_ple_window);
+#endif
-- 
1.8.1.4

--
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