Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp376569lqr; Wed, 5 Jun 2024 08:32:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgGzZeQyOVtMY3M4ewn1w3N9ZjVUCRnev9HNzjZIUyR/jH4jxyye4MdBV6Z4yPoQkZ91SZ2KiYl3S3dkLq5D7XiwYJ45nqrVD3uF4D3Q== X-Google-Smtp-Source: AGHT+IHPG1TaHuN6ZTLCi2EHN+wcqHKQD/OixO8YDn51o6wY9Buv7aVTXs1ANz2o50UVjrXBptrh X-Received: by 2002:a50:9559:0:b0:579:c3f8:591c with SMTP id 4fb4d7f45d1cf-57a8b6a6fa8mr1873893a12.18.1717601571598; Wed, 05 Jun 2024 08:32:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717601571; cv=pass; d=google.com; s=arc-20160816; b=e7jqIOz5AQd+nanSjtBjGEzPjxROFpFxavla5lhgUBkiUW7LMirrTjo/RfeCSFwZTC TcZY2aNAluTjghJikdPtUN8pPg+PCKAA2Z482MT+zjBVBo5/mxp84DPvwbuyh93gGFfn LxYR5m/obENVKlMYr0aqIhue2m9JHd0DEGn/gZRE+5X2bAfDTv2cDUXLEUHjnK2DCrXR wM02Of2iXE9FUyidZ1aE2nYcU1XlCXkSgo32E+kjGCxOaBgGvaPRWVycdYy1XFLtSE9U IKf0jqmzfg+WT1wyPIzxnk+HKXPYkz1Ege/eSWpIyVq9VWnQLAd99vu2nQAmRxAnmpEo 0TxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=Hvx1JIf+4NFvNq74q//MBSoAxq2nkebZDxjPD3Mv3gE=; fh=eIA6bKAroCo70SzpQbe61lXMp56qryU79NE/KV6ZpHI=; b=JxOPpgfub+1B/DATti4s5jkhHziQTAzygIPCsOJTusNGQbCa7tsnxS+S171RsbXPEL pUN1zqcvDZaUT9ZArsu3Jh+oT/js6VNfw4NhT0OMKNDlKATwOe0wy4iNl1wh+tiwqUti 7dVXIfFlw+FU2ZyyLV/Nxw7EQ0RHbAbAMFbk/O+rVQ7Zllk3kQVkyvHQzMKfVwKf6rDC DwfSpD9GCQSWHcClLnk4Mwok7+1TkinVERYNuSKzfaBwyKKfAYci5UJJ7ESuoJfKB+hj Y3hu4GsNd6NH59NSP32oIo2ZfsUfbwxRiMQg9ddvkHPorElEY9yP/NYDe70lMQRAoRpx dl9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b="G/5FfIjC"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-202611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a9a3afcadsi652123a12.450.2024.06.05.08.32.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 08:32:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b="G/5FfIjC"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-202611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D99241F26A74 for ; Wed, 5 Jun 2024 13:13:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EC3B193072; Wed, 5 Jun 2024 12:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="G/5FfIjC" Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 198C419D8BF; Wed, 5 Jun 2024 12:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.209 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590694; cv=none; b=JtXPueJTivFrbexGB6ho6n/BlzminXhECwfP0+I6yhLNS+44EF/F5wEnzLVKeLDnAa5GWwUIdvywd2bEegEIhzBiBzVW3x0iZWSAsOXcp2MDAfKBcIqe1tu4cQ5RnZZvFuIo5FLIHUsOJ4vibFUyI3zE6k4vRPecOvPy2kEnKKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590694; c=relaxed/simple; bh=8wCbswTUyjgATJQMZFOcOQSj2SvgCR9t7N9JPOs+xYY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pz4uWMMElc1dB1HKnZE3FGzzGU6KHnI8WxJ//GueSqUD24495tjarNv6316RSxUF+uR9lJYj8UNyWHMEro9N/SLnjelpYlYsQyV63wDI7TDK6haVoF4ilzOw2zWN2VDZmV14iWnpZKx4O8dK77BZHfW4mYrh4ToN1GYCyDwtQyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=G/5FfIjC; arc=none smtp.client-ip=192.19.144.209 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id E2BC6C0000FC; Wed, 5 Jun 2024 05:31:31 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com E2BC6C0000FC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1717590692; bh=8wCbswTUyjgATJQMZFOcOQSj2SvgCR9t7N9JPOs+xYY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G/5FfIjCvzy5t0lK/3DHgtuIAOoreDNAzXzTaZpEhe0IQfBxdLgye2c3qow3o1oPt /tPGCytNO/h3tTzRZS4GNo86uDMKGfLqp0etZ061o1ssHV7gE7xLkvURwNCUsLCtz1 93bhgEi6qGHnmdwWkY3RQAQuPxg/n+Hg5HYRI/f4= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id B8F2B18041CAC6; Wed, 5 Jun 2024 05:31:29 -0700 (PDT) From: Florian Fainelli To: stable@vger.kernel.org Cc: Florian Fainelli , Christian Brauner , Hao Ge , Jan Kiszka , Kieran Bingham , Luis Chamberlain , Pankaj Raghav , Andrew Morton , Kuan-Ying Lee , Christophe Leroy , Paolo Bonzini , Helge Deller , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Arnd Bergmann , linux-kernel@vger.kernel.org (open list), kapil.hali@broadcom.com, justin.chen@broadcom.com Subject: [PATCH stable 6.1] scripts/gdb: fix SB_* constants parsing Date: Wed, 5 Jun 2024 05:31:28 -0700 Message-Id: <20240605123128.3524629-2-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605123128.3524629-1-florian.fainelli@broadcom.com> References: <20240605123128.3524629-1-florian.fainelli@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit commit 6a59cb5158bff13b80f116305155fbe4967a5010 upstrean --0000000000009a0c9905fd9173ad Content-Transfer-Encoding: 8bit After f15afbd34d8f ("fs: fix undefined behavior in bit shift for SB_NOUSER") the constants were changed from plain integers which LX_VALUE() can parse to constants using the BIT() macro which causes the following: Reading symbols from build/linux-custom/vmlinux...done. Traceback (most recent call last): File "/home/fainelli/work/buildroot/output/arm64/build/linux-custom/vmlinux-gdb.py", line 25, in import linux.constants File "/home/fainelli/work/buildroot/output/arm64/build/linux-custom/scripts/gdb/linux/constants.py", line 5 LX_SB_RDONLY = ((((1UL))) << (0)) Use LX_GDBPARSED() which does not suffer from that issue. Fixes: f15afbd34d8f ("fs: fix undefined behavior in bit shift for SB_NOUSER") Link: https://lkml.kernel.org/r/20230607221337.2781730-1-florian.fainelli@broadcom.com Signed-off-by: Florian Fainelli Acked-by: Christian Brauner Cc: Hao Ge Cc: Jan Kiszka Cc: Kieran Bingham Cc: Luis Chamberlain Cc: Pankaj Raghav Signed-off-by: Andrew Morton Signed-off-by: Florian Fainelli --- scripts/gdb/linux/constants.py.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/constants.py.in index 08f0587d15ea..0ff707bc1896 100644 --- a/scripts/gdb/linux/constants.py.in +++ b/scripts/gdb/linux/constants.py.in @@ -46,12 +46,12 @@ if IS_BUILTIN(CONFIG_COMMON_CLK): LX_GDBPARSED(CLK_GET_RATE_NOCACHE) /* linux/fs.h */ -LX_VALUE(SB_RDONLY) -LX_VALUE(SB_SYNCHRONOUS) -LX_VALUE(SB_MANDLOCK) -LX_VALUE(SB_DIRSYNC) -LX_VALUE(SB_NOATIME) -LX_VALUE(SB_NODIRATIME) +LX_GDBPARSED(SB_RDONLY) +LX_GDBPARSED(SB_SYNCHRONOUS) +LX_GDBPARSED(SB_MANDLOCK) +LX_GDBPARSED(SB_DIRSYNC) +LX_GDBPARSED(SB_NOATIME) +LX_GDBPARSED(SB_NODIRATIME) /* linux/htimer.h */ LX_GDBPARSED(hrtimer_resolution) -- 2.34.1