Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3792980ybi; Mon, 29 Jul 2019 12:43:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGh6Vcwwtr8AJWoksLKGChWEplNpKXp0zW9UgfA+Hd/2BKZSTAcB/L7q2Wq/1qON5X5MMq X-Received: by 2002:a17:90a:5887:: with SMTP id j7mr112318523pji.136.1564429436834; Mon, 29 Jul 2019 12:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564429436; cv=none; d=google.com; s=arc-20160816; b=ZjVZ5MMXJF+bu06xakqIgW61dW6zgRd/ZJXfqN4ZPAVKrYyW0fSS5lk2NJLKbty1+/ +jI+TLc3RdHdEjeaqpM/QVmF5+WjSYq0pRuGA4MVzQNmy8/WM71mdSgUjbzPpdCWYtUb FjCkx4svVzzql07BGzhIoYXwHbs3H9P+dkpUEySCmSYkytfpUfWvK1D7dxYl0RMxJyYK frI/ZlqYrEN11XSLjRMdEXZ77QPadIlpdqsrPqgRBbQ64vvXQSPJ9CkUrTfYSUefNfAk eXMaQd+FvAOuNlcqGlVkBADDCYQeXOgoLDTSp2xkJH7sXsBtrl1u243tup77Ul9s/idm L33A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OenLg50miOPuqS1ROd2OChyzlqaILK654McJJoZH2Us=; b=qAiDnircbDsmOSZ9Ci8BPgqvGkSraU13USDq5EWzZgdxjb70BEPNv7W0nhf1XKoH96 GK5np5qes1VVXA/a+1ws8YtGE3SbuBflIF6bcfBL//zWRLpTnLhrAQfCbb0ko8DpK5vt gAcAyLCl/Rj+JZaGj3ANHCFd/i1QdVF67c2xYfBoNUzbyq30HNXPpIfPkLBi8OpCgJNx V5PxAI25rwpC7VO7HuoMpRZ7qFU2F4m7t8jcTvqXxb5MAfu2DNeamVW6K70qb6+W3Xqe 50bno7sMEp17q3I736sr93MwHe8yaQCZ6E7+SYCFos9yZaCXzpiLUU5rIK5OYN+8Ybbw kuIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wXPqfZyZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si27714518plr.111.2019.07.29.12.43.42; Mon, 29 Jul 2019 12:43:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wXPqfZyZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389504AbfG2Tmd (ORCPT + 99 others); Mon, 29 Jul 2019 15:42:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:58160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388963AbfG2Tm0 (ORCPT ); Mon, 29 Jul 2019 15:42:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF27B2054F; Mon, 29 Jul 2019 19:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429345; bh=+qdwOzhe7jaEDhHoYnSoTsCXmCW3kYF3aTRspMUM69g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wXPqfZyZshV+A3eWZZLAH2wuHNiTOx8PP0J/l7zQE20VWGLDe4cbjljbO9svi+wuu LZdmWnd4C15mc1zotcGLOoapbB3PGWfrEz6lsuBDrvowJoj92rZmYXgSu9knUQDKoC VQR8lrNbSJ/yN4K2G1xHdkYpzpQrN9lHYTyHyCy4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Numfor Mbiziwo-Tiapo , Alexander Shishkin , Ian Rogers , Jiri Olsa , Mark Drayton , Namhyung Kim , Peter Zijlstra , Song Liu , Stephane Eranian , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.19 067/113] perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning Date: Mon, 29 Jul 2019 21:22:34 +0200 Message-Id: <20190729190711.501308480@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190655.455345569@linuxfoundation.org> References: <20190729190655.455345569@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 4e4cf62b37da5ff45c904a3acf242ab29ed5881d ] Running the 'perf test' command after building perf with a memory sanitizer causes a warning that says: WARNING: MemorySanitizer: use-of-uninitialized-value... in mmap-thread-lookup.c Initializing the go variable to 0 silences this harmless warning. Committer warning: This was harmless, just a simple test writing whatever was at that sizeof(int) memory area just to signal another thread blocked reading that file created with pipe(). Initialize it tho so that we don't get this warning. Signed-off-by: Numfor Mbiziwo-Tiapo Cc: Alexander Shishkin Cc: Ian Rogers Cc: Jiri Olsa Cc: Mark Drayton Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Song Liu Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20190702173716.181223-1-nums@google.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/mmap-thread-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/mmap-thread-lookup.c b/tools/perf/tests/mmap-thread-lookup.c index b1af2499a3c9..7a9b123c7bfc 100644 --- a/tools/perf/tests/mmap-thread-lookup.c +++ b/tools/perf/tests/mmap-thread-lookup.c @@ -52,7 +52,7 @@ static void *thread_fn(void *arg) { struct thread_data *td = arg; ssize_t ret; - int go; + int go = 0; if (thread_init(td)) return NULL; -- 2.20.1