Michael Ellerman
30415f6a63
powerpc: Fix random memory corruption in merged elf.h
...
The merged verison of ELF_CORE_COPY_REGS is basically the PPC64 version, with
a memset that came from PPC and a few types abstracted out into #defines. But
it's not _quite_ right.
The first problem is we calculate the number of registers with:
nregs = sizeof(struct pt_regs) / sizeof(ELF_GREG_TYPE)
For a 32-bit process on a 64-bit kernel that's bogus because the registers are
64 bits, but ELF_GREG_TYPE is u32, so nregs == 88 which is wrong.
The other problem is the memset, which assumes a struct pt_regs is smaller
than a struct elf_regs. For a 32-bit process on a 64-bit kernel that's false.
The fix is to calculate the number of regs using sizeof(unsigned long), which
should always be right, and just memset the whole damn thing _before_ copying
the registers in.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
2005-11-04 12:10:51 +11:00
..
acpi
asm-alpha
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-arm
Merge master.kernel.org:/home/rmk/linux-2.6-arm
2005-10-30 17:48:00 -08:00
asm-arm26
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-cris
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-frv
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-generic
[PATCH] mm: update comments to pte lock
2005-10-29 21:40:42 -07:00
asm-h8300
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-i386
Revert "i386: move apic init in init_IRQs"
2005-10-31 19:16:17 -08:00
asm-ia64
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-m32r
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-m68k
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-m68knommu
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-mips
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-parisc
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-powerpc
powerpc: Fix random memory corruption in merged elf.h
2005-11-04 12:10:51 +11:00
asm-ppc
powerpc: Merge asm-ppc/kexec.h and asm-ppc64/kexec.h
2005-11-03 15:35:45 +11:00
asm-ppc64
powerpc: Implement smp_release_cpus() in C not asm
2005-11-04 12:09:42 +11:00
asm-s390
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-sh
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-sh64
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-sparc
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-sparc64
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-um
[PATCH] uml: remove old UM_FASTCALL, and make the thing work again
2005-10-30 17:37:16 -08:00
asm-v850
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-x86_64
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
asm-xtensa
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
keys
[PATCH] Keys: Export user-defined keyring operations
2005-10-30 17:37:22 -08:00
linux
Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel
2005-10-31 07:32:56 -08:00
math-emu
media
[PATCH] i2c: ID redefinition cleanups
2005-10-28 14:02:13 -07:00
mtd
net
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
2005-10-29 11:25:16 -07:00
pcmcia
[PATCH] fix missing includes
2005-10-30 17:37:32 -08:00
rdma
[IB] Fix MAD layer DMA mappings to avoid touching data buffer once mapped
2005-10-25 10:51:39 -07:00
rxrpc
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
scsi
[PATCH] fix missing includes
2005-10-30 17:37:32 -08:00
sound
[PATCH] Creative Audigy 2 cardbus: Add IO window wakeup magic
2005-10-31 16:09:39 -08:00
video