Commit a214d48d authored by Sebastian Brzezinka's avatar Sebastian Brzezinka Committed by Tomasz Zawadzki
Browse files

app/fuzz: disable detect_leaks during fuzzer runtime



Detecting leaks while fuzzing cause asan to report incorrect memory
leaks, this behavior is cause by asan being disable for dpdk so every
memory that is allocated on heap and then store on hugepages is
reported as leaking even if there are correctly freed at the end.

This is a temporary solution until asan is enabled in dpdk

Signed-off-by: default avatarSebastian Brzezinka <sebastian.brzezinka@intel.com>
Change-Id: I2deecf39a2ec4c5345f626746280454e19088055
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18411


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 6932167e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -830,7 +830,10 @@ start_fuzzer(void *ctx)
	char *_argv[] = {
		"spdk",
		"-len_control=0",
		"-detect_leaks=1",
		/* TODO: temporarily disable leak detection due to issues
		 * with ASAN and DPDK, see #2455 and #2992.
		 */
		"-detect_leaks=0",
		NULL,
		NULL,
		NULL,
+4 −1
Original line number Diff line number Diff line
@@ -163,7 +163,10 @@ start_fuzzer(void *ctx)
	char *_argv[] = {
		"spdk",
		"-len_control=0",
		"-detect_leaks=1",
		/* TODO: temporarily disable leak detection due to issues
		 * with ASAN and DPDK, see #2455 and #2992.
		 */
		"-detect_leaks=0",
		NULL,
		NULL,
		NULL,