login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
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
Score:
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
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
open-graphics
open-graphics-announce-kt
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Mikulas Patocka
LFENCE instruction (was: [rfc][patch 3/3] x86: optimise barriers)
Renato S. Yamane
Error -71 on device descriptor read/all
Florian Schmidt
blacklist kernel boot option
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
JD Guzman
C# Git Implementation
Abdelrazak Younes
Git-windows and git-svn?
Mark Levedahl
Re: [PATCH] Teach remote machinery about remotes.default config variable
Elijah Newren
Trying to use git-filter-branch to compress history by removing large, obsolete bi...
openbsd-misc
:
Nick Guenther
Re: Real men don't attack straw men
Mark Thomas
[i386/Thinkpad T41]USB mouse + Xorg obsd 4.1
Ondřej Surý
openbgp not exporing ipv6 to routing tables
Alexey Suslikov
OT: OpenBSD on Asus eeePC
linux-netdev
:
Kim Phillips
[PATCH 0/5] fixups for mpc8360 rev. 2.1 erratum #2 (RGMII Timing)
Michael Grollman
Re: 8169 Intermittent ifup Failure Issue With RTL8102E Chipset in Intel's New D945...
Joerg Roedel
[PATCH 06/10] x86: add check code for map/unmap_sg code
Gerrit Renker
[PATCH 13/37] dccp: Deprecate Ack Ratio sysctl
Latest forum posts
Serial Driver Implementation Help
4 hours ago
Linux kernel
aacraid bad
5 hours ago
Linux general
Tools: GCC 3.4.6, Final GCC 3 Release
1 day ago
Applications and Utilities
GNU/Hurd is so awful
2 days ago
GNU/Hurd
read /dev/mem not working in 2.6
3 days ago
Linux general
Issues with NETLINK sockets
4 days ago
Linux kernel
Anyone experiancing compiling issues with 2.6.26.6 patching with rt patch 2.6.26.6-rt11?
4 days ago
Linux kernel
Change network interface from eth0 to ppp0
5 days ago
Linux general
kernel module to intercept socket creation
5 days ago
Linux kernel
command to set Subnet Mask
5 days ago
Linux general
Show all forums...
Recent Tags
more tags
Colocation donated by:
Who's online
There are currently
3 users
and
1230 guests
online.
Online users
Jeremy
zeekec
puntmuts
Syndicate
speck-geostationary