Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4880042pjb; Mon, 27 Jul 2020 07:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0unj6OYOqaOcskyEqES8w213yEjfv1Ag01ZII0Bqk0Ef7Cf74gchsZNQADztJxdl5RnPx X-Received: by 2002:a17:907:aaa:: with SMTP id bz10mr1299782ejc.304.1595860104001; Mon, 27 Jul 2020 07:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860103; cv=none; d=google.com; s=arc-20160816; b=dG/OUkTFLonpBQdtuB2/liN4bVgd5oz2NGNgLhB2KpuAMguGx2VQ6sk0BrWib7knrk j7fWV28/tdvFp9jIyi6+9hn6mkvABFLFmMCyC45TzcLvNoUqjelA2+G16Eu4cSATXg0S vR7cgMFpVwoAzEgg3UucsHICU3n6GkZ+Q2HSXtbOkTbhNFizJix8+xs/G7fKh2QUunaN szAHW/TE7VeD2jURNEUh5zOzm22OD0RTJ9oji9UeO7X1t9J8JZSn8/llICcd3ywpSMuK cV+ZIb7HaZDNvcXT/Hmj6/PCBMKDY+91Lj3rpXyOIB31ReECPvVsdfqkpqnaXAYwtpmn ou2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:reply-to :dkim-signature; bh=bBPiWpmvszQsJYazix7aw8Q3CRYzdbgoJ1MleC+SqmA=; b=S9AG8NPSLg4iB0I070RrFP2g0n/zjJrZ78YSs0yDBZaC9tGhR+UVgCCBflbs/iBHWi gF+m6hjlpZGijtJKek9JXIajcRYLbyGZDM1opv5A2Hk5ElNvJtu3vgpD3jS/oGWfRW/y RtwR86wgQxPlo4JRKa0WnREDkaaj9ZwMaB10XPPbVl2NeQRJcwOQCI4xN3iPzZaY1oaT /LiLAuv0tnQr/1TPTsbNyreqnEvSTRsdwZaRRNRJS41UfZoDaevjuIpDt+ehI+CvPSrC WBEEa1dIV2dZwXkzb6He8C6qEZ5e14B8POw6iLpghUEhDUmzW9bJAF6XVVRdhfcMkjg0 ZLPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ba3d19+U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q26si2508571edw.453.2020.07.27.07.28.01; Mon, 27 Jul 2020 07:28:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Ba3d19+U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732649AbgG0O0t (ORCPT + 99 others); Mon, 27 Jul 2020 10:26:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:57084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731716AbgG0O0r (ORCPT ); Mon, 27 Jul 2020 10:26:47 -0400 Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E13162070A; Mon, 27 Jul 2020 14:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595860006; bh=3q3aEvkOWiyK/JAYa0NlVQTfByTdnWrmwbJusoQnCtk=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Ba3d19+Ucyy3t3SQYDWxJ9JKLAegwBcKodi7BsAA/AhncaHRqfXULqGuksyXUPlYn YtgTYAkcb9n20NUyNbj45Wu0UXAXyoOrpM3lPNC9L4UZ/cdTg+CPOAZgR9jBp27rX4 iyy/yVN5HAPKArp5HkHBg99wIvCtt7R6YkPCe4uM= Reply-To: kbingham@kernel.org Subject: Re: [PATCH 4.19 42/86] scripts/gdb: fix lx-symbols gdb.error while loading modules To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Sasha Levin Cc: stable@vger.kernel.org, Stefano Garzarella , Andrew Morton , Jan Kiszka , Linus Torvalds References: <20200727134914.312934924@linuxfoundation.org> <20200727134916.556617777@linuxfoundation.org> From: Kieran Bingham Autocrypt: addr=kbingham@kernel.org; keydata= mQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5Eqo4t6qEVbuettxx55gq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bEYX0YQnzaj+jO6kJto ZsIaYR7rMMq9aUAjyiaEZpmP1qF/2sYenDx0Fg2BSlLvLvXM0vU8pQk3kgDu7kb/7PRYrZvB sr21EIQoIjXbZxDz/o7z95frkP71EaICttZ6k9q5oxxA5WC6sTXcMW8zs8avFNuA9VpXt0Yu pJd2ijtZy2mpZNG02fFVXhIn4G807G7+9mhuC4XG5rKlBBUXTvPUAfYnB4JBDLmLzBFavQfv onSfbitgXwCG3vS+9HEwAjU30Bar1PEOmIbiAoMzuKeRm2LVpmq4WZw01QYHU/GUV/zHJSFk Message-ID: <7675dec9-7b66-b785-5034-22e8ede0b597@kernel.org> Date: Mon, 27 Jul 2020 15:26:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200727134916.556617777@linuxfoundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, Sasha, On 27/07/2020 15:04, Greg Kroah-Hartman wrote: > From: Stefano Garzarella > > [ Upstream commit 7359608a271ce81803de148befefd309baf88c76 ] > > Commit ed66f991bb19 ("module: Refactor section attr into bin attribute") > removed the 'name' field from 'struct module_sect_attr' triggering the > following error when invoking lx-symbols: Has ed66f991bb19 ("module: Refactor section attr into bin attribute") been backported to 4.19? It doesn't /sound/ like something that would require backporting unless something else depended up on it, but if it hasn't been ... then *this* patch shouldn't be either... Same for 5.4, and 5.7 that's just come in. This patch will 'apply' cleanly, and not hit any compilation errors, as it only changes python code... so my reason to highlight is in case some automated system picked it up based on those assumptions. If ed66f991bb19 has also been backported, then I'm sorry for the noise ;-) -- Kieran > > (gdb) lx-symbols > loading vmlinux > scanning for modules in linux/build > loading @0xffffffffc014f000: linux/build/drivers/net/tun.ko > Python Exception There is no member named name.: > Error occurred in Python: There is no member named name. > > This patch fixes the issue taking the module name from the 'struct > attribute'. > > Fixes: ed66f991bb19 ("module: Refactor section attr into bin attribute") > Signed-off-by: Stefano Garzarella > Signed-off-by: Andrew Morton > Reviewed-by: Jan Kiszka > Reviewed-by: Kieran Bingham > Link: http://lkml.kernel.org/r/20200722102239.313231-1-sgarzare@redhat.com > Signed-off-by: Linus Torvalds > Signed-off-by: Sasha Levin > --- > scripts/gdb/linux/symbols.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py > index 4644f1a83b578..aa4f87e3ddb12 100644 > --- a/scripts/gdb/linux/symbols.py > +++ b/scripts/gdb/linux/symbols.py > @@ -96,7 +96,7 @@ lx-symbols command.""" > return "" > attrs = sect_attrs['attrs'] > section_name_to_address = { > - attrs[n]['name'].string(): attrs[n]['address'] > + attrs[n]['battr']['attr']['name'].string(): attrs[n]['address'] > for n in range(int(sect_attrs['nsections']))} > args = [] > for section_name in [".data", ".data..read_mostly", ".rodata", ".bss", > -- -- Kieran