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:	Sun, 20 Jan 2008 18:21:51 +0100
From:	Sam Ravnborg <sam@...nborg.org>
To:	Toralf Förster <toralf.foerster@....de>
Cc:	linux-kernel@...r.kernel.org, WANG Cong <xiyou.wangcong@...il.com>,
	Jeremy Fitzhardinge <jeremy@...source.com>
Subject: Re: build #344 issue for v2.6.24-rc8-74-ga7da60f Section mismatch: reference to .init.text:lguest_entry

On Sun, Jan 20, 2008 at 04:18:58PM +0100, Toralf Förster wrote:
> Hello,
> 
> although I applied the xen-patch:
> 
> ..............................................................................
> tfoerste@n22 ~/devel/linux-2.6 $ git diff
> diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
> index f84e772..5e24f67 100644
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -59,7 +59,7 @@ static void xen_idle(void)
>  /*
>   * Set the bit indicating "nosegneg" library variants should be used.
>   */
> -static void fiddle_vdso(void)
> +static void __init fiddle_vdso(void)
>  {
>         extern u32 VDSO_NOTE_MASK; /* See ../kernel/vsyscall-note.S.  */
>         extern char vsyscall_int80_start;
> diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
> index f8d6937..288d587 100644
> --- a/arch/x86/xen/xen-head.S
> +++ b/arch/x86/xen/xen-head.S
> @@ -4,16 +4,18 @@
>  #ifdef CONFIG_XEN
> 
>  #include <linux/elfnote.h>
> +#include <linux/init.h>
>  #include <asm/boot.h>
>  #include <xen/interface/elfnote.h>
> 
> -.pushsection .init.text
> +       __INIT
>  ENTRY(startup_xen)
>         movl %esi,xen_start_info
>         cld
>         movl $(init_thread_union+THREAD_SIZE),%esp
>         jmp xen_start_kernel
> -.popsection
> +
> +       __FINIT
> 
>  .pushsection .bss.page_aligned
>         .align PAGE_SIZE_asm
> ..............................................................................
> 
> 
> I got during make :
> 
>   AS      .tmp_kallsyms3.o
>   LD      vmlinux.o
>   MODPOST vmlinux.o
> WARNING: vmlinux.o(.data+0x4): Section mismatch: reference to .init.text:lguest_entry (between 'subarch_entries' and 'stack_start')
>   LD      vmlinux
>   SYSMAP  System.map
>   SYSMAP  .tmp_System.map
> 
> The build was made with :
> $> make mrproper && make rndconfig && <tweak config file> && make oldconfig && make

Different issue. Untested patch below.

	Sam
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index fbad51f..f0cacff 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -9,6 +9,7 @@
 
 .text
 #include <linux/threads.h>
+#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/segment.h>
 #include <asm/page.h>
@@ -151,7 +152,9 @@ WEAK(xen_entry)
 	/* Unknown implementation; there's really
 	   nothing we can do at this point. */
 	ud2a
-.data
+
+	__INITDATA
+
 subarch_entries:
 	.long default_entry		/* normal x86/PC */
 	.long lguest_entry		/* lguest hypervisor */
--
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