aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/sync-core.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-27 12:03:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-27 12:03:49 +0000
commita1dfaa7bfac80018221dd2031e02b883c76d7bdb (patch)
tree49598042589a1312219f231ff3e8050a768c5ff8 /main/linux-grsec/sync-core.patch
parente3d8cfe3f08df6649c56b637cead8efe622220f1 (diff)
downloadaports-a1dfaa7bfac80018221dd2031e02b883c76d7bdb.tar.bz2
aports-a1dfaa7bfac80018221dd2031e02b883c76d7bdb.tar.xz
main/linux-grsec: fix booting soekris 4801
fix from pipacs. see http://lists.alpinelinux.org/alpine-devel/1029.html
Diffstat (limited to 'main/linux-grsec/sync-core.patch')
-rw-r--r--main/linux-grsec/sync-core.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/linux-grsec/sync-core.patch b/main/linux-grsec/sync-core.patch
new file mode 100644
index 0000000000..7923983042
--- /dev/null
+++ b/main/linux-grsec/sync-core.patch
@@ -0,0 +1,13 @@
+--- ./arch/x86/kernel/alternative.c.orig
++++ ./arch/x86/kernel/alternative.c
+@@ -500,9 +500,9 @@
+
+ pax_open_kernel();
+ memcpy(ktla_ktva(addr), opcode, len);
++ sync_core();
+ pax_close_kernel();
+
+- sync_core();
+ local_irq_restore(flags);
+ /* Could also do a CLFLUSH here to speed up CPU recovery; but
+ that causes hangs on some VIA CPUs. */