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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1295596524.1949.939.camel@sli10-conroe>
Date:	Fri, 21 Jan 2011 15:55:24 +0800
From:	Shaohua Li <shaohua.li@...el.com>
To:	"Anvin, H Peter" <h.peter.anvin@...el.com>
Cc:	Ingo Molnar <mingo@...e.hu>,
	Markus Trippelsdorf <markus@...ppelsdorf.de>,
	"Lu, Hongjiu" <hongjiu.lu@...el.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Sam Ravnborg <sam@...nborg.org>
Subject: RE: Linux 2.6.38-rc1 doesn't boot

On Fri, 2011-01-21 at 15:18 +0800, Shaohua Li wrote:
> On Thu, 2011-01-20 at 23:08 +0800, Anvin, H Peter wrote:
> > (The patch will need to be paired with removing the hacks in the linker script.)
> > 
> > -----Original Message-----
> > From: Ingo Molnar [mailto:mingo@...e.hu] 
> > Sent: Thursday, January 20, 2011 3:26 AM
> > To: Li, Shaohua
> > Cc: Anvin, H Peter; Markus Trippelsdorf; Lu, Hongjiu; Linus Torvalds; Linux Kernel Mailing List; Sam Ravnborg
> > Subject: Re: Linux 2.6.38-rc1 doesn't boot
> > 
> > 
> > * Shaohua Li <shaohua.li@...el.com> wrote:
> > 
> > > it's not a build failure, without it, my i386 kernel can't boot
> > > actually.
> > 
> > Please try hpa's patch in this thread on top of very latest (today's) -git or latest 
> > -tip:
> > 
> >    http://people.redhat.com/mingo/tip.git/README
> > 
> > Does that result in a booting system? That way we can avoid most of the linker 
> > script madness.
> Need some changes to make it compile and work on both 32 and 64 bit
> kernel. below one is working for me:
Hmm, a slightly modified version of the reverted patch works here for
both 32/64 bit kernels and with old/new binutils too. Maybe we can use
it currently till we remove the link script trick?

 

diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index bf47007..69e5968 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -34,11 +34,9 @@ OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT)
 #ifdef CONFIG_X86_32
 OUTPUT_ARCH(i386)
 ENTRY(phys_startup_32)
-jiffies = jiffies_64;
 #else
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(phys_startup_64)
-jiffies_64 = jiffies;
 #endif
 
 #if defined(CONFIG_X86_64) && defined(CONFIG_DEBUG_RODATA)
@@ -142,6 +140,9 @@ SECTIONS
 		CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
 
 		DATA_DATA
+#ifdef CONFIG_X86_32
+		jiffies = jiffies_64;
+#endif
 		CONSTRUCTORS
 
 		/* rarely changed data like cpu maps */
@@ -203,6 +204,7 @@ SECTIONS
 		*(.jiffies)
 	}
 	jiffies = VVIRT(.jiffies);
+	jiffies_64 = jiffies;
 
 	.vsyscall_3 ADDR(.vsyscall_0) + 3072: AT(VLOAD(.vsyscall_3)) {
 		*(.vsyscall_3)


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