linux/arch
Chris Wright d34fda4a84 x86: properly initialize temp insn buffer for paravirt patching
With commit ab144f5ec6 the patching code
now collects the complete new instruction stream into a temp buffer
before finally patching in the new insns.  In some cases the paravirt
patchers will choose to leave the patch site unpatched (length mismatch,
clobbers mismatch, etc).

This causes the new patching code to copy an uninitialized temp buffer,
i.e.  garbage, to the callsite.  Simply make sure to always initialize
the buffer with the original instruction stream.  A better fix is to
audit all the patchers and return proper length so that apply_paravirt()
can skip copies when we leave the patch site untouched.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-08-18 15:15:54 -07:00
..
alpha alpha: -Werror fixes for sys_titan.c 2007-08-11 15:47:42 -07:00
arm [ARM] 4549/1: KS8695: Fix build errors 2007-08-14 17:23:55 +01:00
avr32 [AVR32] Wire up i2c-gpio on the ATNGW100 board 2007-08-15 16:36:55 +02:00
blackfin
cris cris: drivers/cdrom/Kconfig no longer exists 2007-08-11 15:47:41 -07:00
frv
h8300
i386 x86: properly initialize temp insn buffer for paravirt patching 2007-08-18 15:15:54 -07:00
ia64 [IA64] Enable early console for Ski simulator 2007-08-17 13:44:15 -07:00
m32r
m68k
m68knommu
mips
parisc
powerpc [POWERPC] Fix invalid semicolon after if statement 2007-08-17 10:48:52 +10:00
ppc [POWERPC] Fix small race in 44x tlbie function 2007-08-15 15:12:50 +10:00
s390
sh sh: remove extraneous ; on scif_sercon_putc wait loop 2007-08-17 01:25:34 +09:00
sh64 sh64: arch/sh64/kernel/setup.c: duplicate include removal. 2007-08-12 12:18:54 +09:00
sparc [SPARC32]: Remove superfluous 'kernel_end' alignment on sun4c. 2007-08-14 18:24:10 -07:00
sparc64 [SPARC64]: SMP trampoline needs to avoid %tick_cmpr on sun4v too. 2007-08-16 01:56:00 -07:00
um
v850
x86_64 x86_64: Check for .cfi_rel_offset in CFI probe 2007-08-18 10:25:25 -07:00
xtensa