Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp440155iog; Mon, 13 Jun 2022 06:03:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2959ecBhowiYPr4IP4+wyPbTm57lRbCT5cDeEVRd5DzumMaFM2LjYsaqve+wKb5f+/Fuh X-Received: by 2002:a05:6402:c44:b0:431:52cc:f933 with SMTP id cs4-20020a0564020c4400b0043152ccf933mr45296978edb.41.1655125337071; Mon, 13 Jun 2022 06:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125337; cv=none; d=google.com; s=arc-20160816; b=vvyaWQh7FHimIqtUCQJN1AfzhY3Dy08mI9rqnqLTQel5fPh6ycXbWQglhFDdNYGxVR WsCdAulevMMxrZX5zR6s97lZJGxQOMn7Mxv/kLyLwynzqR1s4nL5QL//SUotf+1hoLvo cbYlclkCpk+H7kYm2OGdn1M8+XHzL9hmA4isuBUU76bGkz7dwWrpisTe9kgWb1p71ZlW imPUhTur/h/pb6c7L7J9u/BYVWI0uyGSGiH8UGdIdSwIVlJypzuqdXNlRJw8OVCip2bb EaEZYSnTX16t6ImBIRUYfywZIfM8f8AieLZBvPstguZSFMP1D2mTe/kq3U0lGkUvwyKs 5BBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8L55PEOFo+2gKrhKGHnRwOauHfbWHn6f9ez/BMwsFLE=; b=IepjvyLUr2A7xCC0fExU2f1XchYtPot0+C562LI/TED3Rxjxj0eNzTRhoPoI2r11CU btqE7HJLCFgHsWhGh/hb9CnDsc9H1yDkhDUF5YuZedFmOlkUuKj8Zo76kw516CZP4N7j ADA84snolKIjA0mV42JQ6mL/sWCr9Yy0i2Vi+xmaCs5UMFYYGQsDX/snfgn4MY+aFK2T x+5hWcXPErhVSwyuA1RtoEtQSvDRC7bH00Zi1+Fjy9pTEYpQWaD+KEk0CNU6jOLh2MUl Dp7SwUklvv8lJq6sXBN9tWmzx5U91Iv439lraccuhXfvZl/Ua/GgMybL2ZauhOZ3r8XJ WZFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z4Xsj2El; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz6-20020a1709077d8600b00718ccb0a135si1205243ejc.507.2022.06.13.06.01.51; Mon, 13 Jun 2022 06:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z4Xsj2El; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357561AbiFMLya (ORCPT + 99 others); Mon, 13 Jun 2022 07:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355813AbiFMLtr (ORCPT ); Mon, 13 Jun 2022 07:49:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F27CD4D6AA; Mon, 13 Jun 2022 03:53:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 626EFB80D3F; Mon, 13 Jun 2022 10:53:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B90F1C34114; Mon, 13 Jun 2022 10:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117613; bh=k+/pVrIT8QfqIWbATLK3wlWEq5hh0GwRx7H7a3D01Zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z4Xsj2Elr2VEsZT6T+5XJ2q7n8+I1b6VPKA9WTHuotSre4xL0y4jIa5dr8bZ3DxK7 pCM3Ub6NOXgC70emscTWQPeGrqK8/W/z3MsQGlFAi6oZmzhr+S1EykUYmJAkkdhypX OsMdMJpd3+wfiFZh9UUNi6uzzZa44hV2i5Ujplk8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuan-Ying Lee , Masahiro Yamada , Sasha Levin Subject: [PATCH 5.4 399/411] scripts/gdb: change kernel config dumping method Date: Mon, 13 Jun 2022 12:11:12 +0200 Message-Id: <20220613094940.790327325@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kuan-Ying Lee [ Upstream commit 1f7a6cf6b07c74a17343c2559cd5f5018a245961 ] MAGIC_START("IKCFG_ST") and MAGIC_END("IKCFG_ED") are moved out from the kernel_config_data variable. Thus, we parse kernel_config_data directly instead of considering offset of MAGIC_START and MAGIC_END. Fixes: 13610aa908dc ("kernel/configs: use .incbin directive to embed config_data.gz") Signed-off-by: Kuan-Ying Lee Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- scripts/gdb/linux/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gdb/linux/config.py b/scripts/gdb/linux/config.py index 90e1565b1967..8843ab3cbadd 100644 --- a/scripts/gdb/linux/config.py +++ b/scripts/gdb/linux/config.py @@ -24,9 +24,9 @@ class LxConfigDump(gdb.Command): filename = arg try: - py_config_ptr = gdb.parse_and_eval("kernel_config_data + 8") - py_config_size = gdb.parse_and_eval( - "sizeof(kernel_config_data) - 1 - 8 * 2") + py_config_ptr = gdb.parse_and_eval("&kernel_config_data") + py_config_ptr_end = gdb.parse_and_eval("&kernel_config_data_end") + py_config_size = py_config_ptr_end - py_config_ptr except gdb.error as e: raise gdb.GdbError("Can't find config, enable CONFIG_IKCONFIG?") -- 2.35.1