Received: by 10.213.65.68 with SMTP id h4csp2129802imn; Sun, 8 Apr 2018 20:28:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48HJJGaRen0pNMMSvT3iQ8LeN6vtVNctf6TU5o9NJbLb8LVU+e5rKapXzOr5F7MXfzBZ264 X-Received: by 10.99.121.73 with SMTP id u70mr24494121pgc.232.1523244503169; Sun, 08 Apr 2018 20:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523244503; cv=none; d=google.com; s=arc-20160816; b=JFrFjPzsIVgkGduUbr4SbSBM0z/7hlpRy+c1hNuYR1lQHsbc0U38O6Kv7CwJtkGtpN lVIJl22Y12ci8VvplLFV9UkvehzO+vcO9fEpC83+Lcnc1LyHIEUxD0BSTz+oB1zrhClj JExYRmoZYSmUEUlWqbmoHAEJl6Gr0qXP4bDyGdIZKuiSCUoNqKAumwvODuSAHIgjwPUp fQPIrwV417qpM6B+yYPNlzX67D8NBEY4AFevKprN/+yFknbW9d+R3x4pMMYrcn/noT+S XBm5ZgHfoNXiakX6V57lvgm+lmwdhX5bMkhynC9ttAaYRAX3D69EtZpunUNyOinh/zcP oxiw== 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=9w2DJQTQucSWZDjTkdGVxAIolNfcXgFJrfOXDJGKgho=; b=s0/nbSJ8YpYg7taDnfJKs+7JugkOjUJjB1Ot/rSruDmEYu2kYUe6nreZ9qYx1NIN5o Ux0nEGPAtn0hp6ZlRHhCqxFI1Yavmtorti7NWTKzb6J1UMe0TBOGRqkekyg9R3vcgosi JIlLqeXX90nQxFXK/XY86JuefQn6dtCPkspx3Rryeuly2WpEH2i7g5RP01mfxUNC9OIf DK6in0ZXuVwfAtP+yvKV4J1oDiwjWFKgMc8gIUYmbBXytMg+5sVzTGX6Bm4qqvOf6y9k Pp1IuHxsiCHLiVl1i68c/zksW3lRcDmgCKQG8VxAPrWhiDwkIOh73rcmA6qe3VkDGPFL VYxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=CI3s+I0R; 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 d11-v6si14778052plr.406.2018.04.08.20.27.46; Sun, 08 Apr 2018 20:28:23 -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=CI3s+I0R; 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 S1752564AbeDIDYE (ORCPT + 99 others); Sun, 8 Apr 2018 23:24:04 -0400 Received: from mail-sn1nam01on0122.outbound.protection.outlook.com ([104.47.32.122]:20813 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753402AbeDIAWr (ORCPT ); Sun, 8 Apr 2018 20:22:47 -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=9w2DJQTQucSWZDjTkdGVxAIolNfcXgFJrfOXDJGKgho=; b=CI3s+I0R9ptrpCPvFEo7rn57M4QN3Evkd158aVgi/S3vPAqhezr80LAkNDEFTGFdHPix32bdbButOr3jOuVEVfQcCrbTy0rFxbIDxd22nytJn2HJ5vm5M43UDhYUhzw2CBQSNZYNvmdAvW5mt75/otxGTrR/6zPfXRoPep5T5AU= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0966.namprd21.prod.outlook.com (52.132.133.24) 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:22:43 +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:22:43 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Nicholas Piggin , Michael Ellerman , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 030/161] powerpc: System reset avoid interleaving oops using die synchronisation Thread-Topic: [PATCH AUTOSEL for 4.14 030/161] powerpc: System reset avoid interleaving oops using die synchronisation Thread-Index: AQHTz5iDy9+DM4TMtkCw8qRVLERjbA== Date: Mon, 9 Apr 2018 00:20:06 +0000 Message-ID: <20180409001936.162706-30-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB0966;7:I0mvJcf2nC9jUk5jOALrgsiEAHib9cVr9NTCk4Ql98xOr9UhHyiQ6uhxT1NhvwfgjCGtWLfKXedWvG/QiDtlhdzJOYU7VxNApTIrSVrFKa3qW1lKW7I8xbr2FW3hQ45RJxyq39Yu58QpaqqPQu6SsMcPjIXM6tou0ZYsMXRI9favoeiPRJDVH34MLg7spRgPh8XjlG+A1yPak6aim4xaeeGu3a85HRQGZonHKkA/jc8fHOoleZIrrTDiGqTOMaDb;20:VMx9LsqZAICqvjxvAT5m2Cuh5hitgmavhG1liNekJOZuANlAsLbu1Q6npAbZ8hm4Db3ySC3fdj3AiVaqL0cL5zQf/BgHoVBQMeYe6K9NRIBW1NQFFddHJt6+80KcxjqqqnuGb1Nv4YCMUch1v89K6GjVv2Y+YNcWtgHVsekMElM= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: b715215d-ccd0-46d3-a737-08d59db002fe x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0966; x-ms-traffictypediagnostic: DM5PR2101MB0966: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(20558992708506)(89211679590171)(85827821059158); 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:DM5PR2101MB0966;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0966; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(39860400002)(39380400002)(396003)(366004)(199004)(189003)(6512007)(316002)(59450400001)(6436002)(186003)(6666003)(2900100001)(8936002)(486006)(6486002)(6506007)(10290500003)(81166006)(22452003)(25786009)(1076002)(81156014)(53936002)(106356001)(10090500001)(5250100002)(39060400002)(107886003)(102836004)(76176011)(8676002)(66066001)(2501003)(446003)(476003)(36756003)(99286004)(575784001)(478600001)(86362001)(72206003)(2616005)(68736007)(5660300001)(305945005)(3846002)(6116002)(26005)(86612001)(14454004)(97736004)(3660700001)(4326008)(2906002)(110136005)(54906003)(3280700002)(105586002)(7736002)(11346002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0966;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: 1kSDzJ1syfpTRayAigsdwZpLgO12NgKkJWVfzWtj9RrSK/yP90pMjkAiHs8fYzvJysBVL67NvzSoG5Cv/l5nmsFe//3/60JYmeKi7/9+ZU2+ET76gehXX9ML1Nj5UU0I+lDvgMPdxZvUEW784T/cgoAtl3xOjNS9jErUHPLBzBciyV2F5CSctgAQQYj5XkBORlvl+cOeoYKqsh2MjQ8gyxh0xH+lGHx2486Qe3YAhPJ/RWc6be4+XsgAMY2ayyI9dD5BGpE3lmPdrIclR+fVmTg9qNJrPg6WGWdzcF/hAnd9heQgbhfvE+WuYMrG1q/8By84X2LQY442BPaFJO5LYZ/ucf+PhfCFh5nvWUj4fG79zYGTVuVjWVtDppRynk/Hf9aCb9glALmM30sTckD+wiBIOOjGP6w1fv69j4ykb98= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: b715215d-ccd0-46d3-a737-08d59db002fe X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:06.8478 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0966 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Piggin [ Upstream commit 4552d128c26e0f0f27a5bd2fadc24092b8f6c1d7 ] The die() oops path contains a serializing lock to prevent oops messages from being interleaved. In the case of a system reset initiated oops (e.g., qemu nmi command), __die was being called which lacks that synchronisation and oops reports could be interleaved across CPUs. A recent patch 4388c9b3a6ee7 ("powerpc: Do not send system reset request through the oops path") changed this to __die to avoid the debugger() call, but there is no real harm to calling it twice if the first time fell through. So go back to using die() here. This was observed to fix the problem. Fixes: 4388c9b3a6ee7 ("powerpc: Do not send system reset request through th= e oops path") Signed-off-by: Nicholas Piggin Reviewed-by: David Gibson Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 13c9dcdcba69..d17007451f62 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -336,7 +336,7 @@ void system_reset_exception(struct pt_regs *regs) * No debugger or crash dump registered, print logs then * panic. */ - __die("System Reset", regs, SIGABRT); + die("System Reset", regs, SIGABRT); =20 mdelay(2*MSEC_PER_SEC); /* Wait a little while for others to print */ add_taint(TAINT_DIE, LOCKDEP_NOW_UNRELIABLE); --=20 2.15.1