Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3100976ybi; Thu, 18 Jul 2019 21:03:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXDvYuAXj4ofipfyZKXbWDZ60bNtXETk8EniaQusXDx1QQmtg13L0uLSz5jziFFuP597gx X-Received: by 2002:a17:902:8d92:: with SMTP id v18mr54897418plo.211.1563508988817; Thu, 18 Jul 2019 21:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563508988; cv=none; d=google.com; s=arc-20160816; b=DW2NBJlZaQ2/KQV6wbe6D0ZTXKi7MBZKuKjNsq4HuMH8HdZbWJ5F9m2zOZnvny+wp/ y9RhLtAup3eLAuL9V9baQZz15WnZN/xF3L6bcMMxyJ0cQRXkxjOG/vrEMTKeVZEy+xHT 1xPoF4z6RPSjwq9lVpc8P/cy6DwQANMnDItJhdQoh4gwBq8hYE0F3gVt9LBxl9ZegD5G KFPTYzeUBXqzkuOcNdpxa4h9f28961ap1JibXYzjMp066UKhnmQebp+kYDO+vur/HAp+ AtwLitdBX5gvalSqY3qYFE81Ks1Gf3E2l/jqmM3ottt4bjaIt86u1RYUXbRPP4sMZzIJ F9Hg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pqBe1jT1H5IV6bhLwLwhotbjczkW31eDubHInRAGKbM=; b=P0Q7KwxNsWiXBS5Wp+1PuJkpo54Z8y9/lZQt7Y2/Nsa2Rq9tOMZJjpFmd3LhhXEov0 Q6YWBpinP26BvNcKwoHQsQ6jca+g1YGROVyacDlnCSh8SLC9E5kZTxx9Ne3aB1p1anm2 uvE7qe3y4yzY+bmufR3mrT/ghsXc7i02jbYAeM/CCGNjC7Cvi4C2fwQs3eTzSc+hEVG+ T5WxMuVq8JHuN7laUn93Y5Oa978xiHQqw83N+Cp8LjP7IXIQGaTg56Qk6xrDnsnmRuT4 1R3GHmP72Vjc/Ei5PPXd8SN7/rMSrVCBPIzoTAf4XW2tcgrv7kl1RsehSHTnrSYtWCJ3 DilA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JGN151Zh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si126240plr.211.2019.07.18.21.02.53; Thu, 18 Jul 2019 21:03:08 -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=JGN151Zh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727625AbfGSEAx (ORCPT + 99 others); Fri, 19 Jul 2019 00:00:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:60596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729174AbfGSEAq (ORCPT ); Fri, 19 Jul 2019 00:00:46 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 56FD821873; Fri, 19 Jul 2019 04:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563508845; bh=L3bfEAAL0Ysgipi+GDxrm8gZDpiTXGOXWVgDY9UE48k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JGN151ZhWQ9mpF0caqcfJbOCVlkXLCmN8D6frK88+4gH4kgXiRcXUHQXi1JM0JmSq hjbGcESaYHqlLZcUhBy6wS06VHsTT18hFJ4CrlC4mXfZ/+ldWTH5nYJB3vSb7VALZM Vt3KwcB7L8bDwKxO5pcvlibVx55pdRB/i7bfF/u4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: 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 AUTOSEL 5.2 122/171] perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning Date: Thu, 18 Jul 2019 23:55:53 -0400 Message-Id: <20190719035643.14300-122-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190719035643.14300-1-sashal@kernel.org> References: <20190719035643.14300-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Numfor Mbiziwo-Tiapo [ 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 ba87e6e8d18c..0a4301a5155c 100644 --- a/tools/perf/tests/mmap-thread-lookup.c +++ b/tools/perf/tests/mmap-thread-lookup.c @@ -53,7 +53,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