From patchwork Mon Apr 9 00:18:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 132994 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp765518ljb; Sun, 8 Apr 2018 20:43:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+7gA1QUIBm6LeAXYbl9PvEzD7niSOT0EgxX+4BaapVkEQyxLYItxVxsC0jTpFwMoxGxiWn X-Received: by 10.101.65.195 with SMTP id b3mr23895670pgq.118.1523245428638; Sun, 08 Apr 2018 20:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523245428; cv=none; d=google.com; s=arc-20160816; b=eFjT5dA9FaG3TQJJ2kJgbZnZSHvmvgwBYtbfDxEjjBCvFBMxuPAde3ZghQHl2xfcoq Do3tJPS/v8ar3AwzIfhzogalsNLiQl8v73w0YwCMdReR0+RHSvFWYlupdaUhLxEcqB4O 7hK+HtyH1onw88A1V4A9lI4JARBve3KyOXPAgAE8jyvo1MWmjEMgtpLTDosd06gS8zkd jwxM6R8I22fh+MXwoakehXjUvAfH64kiK5HnAyFiKVk/BS3NaaQb+cZE4s6ZomTrvKhz gAlkz6jxELri/sVZJ6jV9GCJVbR1In2/8oxcivB+j2ZhvFLMCXFrevBfqdtm929W9Tnk efNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=kEbeKIWgUCGqWIDBLL4m+5ADVnQGu8x9ekPXTk31yvc=; b=sygf9xgeZdcEd0tsRMXR1dcjnjF4k0XlQJDFDrropcHcnre8jtu1Tc6p+IfNzx3sml AMMvEh2Nrk8m6Mt2ZSa7y1Eo2rR/eMu4lk7jtp4UNeuAf+Y7XTYxkQQPb+WK67tGE3tj eyvKq2hAeLcZdG5aXEyNHAv6s30kNv66hCKUzgHVQghxywWsprngjYLoiVxJ3AoOTABi Q6Mbw5UjqWWuyjg6bdqpJwaoe31A9LzZ+eRlMxFRllE2N95xBIO3b0p3rkmTRijPYoc8 noUIu4Woyw9Ix/jTyfRxoJrZWpujCiC6QAoOnHCBnVgxoA7tzXgwL2nvjCQTPCO3kxl3 +Ipw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=HjhCEDxI; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a92-v6si16132221pla.107.2018.04.08.20.43.48; Sun, 08 Apr 2018 20:43:48 -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=@microsoft.com header.s=selector1 header.b=HjhCEDxI; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754744AbeDIDno (ORCPT + 29 others); Sun, 8 Apr 2018 23:43:44 -0400 Received: from mail-cys01nam02on0123.outbound.protection.outlook.com ([104.47.37.123]:10471 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754237AbeDIAUc (ORCPT ); Sun, 8 Apr 2018 20:20:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=kEbeKIWgUCGqWIDBLL4m+5ADVnQGu8x9ekPXTk31yvc=; b=HjhCEDxIRBctTFsIwTA5LFbElR73MZZQC3cKH3Na8r4YFhw6QQ1NK9I9oFv9+gCUQw6MEZQZ5DMW46paYrnsTBnOg6bt0DDIdImCl4IADK8A1e0hKeA9xpC2/w7+WfVIgEGXkHBUuzu9C2w2Xb9/iL/MbBaG/ooS9EYLafN/Vls= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1110.namprd21.prod.outlook.com (52.132.131.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:20:19 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:20:19 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Arnd Bergmann , Thomas Gleixner , Andi Kleen , Nicolas Pitre , Peter Zijlstra , Dave Hansen , Andy Lutomirski , Josh Poimboeuf , Borislav Petkov , Vlastimil Babka , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 141/189] x86/dumpstack: Avoid uninitlized variable Thread-Topic: [PATCH AUTOSEL for 4.15 141/189] x86/dumpstack: Avoid uninitlized variable Thread-Index: AQHTz5hQkVxYcYH2SkeekWG29rcgqA== Date: Mon, 9 Apr 2018 00:18:41 +0000 Message-ID: <20180409001637.162453-141-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB1110; 7:q56VWK8qEWi82wX/ge/P5/1bctzcJNIY0mxw8Q2ZDHrGP8g741eyOHZ7b7DdcdTIewYfUPuX/XzCBagbHRYmO1Xumc0WabPjv+I6fh/SqvTvpKF/QHOGXyA+F1yH7oq5NMvn0N3hpfL4bpds1Ad/Z7GjXt0EhwXDrLDw3FBFCfTidLr3OXSi6nDW/2/JHLxINqym7rVLF7QzZ2B5eKG6BJ/jhUwZP1jZ4+TGJYIOAYwDpQ8I4mG7Hl/S/oUT5UFw; 20:DWegGj13jVKgwt/mjaRMXx0zfwUDjGFXCmgqUFjoq5BaQAv+eToAQmjVG78sp29Hg5hQtdbr4MrNpGaiKzjfRQDu9j1hUGpl/vfAB8VXUcF+E0gELuJqzMee99GmbG8QIvdLKS9SGo1KOAankFxv1xIaP/7jt7PdflVNVfbRggk= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: fcaffa6d-2c1b-4ad1-9b63-08d59dafad3f x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020); SRVR:DM5PR2101MB1110; x-ms-traffictypediagnostic: DM5PR2101MB1110: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(42068640409301)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR2101MB1110; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB1110; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(366004)(346002)(396003)(39380400002)(39860400002)(199004)(189003)(5660300001)(7416002)(478600001)(86612001)(3846002)(6116002)(106356001)(6486002)(72206003)(25786009)(10290500003)(8936002)(6436002)(76176011)(2616005)(6506007)(2900100001)(97736004)(486006)(26005)(36756003)(10090500001)(81166006)(8676002)(81156014)(59450400001)(102836004)(2906002)(99286004)(11346002)(476003)(3660700001)(66066001)(6512007)(575784001)(86362001)(6306002)(53936002)(966005)(105586002)(186003)(5250100002)(14454004)(22452003)(6666003)(2501003)(446003)(7736002)(316002)(1076002)(110136005)(3280700002)(54906003)(68736007)(107886003)(4326008)(305945005)(22906009)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB1110; H:DM5PR2101MB1032.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: k6qSu3NdU4WRY0OPAIxU0Hbgu2uuW4TfxOuMmTk+otnsS8aXC6JEt765NRzxZPKTPrjpFPOLTYmA7X+cmEYT8fqAt8mCsNH6MR9ehklMYX9qQujG++Z/DTMN5ITS5nMzeA8ffj2FEhcHiAjZDZodiFbTe7ZEZFXkf7/gBc0oO3yWrJu+8n/N62VDtyBEW/1HARcRzJaR8s45KqMJsfCvjdijbyYoT026D14WC0KPxrOKP4Ok8ozaKMsCOupr8vJS5vGozN/+1MCfivGzN9Mr7yw4IAxfbvpXZj5BYaG1DDRchWMHTXq1Xt6+O/FRP/a3JTWQx0/U/XG5vWYAYOq57AMUscnCZjMcUTHewTGUh+LLZ7/2huOEBHgW9DK7hUEsgMrQpiIkrVDjRY0JmMRwvAPBaP2iJYwVcUDmEdcwY10= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcaffa6d-2c1b-4ad1-9b63-08d59dafad3f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:18:41.6282 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/kernel/dumpstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.1 diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index afbecff161d1..a2d8a3908670 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);