Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp286457lqr; Wed, 5 Jun 2024 06:14:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNY9VN17baNhKXajJCGryd+TGN9xZLSJ351kFUJyrCr+hRSstM6oP/6uIewGDqFlAKqMiegrYN8/2Mex3IQ+4Qd2+kL9G2S1wCfAIUbg== X-Google-Smtp-Source: AGHT+IESOQWTcvLv7ajOoB9hNLvUoIk8dOqAMnrPL0+5xvVX6nSYSNIObEs3WzbAESa1by03Q2Fy X-Received: by 2002:a05:6808:619a:b0:3d2:25e:aed2 with SMTP id 5614622812f47-3d2044e39d1mr1925205b6e.58.1717593266260; Wed, 05 Jun 2024 06:14:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717593266; cv=pass; d=google.com; s=arc-20160816; b=kFljA6/3z8vix3v4NKS3KV8uwD1VTlghWshi21HrbGfxRWAenPGZQ/olepD79SDy65 BsaS4R2B5fPIGGF1bl2z1Fj4hri3NH4ymdMxcCe1SOhO2nzLON94xsm0m45Bt5EQQ/4u WAacOJ4/OWJ9GzDNAX0Riyp3DDrl1GubKsCCQLSPV+kSkdZeYW/U5dkBQ8lBIBFCD42S oqWINe36hWWq4G9GG8VY2uBwfJAGOWNfRZPnviVYd5YwcijXfsqzScAllwxvFtPLyikp iLGQ819HGhAser3ySBJWJW+wxrR4smM7cZBcNAGN8fOFz0gobF88ehy3Xltl4LBDT/ML gDFg== 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:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=HbnShVD7Rs9bU6Cii82W2jDgIBUJpl3x7QKIGLIt7Mk=; fh=eIA6bKAroCo70SzpQbe61lXMp56qryU79NE/KV6ZpHI=; b=O5MMSEhLlbiUrxe3+KYoE8yOlL4DtxggnIeDjK/ZQxyqEYrsZJQUbja37NheVD/wq8 qUX0TG71BmdMGVvHSyLpIHwMrPKD3Bu6RX3Wkb3FzCfaYYqrhrvwDsR8JDOYU2B1/rKU xuUFvq3NRLwWB57j7VJ8ARjeVlFgE3OeFsR5GrU/+NICSnuQ5aSMjeqd1hyMa9Xuf7Re sJjYNs90rl27qzbeJyPDPwzoN7VoG9ixrXphwVVNIlEWB0RLn2n1A+Net0clTcV5rOgD qvNLRRqIr2DfsUTJCckjUqqP0WWVsXJVGOSQmpeZiL4XN8lJQmNJTXF3Lss2yW5XL9wk TzQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=StXSC1ox; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-202610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a1e0cc1a2514c-80af60740b9si1391561241.120.2024.06.05.06.14.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:14:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=StXSC1ox; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-202610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202610-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 799F01C24E5F for ; Wed, 5 Jun 2024 13:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B687193063; 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="StXSC1ox" 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 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: 8bit 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/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