Received: by 10.223.176.5 with SMTP id f5csp2973581wra; Mon, 5 Feb 2018 13:21:47 -0800 (PST) X-Google-Smtp-Source: AH8x226jIjWYG/meYADIEAhFq78z9Cy72OHE97yVsgULTJpB42gZl1c4nyTNnh7osjKkSNhEP4Ft X-Received: by 2002:a17:902:229:: with SMTP id 38-v6mr137914plc.429.1517865707633; Mon, 05 Feb 2018 13:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517865707; cv=none; d=google.com; s=arc-20160816; b=cmhYTCAcK+u6AKnzU8YWUYYbVOL6WThc5aPraP28XHKKXvVHPl0/NOX0BqndCCHgj2 XhcYppdr/vm4+T8yRVeDVwNNwIcB27ax3W+qdtqQ5qZhsnsxZfKIjSP1JJ1vaOInuMQb vSTNMxP2XCr3e/MW/n6ntQj6XsZSdVtbDWJ94PWre8PMnFmleQsql0B0VQ6iUYEWLi7m KYSXa0MFewa2A4Y2CEBp2TBbmnqBBTsucP3xpoutj4JfVO/sC6g65YGUPDiSLwJmHpwe kPp1lUxhwmazI+mXvp6aESYjrV5tSpmJC4ScEE2wIAWNbvtVRNLgx7Zk3LWiIRDsi1Ye 0fVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Uj5i5ojDc6larsE7utJUof1thZcd25DXTyQZoQmkoTo=; b=GG+Vbf9j+9XUdwD344vavIY4GnQOX2H31Cg+p6MlxMNRmQNRBYB134hmQtyavIVmT8 xH55c8ZMdGwBhexyKPGm3wRMkScZV8rbmptRTNvtTaXVmUp1IXw9VJ6v7hes4ewQwaBg p9OJihVMcdWpf3HkdOu9gEi1MUbqzd3ny7nH7ib+pkCQxI/g+MNbAeKiwMMxB2L5xzlb sCqbQU0R0M1WtMtl2R/WpMfkCsQD7ZJzdsDLlwfviBywFEBuA22DM+1v8Jc5LfjfbuAS NYU4psf5KaRd7Ee6cqNZS42vJTDnhq1gFMgmg/PJUMAw7KDXG2V6o+HnqL5VAp95XZcj g4pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bNepffLT; 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 o4si419708pgf.441.2018.02.05.13.21.32; Mon, 05 Feb 2018 13:21:47 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bNepffLT; 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 S1752011AbeBEVVK (ORCPT + 99 others); Mon, 5 Feb 2018 16:21:10 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:32957 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbeBEVVH (ORCPT ); Mon, 5 Feb 2018 16:21:07 -0500 Received: by mail-ot0-f194.google.com with SMTP id q9so17282736oti.0; Mon, 05 Feb 2018 13:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Uj5i5ojDc6larsE7utJUof1thZcd25DXTyQZoQmkoTo=; b=bNepffLTEiOwRe1X9H1pd9WyvLyuzCYG/Pe7lS5p1SGGhT05Y9s8iYruB8dWneD0Ci piXY0FxdHTdHx0rXGVHTpbBe7gTwZXPFiZoFx1iilW0JODjRIK4CBur/UtRuxjX6T51M CRJADL392Q2P1GFYJUg5r3ZwoqqnnTuKyj8nKX5aSdLbCkS+dd6YYUpYYEKLb1jr3IPp GXYO7u65SU9tunRjDT1bmXEdjWb0t8FW8+VxitkUldZ5J00mRuTT2mE53V/CdCxT39Zc 9SQr/emRjEL+wnuzRavw2zuc0Ypz27+XaVtBvbArJpaESCYtjGIYuTApeUZbJuOI8+vy ZAVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Uj5i5ojDc6larsE7utJUof1thZcd25DXTyQZoQmkoTo=; b=X7HchujxD0QLJeNb61D2+n/aTv/oBoGpWvgG3gvQdUUEYtIRGK114qJtrrNIc+GSsu DCYWG2kmonhS2zTDBLwXOL5DD2GP/d7l28m3DW8SxEiEaRqJEuZ5dHalEX1ff5bbmZgK yvqo2qNuNRlDmzxQFnf2LaTu2HlCBuLMkERUtAm80PcDCiFD5O5lX6os1TQGkClCKnHZ a0U3XSW07mDNwu2jfEJmdHsaTbDkUSSySs0KsF3abqURR6iQhE/QtLE/3OWMryrgTyhE gt1fqh7WPl3f3Us6QbFCb6DE5mad3E5Vn46A1uQoMlaizHUUAMR9cOzWSc7AD5RQx1wE KGNg== X-Gm-Message-State: APf1xPAQPBEKtixkGFLkGpTKmDazzoBQ9Ek/sEVozrB4W53zvnhIoRN0 ehk49NnkwO7VbNjgJXHOFn9Zdx5JUE7RPDktLis= X-Received: by 10.157.69.6 with SMTP id w6mr128671ote.351.1517865666737; Mon, 05 Feb 2018 13:21:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.68.33 with HTTP; Mon, 5 Feb 2018 13:21:06 -0800 (PST) In-Reply-To: References: <20180202145634.200291-1-arnd@arndb.de> From: Arnd Bergmann Date: Mon, 5 Feb 2018 22:21:06 +0100 X-Google-Sender-Auth: cCAdOmzGGHRfw6Ong-N8TPPwBdo Message-ID: Subject: Re: [tip:x86/urgent] x86/dumpstack: Avoid uninitlized variable To: Ingo Molnar , Dave Hansen , Josh Poimboeuf , Thomas Gleixner , Nicolas Pitre , Arnd Bergmann , Vlastimil Babka , Peter Zijlstra , Andy Lutomirski , "H. Peter Anvin" , bpetkov@suse.de, Linux Kernel Mailing List , Andi Kleen Cc: linux-tip-commits@vger.kernel.org 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 On Fri, Feb 2, 2018 at 11:36 PM, tip-bot for Arnd Bergmann wrote: > 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") I just noticed my annotation got lost when I sent the patch. I originally meant to ask Josh to double-check whether it should be 'false' or 'true' here, or if we maybe need a larger change. Josh, could you take a look? Unfortunately I did not really understand your original commit, so I don't know what the safe choice is here in those cases in which 'partial' is uninitialized. Arnd