Received: by 10.223.176.5 with SMTP id f5csp1293862wra; Fri, 2 Feb 2018 14:54:08 -0800 (PST) X-Google-Smtp-Source: AH8x2255YWegGF/IQsON5l+2wonfDQF9s2EKxxWH5XdOnCUNsAnHlZkZrP9978urdLHYE611cygM X-Received: by 10.98.211.204 with SMTP id z73mr41685123pfk.198.1517612047958; Fri, 02 Feb 2018 14:54:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517612047; cv=none; d=google.com; s=arc-20160816; b=YsmK1MjY7Ak5Kk0J4LyuHWi5xFGHN4hvQs72PPJBk9p6w3SFwc/zLB1PwwhRnOgOi0 JqWizPLDqGQ/iHq1qx8gHYwuFJUax2dD6P3BPtsw2amN6JUVGC2n0xQpjaSDm/W/exND JE8h2xG0ZcBpmxT58k26NvLdncbaELx9Bp7vLYyG/U99pguZh/+FVKykrF6qK3Gh3E1/ 9IzVw1AAOrJnj4+wReazFfPWcKHVDjOYENZRYs7DBvU4ZBb6GKEgzRAvNRG3WXcSJ9Vi dnCyF7riqzxON5CchGSoIJLmWSFeulBhltxyJrn8ck5x8FMzKtLBl1rMrfGPpPs9aMmf tcCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=v/5h9AG4N9/GkmCZTWsp1xbD3hfilzjByWbj4S2svvI=; b=NjoIKVs4t5biOGqH/s9nrSHFeVF2pVaOPTruXfzNJaExWuFWv338etjI6+GeHpmRKU qax+zFDhPrrLLUZlxjwpm5kqPWMsUHZ7lWWSa8iex+x4oOB6up7ZIsEYxXyKw6mkh0Xt Q1A9L6GazOILqO0/arujNpZJ9k/8DqlvGBtE92PQ1JPTpkfktoaxH8JShFMG/w1KN4Bg 4SIRZIaMRzPKQQjEGdHGHR1CTRWGGZTcsp8/WNzqYS78KtAGG7OHlDW9X57zeg6REn1p qmLfB/+Jt0yrALKB9UYST9C74qYlTpKYxpBTJE7DhJW4UmOSNDGgAggoO/o6LTDrAImp XaMg== ARC-Authentication-Results: i=1; mx.google.com; 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 p9-v6si711809pls.317.2018.02.02.14.53.53; Fri, 02 Feb 2018 14:54:07 -0800 (PST) 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; 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 S1752038AbeBBWlY (ORCPT + 99 others); Fri, 2 Feb 2018 17:41:24 -0500 Received: from terminus.zytor.com ([65.50.211.136]:35541 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbeBBWlR (ORCPT ); Fri, 2 Feb 2018 17:41:17 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w12ManUv012934; Fri, 2 Feb 2018 14:36:49 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w12Mam3W012926; Fri, 2 Feb 2018 14:36:48 -0800 Date: Fri, 2 Feb 2018 14:36:48 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Arnd Bergmann Message-ID: Cc: tglx@linutronix.de, dave.hansen@linux.intel.com, jpoimboe@redhat.com, mingo@kernel.org, vbabka@suse.cz, nico@linaro.org, arnd@arndb.de, bpetkov@suse.de, luto@kernel.org, hpa@zytor.com, peterz@infradead.org, ak@linux.intel.com, linux-kernel@vger.kernel.org Reply-To: mingo@kernel.org, dave.hansen@linux.intel.com, jpoimboe@redhat.com, tglx@linutronix.de, nico@linaro.org, arnd@arndb.de, vbabka@suse.cz, peterz@infradead.org, luto@kernel.org, hpa@zytor.com, bpetkov@suse.de, linux-kernel@vger.kernel.org, ak@linux.intel.com In-Reply-To: <20180202145634.200291-1-arnd@arndb.de> References: <20180202145634.200291-1-arnd@arndb.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/dumpstack: Avoid uninitlized variable Git-Commit-ID: ebfc15019cfa72496c674ffcb0b8ef10790dcddc X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: ebfc15019cfa72496c674ffcb0b8ef10790dcddc Gitweb: https://git.kernel.org/tip/ebfc15019cfa72496c674ffcb0b8ef10790dcddc Author: Arnd Bergmann AuthorDate: Fri, 2 Feb 2018 15:56:17 +0100 Committer: Thomas Gleixner CommitDate: Fri, 2 Feb 2018 23:33:50 +0100 x86/dumpstack: Avoid uninitlized variable In some configurations, 'partial' does not get initialized, as shown by this gcc-8 warning: arch/x86/kernel/dumpstack.c: In function 'show_trace_log_lvl': arch/x86/kernel/dumpstack.c:156:4: error: 'partial' may be used uninitialized in this function [-Werror=maybe-uninitialized] show_regs_if_on_stack(&stack_info, regs, partial); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This initializes it to false, to get the previous behavior in this case. Fixes: a9cdbe72c4e8 ("x86/dumpstack: Fix partial register dumps") Signed-off-by: Arnd Bergmann Signed-off-by: Thomas Gleixner Cc: Andi Kleen Cc: Nicolas Pitre Cc: Peter Zijlstra Cc: Dave Hansen Cc: Andy Lutomirski Cc: Josh Poimboeuf Cc: Borislav Petkov Cc: Vlastimil Babka Link: https://lkml.kernel.org/r/20180202145634.200291-1-arnd@arndb.de --- arch/x86/kernel/dumpstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index afbecff..a2d8a39 100644 --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c @@ -109,7 +109,7 @@ void show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs, struct stack_info stack_info = {0}; unsigned long visit_mask = 0; int graph_idx = 0; - bool partial; + bool partial = false; printk("%sCall Trace:\n", log_lvl);