All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/vdso: Enable sanitizers for vma.o
@ 2020-01-06 20:02 Jann Horn
  2020-01-10 15:49 ` [tip: locking/kcsan] " tip-bot2 for Jann Horn
  0 siblings, 1 reply; 2+ messages in thread
From: Jann Horn @ 2020-01-06 20:02 UTC (permalink / raw)
  To: Andy Lutomirski, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	x86, jannh
  Cc: H. Peter Anvin, linux-kernel

The vDSO makefile opts out of all sanitizers (and objtool validation);
however, vma.o is a normal kernel object file (and already has objtool
validation selectively enabled), so turn the sanitizers back on for that
file.

Signed-off-by: Jann Horn <jannh@google.com>
---

Notes:
    This should probably go on top of the locking/kcsan branch?

 arch/x86/entry/vdso/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile
index 0f46273b4556..50a1c9008864 100644
--- a/arch/x86/entry/vdso/Makefile
+++ b/arch/x86/entry/vdso/Makefile
@@ -30,6 +30,9 @@ vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o
 
 # files to link into kernel
 obj-y				+= vma.o
+KASAN_SANITIZE_vma.o		:= y
+UBSAN_SANITIZE_vma.o		:= y
+KCSAN_SANITIZE_vma.o		:= y
 OBJECT_FILES_NON_STANDARD_vma.o	:= n
 
 # vDSO images to build
-- 
2.24.1.735.g03f4e72817-goog


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-10 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 20:02 [PATCH] x86/vdso: Enable sanitizers for vma.o Jann Horn
2020-01-10 15:49 ` [tip: locking/kcsan] " tip-bot2 for Jann Horn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.