From 6271cc7c97723fed48c6a953662320a0effe1b19 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 26 Jun 2024 16:06:14 +0200 Subject: executor: disable lsan for exec subprocesses Somehow it's very slow in syzbot arm64 image. This speeds up pkg/runtest tests a hundred of times. --- executor/subprocess.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'executor/subprocess.h') diff --git a/executor/subprocess.h b/executor/subprocess.h index ef4bd9656..4477cc482 100644 --- a/executor/subprocess.h +++ b/executor/subprocess.h @@ -40,8 +40,10 @@ public: fail("posix_spawnattr_setflags failed"); const char* child_envp[] = { - // Tell ASAN to not mess with our NONFAILING. - "ASAN_OPTIONS=handle_segv=0 allow_user_segv_handler=1", + // Tell ASAN to not mess with our NONFAILING and disable leak checking + // (somehow lsan is very slow in syzbot arm64 image and we are not very interested + // in leaks in the exec subprocess, it does not use malloc/new anyway). + "ASAN_OPTIONS=handle_segv=0 allow_user_segv_handler=1 detect_leaks=0", // Disable rseq since we don't use it and we want to [ab]use it ourselves for kernel testing. "GLIBC_TUNABLES=glibc.pthread.rseq=0", nullptr}; -- cgit mrf-deployment