Received: by 10.192.165.148 with SMTP id m20csp528622imm; Wed, 25 Apr 2018 03:44:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/FNrBtFV0oxrKi3QHQGQjYh/OGI7oSzvhW9acEYgOgDf+GK4iOygRnh0TlEUfmjfZMQ3W7 X-Received: by 10.101.98.194 with SMTP id m2mr18329884pgv.164.1524653045668; Wed, 25 Apr 2018 03:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524653045; cv=none; d=google.com; s=arc-20160816; b=tuCY2XmPkkAD/Wj3Ts4WhQ3Ufj6UiaUzk9qJ2xqRLcF/9rs7mrdaaSn43PH6bKoaRv 3aJjsL9ehdw83IXSNKqDX3Fsi2An6EAgbZbfiPb7KG261JnlXpdYS9fGe9uUWXgHtcNJ bynpktOZUd9U7azG0dQ/+lp8nSY8ZQpAlCZRYyXwxRfb7OT/4fdjXEQ1/GiMUyc6G6g9 J726+ArqIQnJsVcFm0mWbTHbZENrxBon4snJ2n+DJRPZBJCykd0voqjJwHsJA2md2D71 nK2WcNlze27b1zGDdCVVvsYLwpx9isnW/igaEQ/1cj0w9n4vWEaJd9LHNtNMGejb+IZ7 JMpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=H3Tjm+pldsUojv9NTuVO8PdhUoLdw7q3+cMg7OzTAB4=; b=eP2EPXOMSZQ2eP3uj2QDHEPM6lRXOb32GrBJSEClOdhyavuG2zif817L9DApfO3yLE CkxaFDwaMWvdx4CZTWWCEpNLosE6IDWv19p0IurDRjAsmpQGvAdkga3R9LXbagxrhzuv F4erYIhTuBbQWLVI9ayBqLJsVX4UpJf0zpPa26UVGTDUEUf1DK1oUZwdSQKM+OCSMKfu JZk/3eD2aqOVbnJ6UrqGKxJzNYBA1K7AeaeJRjBpEm7KfKsSWe20JvCigFU3UsaKIQHl MBEoWqQyghIlYRV5LUtg4sQ8Y4vjYl/N6lV78zJyd1hwROWWmTQpOPCiuOkPyxy1S1q1 OPKA== 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 s11si12943400pgp.680.2018.04.25.03.43.51; Wed, 25 Apr 2018 03:44:05 -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; 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 S1754115AbeDYKme (ORCPT + 99 others); Wed, 25 Apr 2018 06:42:34 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52658 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754084AbeDYKm2 (ORCPT ); Wed, 25 Apr 2018 06:42:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6EBCA36; Wed, 25 Apr 2018 10:42:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Thomas Gleixner , Andi Kleen , Nicolas Pitre , Peter Zijlstra , Dave Hansen , Andy Lutomirski , Josh Poimboeuf , Borislav Petkov , Vlastimil Babka , Sasha Levin Subject: [PATCH 4.14 128/183] x86/dumpstack: Avoid uninitlized variable Date: Wed, 25 Apr 2018 12:35:48 +0200 Message-Id: <20180425103247.573344833@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann [ Upstream commit ebfc15019cfa72496c674ffcb0b8ef10790dcddc ] 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 Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/dumpstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c @@ -109,7 +109,7 @@ void show_trace_log_lvl(struct task_stru 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);