mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 13:26:45 +07:00
b8d3f2448b
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> |
||
---|---|---|
.. | ||
bitops.c | ||
bitstr.c | ||
clear_page.S | ||
copy_page.S | ||
copy_user_nocache.S | ||
copy_user.S | ||
csum-copy.S | ||
csum-partial.c | ||
csum-wrappers.c | ||
delay.c | ||
getuser.S | ||
io.c | ||
iomap_copy.S | ||
Makefile | ||
memcpy.S | ||
memmove.c | ||
memset.S | ||
msr-on-cpu.c | ||
putuser.S | ||
rwlock.S | ||
thunk.S | ||
usercopy.c |