Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3482492pxj; Tue, 11 May 2021 05:38:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4q91kTNEO0ubU++V+g1kgAI3qgH/oA3+At8io8Th0S1tu2APHkFPig5CTEIajcwgqUimz X-Received: by 2002:a5d:8b56:: with SMTP id c22mr22254723iot.84.1620736705102; Tue, 11 May 2021 05:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620736705; cv=none; d=google.com; s=arc-20160816; b=XPOqo3OKjsuI7HgahxuQXp2n2ti4y0Cygi9j0SSEzBTT85SpfgDQg1yLOHIhXllDEF q8XWWLgvi1ui63gaL38xepbINGOI2FgybOLEN+rHLe/wkcDtSdgHUG0A+X5/G/gfZLQy Sm5w5OLbJliZe8wsU2QFm7lf8U1Y8matzCm1Jk+/2zUHIu1ZQt2cBnuJbNbN+oYF815h jAtAZiyHikOvyGq2McJDHStK/vY8l0+n5Px6eIqap0MtELLUuT72bPt14yS6SucT7rkF pv5yAQ0C17X9cai+vZhMfwPRIbLUh4NsudZlzQYdfAe0+Bt3kU9GRyAT1G+WlwUKj5BO RE8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=LvTxKiHFqu0KOtiQ1iAEGoymP+MtPo3TpOXMhfMxd/A=; b=1EOvvDAKNYmb0Cv2TA8EUygEBfzBkVj2IpZDokbE7tzQjS8liQkYL3zpItMIQShPSi oRxbdW+5rcZ/myFugEjbWW7Vaf76M5BuT0+ueXxDaUgQ6Uhalz3ZZxqFET9GFsIMsBeS L++3DmxoDV1lmu3tP6Hb8c+c9kDCKpf0hhsOyBc5+vNhJTM+virBl71WkO0H/cIWT18o aS9X7ndtVoVFtZTsAYE8d6z2tc3n3mSiaTpC07NgKg3XkWw2N6t1C1sfMv63ZVQ/25BB cEzoJcX7Tt7or4DX87/Wo4w1c4JfaD75cDU6O6E/Sv8JWEp1X7BKCks8pL95kopkmfUC V0eA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si17122447jaj.15.2021.05.11.05.38.11; Tue, 11 May 2021 05:38:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbhEKMhU convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 May 2021 08:37:20 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:34740 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230436AbhEKMhT (ORCPT ); Tue, 11 May 2021 08:37:19 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-102-AdSWJMpLMF6zU1JX4ZDi6A-1; Tue, 11 May 2021 13:36:08 +0100 X-MC-Unique: AdSWJMpLMF6zU1JX4ZDi6A-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 May 2021 13:36:06 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.015; Tue, 11 May 2021 13:36:06 +0100 From: David Laight To: 'Stephen Boyd' , Andrew Morton , Petr Mladek CC: "linux-kernel@vger.kernel.org" , "Alexei Starovoitov" , Andy Shevchenko , Baoquan He , "Borislav Petkov" , Catalin Marinas , Dave Young , Evan Green , Hsin-Yi Wang , Ingo Molnar , Jessica Yu , Jiri Olsa , "kexec@lists.infradead.org" , Konstantin Khlebnikov , "linux-arm-kernel@lists.infradead.org" , "linux-doc@vger.kernel.org" , Matthew Wilcox , "Rasmus Villemoes" , Sasha Levin , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , Vivek Goyal , Will Deacon , "x86@kernel.org" , Christoph Hellwig , peter enderborg Subject: RE: [PATCH v6 00/13] Add build ID to stacktraces Thread-Topic: [PATCH v6 00/13] Add build ID to stacktraces Thread-Index: AQHXRf4HnT90HedmH0WFx6bjKadex6reN/jQ Date: Tue, 11 May 2021 12:36:06 +0000 Message-ID: References: <20210511003845.2429846-1-swboyd@chromium.org> In-Reply-To: <20210511003845.2429846-1-swboyd@chromium.org> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Boyd > Sent: 11 May 2021 01:39 > > This series adds the kernel's build ID[1] to the stacktrace header > printed in oops messages, warnings, etc. and the build ID for any module > that appears in the stacktrace after the module name. The goal is to > make the stacktrace more self-contained and descriptive by including the > relevant build IDs in the kernel logs when something goes wrong. This > can be used by post processing tools like script/decode_stacktrace.sh > and kernel developers to easily locate the debug info associated with a > kernel crash and line up what line and file things started falling apart > at. > > To show how this can be used I've included a patch to > decode_stacktrace.sh that downloads the debuginfo from a debuginfod > server. ... > Here's an example lkdtm stacktrace on arm64. > > WARNING: CPU: 4 PID: 3255 at drivers/misc/lkdtm/bugs.c:83 lkdtm_WARNING+0x28/0x30 [lkdtm] > Modules linked in: lkdtm rfcomm algif_hash algif_skcipher af_alg xt_cgroup uinput xt_MASQUERADE > CPU: 4 PID: 3255 Comm: bash Not tainted 5.11 #3 aa23f7a1231c229de205662d5a9e0d4c580f19a1 > Hardware name: Google Lazor (rev3+) with KB Backlight (DT) ... > x1 : ffffff93fef15788 x0 : ffffffe3622352e0 > Call trace: > lkdtm_WARNING+0x28/0x30 [lkdtm ed5019fdf5e53be37cb1ba7899292d7e143b259e] > direct_entry+0x16c/0x1b4 [lkdtm ed5019fdf5e53be37cb1ba7899292d7e143b259e] > full_proxy_write+0x74/0xa4 Is there any way to get it to print each module ID only once? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)