Re: [PATCH 2/3] x86: add safe_smp_processor_id for x86_64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vivek Goyal
Date: Tuesday, October 23, 2007 - 11:31 pm

On Fri, Oct 19, 2007 at 06:23:02PM -0700, Hiroshi Shimamoto wrote:

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.

Thanks
Vivek
-
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, 6:18 pm)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64, Hiroshi Shimamoto, (Fri Oct 19, 6:21 pm)
[PATCH 2/3] x86: add safe_smp_processor_id for x86_64, Hiroshi Shimamoto, (Fri Oct 19, 6:23 pm)
[PATCH 3/3] x86: unify crash_32/64.c, Hiroshi Shimamoto, (Fri Oct 19, 6:24 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Thomas Gleixner, (Sat Oct 20, 3:50 am)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64, Vivek Goyal, (Tue Oct 23, 11:29 pm)
Re: [PATCH 2/3] x86: add safe_smp_processor_id for x86_64, Vivek Goyal, (Tue Oct 23, 11:31 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Vivek Goyal, (Tue Oct 23, 11:34 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Hiroshi Shimamoto, (Wed Oct 24, 9:28 am)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64, Hiroshi Shimamoto, (Wed Oct 24, 2:27 pm)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64, Eric W. Biederman, (Wed Oct 24, 5:28 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Hiroshi Shimamoto, (Thu Oct 25, 10:58 am)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Hiroshi Shimamoto, (Fri Oct 26, 2:43 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Thomas Gleixner, (Fri Oct 26, 3:37 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Hiroshi Shimamoto, (Fri Oct 26, 5:13 pm)
Re: [PATCH 0/3] x86: unify crash_32/64.c, Hiroshi Shimamoto, (Fri Oct 26, 6:15 pm)
[PATCH] Revert x86: add lapic_shutdown for x86_64, Hiroshi Shimamoto, (Mon Oct 29, 3:39 pm)
Re: [PATCH 1/3] x86: add lapic_shutdown for x86_64, Hiroshi Shimamoto, (Mon Oct 29, 3:45 pm)
Re: [PATCH] Revert x86: add lapic_shutdown for x86_64, Arjan van de Ven, (Mon Oct 29, 4:15 pm)
Re: [PATCH] Revert x86: add lapic_shutdown for x86_64, Hiroshi Shimamoto, (Mon Oct 29, 5:05 pm)
Re: [PATCH] Revert x86: add lapic_shutdown for x86_64, Thomas Gleixner, (Mon Oct 29, 6:06 pm)