login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
24
Re: Regression [Was: Boot hang with stack protector on x86_64]
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: James Morris
Subject:
Re: Regression [Was: Boot hang with stack protector on x86_64]
Date: Sunday, February 24, 2008 - 3:53 pm
On Sat, 23 Feb 2008, Ingo Molnar wrote:
quoted text
> > * Ingo Molnar <mingo@elte.hu> wrote: > > > could you try the fix below ontop of x86.git#testing, does it solve > > your boot hang? > > find below another fix that is somewhat better as it does not affect the > native kernel and !PARAVIRT.
This works.
quoted text
> > btw., this also explains why this bug wasnt reported sooner against > x86.git#testing: people done normally use PARAVIRT on 64-bit yet. > (there is no 64-bit host support) > > Ingo > > ----------------> > Subject: x86: stackprotector & PARAVIRT fix > From: Ingo Molnar <mingo@elte.hu> > Date: Sat Feb 23 07:06:55 CET 2008 > > on paravirt enabled 64-bit kernels the paravirt ops do function > calls themselves - which is bad with the stackprotector - for > example pda_init() loads 0 into %gs and then does MSR_GS_BASE > write (which modifies gs.base) - but that MSR write is a function > call on paravirt, which with stackprotector tries to read the > stack canary from the PDA ... crashing the bootup. > > the solution was suggested by Arjan van de Ven: to exclude paravirt.c > from stackprotector, too many lowlevel functionality is in it. It's > not like we'll have paravirt functions with character arrays on > their stack anyway... > > Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> > Signed-off-by: Ingo Molnar <mingo@elte.hu> > --- > arch/x86/kernel/Makefile | 1 + > 1 file changed, 1 insertion(+) > > Index: linux-x86.q/arch/x86/kernel/Makefile > =================================================================== > --- linux-x86.q.orig/arch/x86/kernel/Makefile > +++ linux-x86.q/arch/x86/kernel/Makefile > @@ -15,6 +15,7 @@ nostackp := $(call cc-option, -fno-stack > CFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp) > CFLAGS_hpet.o := $(nostackp) > CFLAGS_tsc_64.o := $(nostackp) > +CFLAGS_paravirt.o := $(nostackp) > > obj-y := process_$(BITS).o signal_$(BITS).o entry_$(BITS).o > obj-y += traps_$(BITS).o irq_$(BITS).o >
-- James Morris <jmorris@namei.org> --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Boot hang with stack protector on x86_64
, James Morris
, (Thu Feb 21, 5:29 pm)
Re: Boot hang with stack protector on x86_64
, Arjan van de Ven
, (Thu Feb 21, 6:14 pm)
Regression [Was: Boot hang with stack protector on x86_64]
, Sam Ravnborg
, (Fri Feb 22, 12:59 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Ingo Molnar
, (Fri Feb 22, 2:36 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, James Morris
, (Fri Feb 22, 3:33 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Ingo Molnar
, (Fri Feb 22, 5:17 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, James Morris
, (Fri Feb 22, 6:02 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Ingo Molnar
, (Fri Feb 22, 6:27 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Linus Torvalds
, (Fri Feb 22, 8:43 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Arjan van de Ven
, (Fri Feb 22, 8:59 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Sam Ravnborg
, (Fri Feb 22, 9:12 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Ingo Molnar
, (Fri Feb 22, 11:18 pm)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Ingo Molnar
, (Sat Feb 23, 12:37 am)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, James Morris
, (Sun Feb 24, 3:53 pm)
Re: Regression [Was: Boot hang with stack protector on x86_64]
, Ingo Molnar
, (Mon Feb 25, 1:23 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate