From nobody Thu Feb 12 23:17:48 2026 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 D4A5A19D8B2; 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=p4Insx+qVGLFKy8QiJ2E6tlzkp9jqrSBxsE7ZjRD8EyCqHxgFhy/KlRUbOdg11BAt+goViBt6pbx2mwJqVzhtpCcmx12s4yacTqF66zMh1ewSIYQtgXmz4dn+hhGLcBVkD6UYvxYWMWC1bJBf4aActdSFF7J1f3CGuoGMo2KPY4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590694; c=relaxed/simple; bh=DcFLBoXlwMgc0xOPsvGuOBJsBu2Y2oETEheNuoTDRiM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sNz5UR7McsKN5ITdfrj0gJeo2lNczEZ6kSO7PVdvH3dLXK6Z3m3oR/Uiv1fUQCNwBCC2EMuGbFbFBdt1fzdPxeJlnSCwuoXnhhLgMU09ViQefsRhOi+PrBDvYJ9cQjB8PY3NmRXYGVSWj6kqqnJXaFsFR94EwI44aRvdI00DKAM= 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=StXSC1ox; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="StXSC1ox" 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 B256AC0000F3; Wed, 5 Jun 2024 05:31:31 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com B256AC0000F3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1717590691; bh=DcFLBoXlwMgc0xOPsvGuOBJsBu2Y2oETEheNuoTDRiM=; h=From:To:Cc:Subject:Date:From; b=StXSC1oxBbznOvZnqWTngN1r+hE8rXvDIGPlRn4k1phnFFGu1xlQcecBQvy6Roulf 1FKJREiYIWgsonEPd61TGQNGlWJHCVjEp0Nz73XQr27hS8IGlUTnny95bd14qLOuu7 tJMzYpfhk8rO9VlKio6/ppJaJIifumOzh7h3iPfk= 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 8524A18041CAC4; 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 5.15] scripts/gdb: fix SB_* constants parsing Date: Wed, 5 Jun 2024 05:31:27 -0700 Message-Id: <20240605123128.3524629-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" commit 6a59cb5158bff13b80f116305155fbe4967a5010 upstream --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/vmlin= ux-gdb.py", line 25, in import linux.constants File "/home/fainelli/work/buildroot/output/arm64/build/linux-custom/scrip= ts/gdb/linux/constants.py", line 5 LX_SB_RDONLY =3D ((((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@b= roadcom.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/constant= s.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) =20 /* 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) =20 /* linux/htimer.h */ LX_GDBPARSED(hrtimer_resolution) --=20 2.34.1