Skip to content

stack overflow safe kdump (2.6.18-rc1-i386)

Fernando Luis Vázquez Cao lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3stack overflow safe kdump (2.6.18-rc1-i386) - safe_smp_processor_idarch/i386/kernel/smp.c include/asm-i386/smp.h+34 -017 replies
2/3stack overflow safe kdump (2.6.18-rc1-i386) - crash_use_safe_smp_processor_idarch/i386/kernel/crash.c+2 -20 replies
3/3stack overflow safe kdump (2.6.18-rc1-i386) - ipi_use_safe_smp_processor_idinclude/asm-i386/mach-bigsmp/mach_ipi.h include/asm-i386/mach-default/mach_ipi.h include/asm-i386/mach-es7000/mach_ipi.h +2 more+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] stack overflow safe kdump (2.6.18-rc1-i386)

Hi,

This is a the first of a series of patch-sets aiming at making kdump more robust against stack overflows.

This patch set does the following:

* Add safe_smp_processor_id function to i386 architecture (this function was inspired by the x86_64 function of the same name).

* Substitute "smp_processor_id" with the stack overflow-safe "safe_smp_processor_id" in the reboot path to the second kernel.

List of patches (the last two should be applied in the order of appearance):

[1/5] safe_smp_processor_id: stack overflow safe implementation of smp_processor_id.

[2/5] crash_use_safe_smp_processor_id: replace smp_processor_id with safe_smp_processor_id in "arch/i386/kernel/crash.c".

[3/5] ipi_use_safe_smp_processor_idfault: replace smp_processor_id with safe_smp_processor_id in "include/asm-i386/mach-*/mach_ipi.h".

I tried to incorporate all the ideas received after a previous post. In particular I hope the new code is handling the Voyager case properly.

I am looking forward to your comments and suggestions.

Regards,

Fernando