kernel-hacking-2024-linux-s.../arch
Petr Vandrovec b8d3f2448b Do not replace whole memcpy in apply alternatives
apply_alternatives uses memcpy() to apply alternatives.  Which has the
unfortunate effect that while applying memcpy alternative to memcpy
itself it tries to overwrite itself with nops - which causes #UD fault
as it overwrites half of an instruction in copy loop, and from this
point on only possible outcome is triplefault and reboot.

So let's overwrite only first two instructions of memcpy - as long as
the main memcpy loop is not in first two bytes it will work fine.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-08-12 01:42:37 -07:00
..
alpha alpha: -Werror fixes for sys_titan.c 2007-08-11 15:47:42 -07:00
arm [ARM] rpc: update defconfig 2007-08-06 16:48:49 +01:00
avr32 Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds 2007-07-22 11:22:01 -07:00
blackfin Blackfin arch: after removing fs.h from mm.h, fix the broken on Blackfin arch 2007-08-11 15:47:39 -07:00
cris cris: drivers/cdrom/Kconfig no longer exists 2007-08-11 15:47:41 -07:00
frv FRV: connect up fallocate 2007-08-11 15:47:40 -07:00
h8300
i386 i386: Fix double fault handler 2007-08-11 15:58:14 -07:00
ia64 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 2007-08-01 20:48:54 -07:00
m32r m32r: build fix for removing fs.h from mm.h 2007-07-30 10:52:10 -07:00
m68k Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
m68knommu m68knommu: get rid of duplicate include 2007-07-31 15:39:40 -07:00
mips [MIPS] Add smp_call_function_single() 2007-07-31 21:35:37 +01:00
parisc Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
powerpc [POWERPC] Fix size check for hugetlbfs 2007-08-10 21:04:42 +10:00
ppc Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog 2007-07-31 20:43:52 -07:00
s390 [S390] remove DEFAULT_MIGRATION_COST 2007-08-10 14:32:37 +02:00
sh sh: fix defconfigs for sh7751r boards 2007-08-03 10:17:47 +09:00
sh64 sh64: Kill off virt_to_bus()/bus_to_virt(). 2007-07-31 13:11:25 +09:00
sparc [SPARC]: Centralize find_in_proplist() instead of duplicating N times. 2007-08-07 18:46:36 -07:00
sparc64 [SPARC64]: Fix memory leak when cpu hotplugging. 2007-08-08 17:33:52 -07:00
um UML: console should handle spurious IRQS 2007-07-31 15:39:37 -07:00
v850
x86_64 Do not replace whole memcpy in apply alternatives 2007-08-12 01:42:37 -07:00
xtensa