We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e6a74 commit 44e9a3bCopy full SHA for 44e9a3b
arch/arm/kernel/entry-armv.S
@@ -25,6 +25,7 @@
25
#include <asm/tls.h>
26
#include <asm/system_info.h>
27
#include <asm/uaccess-asm.h>
28
+#include <asm/kasan_def.h>
29
30
#include "entry-header.S"
31
#include <asm/probes.h>
@@ -561,6 +562,13 @@ ENTRY(__switch_to)
561
562
@ entries covering the vmalloc region.
563
@
564
ldr r2, [ip]
565
+#ifdef CONFIG_KASAN_VMALLOC
566
+ @ Also dummy read from the KASAN shadow memory for the new stack if we
567
+ @ are using KASAN
568
+ mov_l r2, KASAN_SHADOW_OFFSET
569
+ add r2, r2, ip, lsr #KASAN_SHADOW_SCALE_SHIFT
570
+ ldr r2, [r2]
571
+#endif
572
#endif
573
574
@ When CONFIG_THREAD_INFO_IN_TASK=n, the update of SP itself is what
0 commit comments