diff --git a/0009-Add-lowercase-tcr_el1_t1sz.patch b/0009-Add-lowercase-tcr_el1_t1sz.patch index b15c3ad978c1f4d383925676aca2b28c67abd2dd..3abb08b3e4a1b2e938dd6edb7da90a0b6149dc05 100644 --- a/0009-Add-lowercase-tcr_el1_t1sz.patch +++ b/0009-Add-lowercase-tcr_el1_t1sz.patch @@ -1,8 +1,16 @@ -From 3085ad7bf654c2fe1aefe5023d83b91c3c7f8aa8 Mon Sep 17 00:00:00 2001 -From: huskarTang -Date: Thu, 29 Dec 2022 11:11:16 +0800 -Subject: [PATCH] arm64: Add lowercase tcr_el1_t1sz +From a7ecf2467f953b632713f38ab8104596755bca8c Mon Sep 17 00:00:00 2001 +From: John Donnelly +Date: Wed, 12 May 2021 14:48:03 -0700 +Subject: [PATCH 1/5] arm64: Add lowercase tcr_el1_t1sz +Commit 1c45cea "arm64: Change tcr_el1_t1sz variable name to +TCR_EL1_T1SZ", renamed the variable to upper case, but there are +kernels in existence that still have the lower case name, which +breaks crash backwards compatibility. + +Resolves: https://github.com/crash-utility/crash/pull/82 +Signed-off-by: John Donnelly +Signed-off-by: Kazuhito Hagio --- arm64.c | 3 ++- netdump.c | 3 ++- diff --git a/0010-Fix-kmem-option-on-Linux-5.7-and-later.patch b/0010-Fix-kmem-option-on-Linux-5.7-and-later.patch index ed4ca83a44c094d39db37092be38a9176052ad2a..733dc978801d66a73989421e07231995579b7377 100644 --- a/0010-Fix-kmem-option-on-Linux-5.7-and-later.patch +++ b/0010-Fix-kmem-option-on-Linux-5.7-and-later.patch @@ -1,7 +1,8 @@ -From b43fc52b01897346f6e0977fecb3b056f41753f8 Mon Sep 17 00:00:00 2001 -From: huskarTang -Date: Thu, 29 Dec 2022 11:32:59 +0800 -Subject: [PATCH] Fix for 'kmem -s|-S' option on Linux 5.7 and later kernels +From 647a5c33e1c94054d7b63168cd6c12901591cb77 Mon Sep 17 00:00:00 2001 +From: Lianbo Jiang +Date: Thu, 27 May 2021 18:02:11 +0800 +Subject: [PATCH 2/5] Fix for "kmem -s|-S" option on Linux 5.7 and later + kernels Linux 5.7 and later kernels that contain kernel commit 1ad53d9fa3f6 ("slub: improve bit diffusion for freelist ptr obfuscation") changed @@ -11,13 +12,15 @@ call to mix bits a little more. When kernel is configured with the options display wrong statistics and state whether slab objects are in use or free and can print the following errors: - crash> kmem -s - CACHE OBJSIZE ALLOCATED TOTAL SLABS SSIZE NAME - 87201e00 528 0 0 0 8k xfs_dqtrx - 87201f00 496 0 0 0 8k xfs_dquot - kmem: xfs_buf: slab: 37202e6e900 invalid freepointer: b844bab900001d70 - kmem: xfs_buf: slab: 3720250fd80 invalid freepointer: b8603f9400001370 - ... + crash> kmem -s + CACHE OBJSIZE ALLOCATED TOTAL SLABS SSIZE NAME + 87201e00 528 0 0 0 8k xfs_dqtrx + 87201f00 496 0 0 0 8k xfs_dquot + kmem: xfs_buf: slab: 37202e6e900 invalid freepointer: b844bab900001d70 + kmem: xfs_buf: slab: 3720250fd80 invalid freepointer: b8603f9400001370 + ... + +Signed-off-by: Lianbo Jiang --- memory.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/0011-Fix-macro-TIF_SIGPENDING-values.patch b/0011-Fix-macro-TIF_SIGPENDING-values.patch index 3ef0fecf55d240dce20cf9828b749806340c9824..24a164fa8697fa472538be25a14904ef3363246a 100644 --- a/0011-Fix-macro-TIF_SIGPENDING-values.patch +++ b/0011-Fix-macro-TIF_SIGPENDING-values.patch @@ -1,20 +1,22 @@ -From 7ad855949e755194f41400f969c9b51f91753d6f Mon Sep 17 00:00:00 2001 -From: huskarTang -Date: Thu, 29 Dec 2022 13:16:56 +0800 -Subject: [PATCH] Fix the value of TIF_SIGPENDING macro +From 704623dfde43da98ffb354b3d7f450cd012a8215 Mon Sep 17 00:00:00 2001 +From: Youling Tang +Date: Thu, 3 Jun 2021 16:07:41 +0800 +Subject: [PATCH 2/2] defs.h: Fix the value of TIF_SIGPENDING macro Correct the change of the value of TIF_SIGPENDING macro between - different kernel versions. +different kernel versions. - TIF_SIGPENDING changes with the kernel version as follows: - ARM 2 -> 0 at v2.6.23 - MIPS 2 -> 1 at v2.6.23 - MIPS64 2 -> 1 at v2.6.23 - PPC 2 -> 1 at v2.6.23 - IA64 1 -> 0 at v2.6.23 - PPC64 2 -> 1 at v2.6.23 - S390 2 -> 1 at v3.16 - S390X 2 -> 1 at v3.16 +TIF_SIGPENDING changes with the kernel version as follows: + ARM 2 -> 0 at v2.6.23 + MIPS 2 -> 1 at v2.6.23 + MIPS64 2 -> 1 at v2.6.23 + PPC 2 -> 1 at v2.6.23 + IA64 1 -> 0 at v2.6.23 + PPC64 2 -> 1 at v2.6.23 + S390 2 -> 1 at v3.16 + S390X 2 -> 1 at v3.16 + +Signed-off-by: Youling Tang --- defs.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)