login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
24
Re: [PATCH 2/3] x86: add safe_smp_processor_id for x86_64
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Vivek Goyal <vgoyal@...>
To: <h-shimamoto@...>
Cc: <hbabu@...>, <tglx@...>, <linux-kernel@...>, <kexec@...>, Fernando Luis Vazquez Cao <fernando@...>
Subject:
Re: [PATCH 2/3] x86: add safe_smp_processor_id for x86_64
Date: Wednesday, October 24, 2007 - 5:01 am
On Wed, Oct 24, 2007 at 12:01:41PM +0530, Vivek Goyal wrote:
quoted text
> On Fri, Oct 19, 2007 at 06:23:02PM -0700, Hiroshi Shimamoto wrote: > > From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> > > > > Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> > > --- > > include/asm-x86/smp_64.h | 2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > diff --git a/include/asm-x86/smp_64.h b/include/asm-x86/smp_64.h > > index 6f0e027..ab612b0 100644 > > --- a/include/asm-x86/smp_64.h > > +++ b/include/asm-x86/smp_64.h > > @@ -76,6 +76,8 @@ extern unsigned __cpuinitdata disabled_cpus; > > > > #endif /* CONFIG_SMP */ > > > > +#define safe_smp_processor_id() smp_processor_id() > > + > > Can you please implement a patch for safe_smp_processor_id() instead of > using smp_processor_id(). safe_smp_processor_id() was introduced to make > sure that we are not dependent on the stack of threads after kernel has > crashed instead read the apic id and convert it to cpu id with other > data structures. This helped in stack overflow case. > > Hardcoding it to smp_processor_id() will give the false impression. >
Just now Aneesh pointed that x86_64 using pda for retrieving processor id and not kernel stack. I think it is fine then. Thanks Vivek -
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:
[PATCH 0/3] x86: unify crash_32/64.c
, Hiroshi Shimamoto
, (Fri Oct 19, 9:18 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Vivek Goyal
, (Wed Oct 24, 2:34 am)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Hiroshi Shimamoto
, (Wed Oct 24, 12:28 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Hiroshi Shimamoto
, (Thu Oct 25, 1:58 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Hiroshi Shimamoto
, (Fri Oct 26, 5:43 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Thomas Gleixner
, (Fri Oct 26, 6:37 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Hiroshi Shimamoto
, (Fri Oct 26, 8:13 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Hiroshi Shimamoto
, (Fri Oct 26, 9:15 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c
, Thomas Gleixner
, (Sat Oct 20, 6:50 am)
[PATCH 3/3] x86: unify crash_32/64.c
, Hiroshi Shimamoto
, (Fri Oct 19, 9:24 pm)
[PATCH 2/3] x86: add safe_smp_processor_id for x86_64
, Hiroshi Shimamoto
, (Fri Oct 19, 9:23 pm)
Re: [PATCH 2/3] x86: add safe_smp_processor_id for x86_64
, Vivek Goyal
, (Wed Oct 24, 2:31 am)
Re: [PATCH 2/3] x86: add safe_smp_processor_id for x86_64
, Vivek Goyal
, (Wed Oct 24, 5:01 am)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64
, Hiroshi Shimamoto
, (Fri Oct 19, 9:21 pm)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64
, Vivek Goyal
, (Wed Oct 24, 2:29 am)
[PATCH] Revert x86: add lapic_shutdown for x86_64
, Hiroshi Shimamoto
, (Mon Oct 29, 6:39 pm)
Re: [PATCH] Revert x86: add lapic_shutdown for x86_64
, Arjan van de Ven
, (Mon Oct 29, 7:15 pm)
Re: [PATCH] Revert x86: add lapic_shutdown for x86_64
, Hiroshi Shimamoto
, (Mon Oct 29, 8:05 pm)
Re: [PATCH] Revert x86: add lapic_shutdown for x86_64
, Thomas Gleixner
, (Mon Oct 29, 9:06 pm)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64
, Hiroshi Shimamoto
, (Wed Oct 24, 5:27 pm)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64
, Eric W. Biederman
, (Wed Oct 24, 8:28 pm)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64
, Hiroshi Shimamoto
, (Mon Oct 29, 6:45 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Andrew Morton
2.6.23-rc6-mm1
Eric Paris
[RFC 0/5] [TALPA] Intro to a linux interface for on access scanning
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
584 guests
online.
Syndicate