Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4132849ybi; Mon, 29 Jul 2019 19:59:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFyKPNGCCTMaGKvlzA+lHlPFGaPM8oaepQesXmg8BHP4i53yaARiabzzGGNJq3/s54jAGq X-Received: by 2002:a63:7887:: with SMTP id t129mr21843256pgc.309.1564455572564; Mon, 29 Jul 2019 19:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564455572; cv=none; d=google.com; s=arc-20160816; b=QPY6G+BV15KIr1MM5bWVyZAMxcWtE1vuF4XAw4NgOjNFnnSx/lWlDhZ0ez6W6rsHMO I/M2vQ0Vu4T76CWa9ILjmsvOwRjRzK6wFrOftOjA59Z9nTI/tNWkGBX3nDwn53qsct2Z Md6OFpC9762maMawt/taMMi3RwT14VXWoheVZgK/8AC7ShYa26MzgJXMXQBU+uebSoo8 oFbAP+B7y9PG0qjDkiCTJAb717DPOXEuiqL6U5L1/2i/hgps20ydy9vnscs4ptQe1wjP LUVxhvjHUxfoeAsyAO37etARja+9uN16G5W5RugIE6tfaT7gf8ftYHz7dvPl3oShCxSs gL2w== 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=qAT6vCam+2CKaRs1aYjm1MBTWC0pN7TSIGgDVPDzXRM=; b=FlNNJCqiZGcbWTvvofOFmld017pnLx4bLdmmr9G8ae0LpS/5OFwtmpuqQxnmeVoWfy Z0oFDsON3eexKpMxOHFRkeCpH/t+LNGrX9IbyKBi4uhkvSKblNd/qQD681wX6iXag+TR 5d1J9KGALTYZnbHnz6CznxhWLLaH5Q/ytZdrG5XdhWgRTciwgh2PH+0hxvjPQrDf3rcy pgzBHdW+fBwT9eshLatv7pnFIp8eHIZhc2zDBlUziBRcitVbtzxpeHbQMd+sS5o07USg OCwpplt/D3a3fJin7vXP+K7PiwhMAjpphAsLGOI7f9wUJ2k2Ub+wKJYa6D/hZCLKKQ7z 2u0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m8k5+i4F; 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 x139si28176512pgx.251.2019.07.29.19.59.17; Mon, 29 Jul 2019 19:59:32 -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=m8k5+i4F; 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 S2390881AbfG2TxT (ORCPT + 99 others); Mon, 29 Jul 2019 15:53:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:44904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403809AbfG2Tw6 (ORCPT ); Mon, 29 Jul 2019 15:52:58 -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 BBB4B21773; Mon, 29 Jul 2019 19:52:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429977; bh=AdRfg07wYRZs/1CXoKUxgRtQxKpsPAOTu12g9s8NZcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m8k5+i4FkLIxI66kTEQiLfhb7w0c/wWu/ytGdDHDt71rhwG6Xo8npTdOeuUNm9ejb RnSS2mVoNw56pLHvoiZ/euWgl/49LTWQ3kitGpXkdE5NsPlb4SNnc/6PDpSXxk+mEo QG36imUx619/1aKEGT4NuxLy3MUXwc1YDTLBEVF4= 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 5.2 119/215] perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning Date: Mon, 29 Jul 2019 21:21:55 +0200 Message-Id: <20190729190759.712792229@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@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 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