linux/include
Simon Horman 6672f76a5a kdump/kexec: calculate note size at compile time
Currently the size of the per-cpu region reserved to save crash notes is
set by the per-architecture value MAX_NOTE_BYTES.  Which in turn is
currently set to 1024 on all supported architectures.

While testing ia64 I recently discovered that this value is in fact too
small.  The particular setup I was using actually needs 1172 bytes.  This
lead to very tedious failure mode where the tail of one elf note would
overwrite the head of another if they ended up being alocated sequentially
by kmalloc, which was often the case.

It seems to me that a far better approach is to caclculate the size that
the area needs to be.  This patch does just that.

If a simpler stop-gap patch for ia64 to be squeezed into 2.6.21(.X) is
needed then this should be as easy as making MAX_NOTE_BYTES larger in
arch/asm-ia64/kexec.h.  Perhaps 2048 would be a good choice.  However, I
think that the approach in this patch is a much more robust idea.

Acked-by:  Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:07 -07:00
..
acpi remove "struct subsystem" as it is no longer needed 2007-05-02 18:57:59 -07:00
asm-alpha move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-arm kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-arm26 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-avr32 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-blackfin blackfin architecture 2007-05-07 12:12:58 -07:00
asm-cris move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-frv move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-generic move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-h8300 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-i386 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-ia64 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-m32r move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-m68k move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-m68knommu move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-mips kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-parisc move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-powerpc kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-ppc move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-s390 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-sh kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-sh64 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-sparc move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-sparc64 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-um move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-v850 move die notifier handling to common code 2007-05-08 11:15:04 -07:00
asm-x86_64 kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
asm-xtensa move die notifier handling to common code 2007-05-08 11:15:04 -07:00
crypto [CRYPTO] cryptd: Add software async crypto daemon 2007-05-02 14:38:32 +10:00
keys [AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both 2007-04-26 15:48:28 -07:00
linux kdump/kexec: calculate note size at compile time 2007-05-08 11:15:07 -07:00
math-emu Delete unused header file math-emu/extended.h 2007-05-08 11:15:05 -07:00
media i2c: Cleanup the includes of <linux/i2c.h> 2007-05-01 23:26:29 +02:00
mtd UBI: Unsorted Block Images 2007-04-27 14:23:33 +03:00
net [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
pcmcia add new_id to PCMCIA drivers 2007-05-07 12:12:50 -07:00
rdma Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband 2007-05-07 12:18:21 -07:00
rxrpc [AF_RXRPC]: Delete the old RxRPC code. 2007-04-26 15:55:48 -07:00
scsi [SCSI] modalias for scsi devices 2007-04-17 18:15:04 -04:00
sound [ALSA] version 1.0.14rc3 2007-03-14 08:25:52 +01:00
video
Kbuild