From: Greg Kroah-Hartman Date: Wed, 12 Jun 2024 14:42:36 +0000 (+0200) Subject: 5.15-stable patches X-Git-Tag: v4.19.316~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=319b76456cffa2802740316a80273e900a0393f8;p=thirdparty%2Fkernel%2Fstable-queue.git 5.15-stable patches added patches: scripts-gdb-fix-sb_-constants-parsing.patch --- diff --git a/queue-5.15/scripts-gdb-fix-sb_-constants-parsing.patch b/queue-5.15/scripts-gdb-fix-sb_-constants-parsing.patch new file mode 100644 index 00000000000..f97f9514855 --- /dev/null +++ b/queue-5.15/scripts-gdb-fix-sb_-constants-parsing.patch @@ -0,0 +1,63 @@ +From 6a59cb5158bff13b80f116305155fbe4967a5010 Mon Sep 17 00:00:00 2001 +From: Florian Fainelli +Date: Wed, 7 Jun 2023 15:13:35 -0700 +Subject: scripts/gdb: fix SB_* constants parsing + +From: Florian Fainelli + +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. + +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 +Signed-off-by: Greg Kroah-Hartman +--- + scripts/gdb/linux/constants.py.in | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +--- 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) diff --git a/queue-5.15/series b/queue-5.15/series index 36bd7d899c1..8c1394dde1d 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -348,3 +348,4 @@ mptcp-fix-full-tcp-keep-alive-support.patch vxlan-fix-regression-when-dropping-packets-due-to-invalid-src-addresses.patch net-dsa-sja1105-always-enable-the-incl_srcpt-option.patch net-dsa-tag_sja1105-always-prefer-source-port-information-from-incl_srcpt.patch +scripts-gdb-fix-sb_-constants-parsing.patch