keep upstream info in patches

This commit is contained in:
huskarTang 2022-12-29 17:00:47 +08:00
parent 2cbdc492a3
commit 3652955d20
3 changed files with 42 additions and 29 deletions

View File

@ -1,8 +1,16 @@
From 3085ad7bf654c2fe1aefe5023d83b91c3c7f8aa8 Mon Sep 17 00:00:00 2001 From a7ecf2467f953b632713f38ab8104596755bca8c Mon Sep 17 00:00:00 2001
From: huskarTang <tanly6@chinatelecom.cn> From: John Donnelly <john.p.donnelly@oracle.com>
Date: Thu, 29 Dec 2022 11:11:16 +0800 Date: Wed, 12 May 2021 14:48:03 -0700
Subject: [PATCH] arm64: Add lowercase tcr_el1_t1sz 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 <john.p.donnelly@oracle.com>
Signed-off-by: Kazuhito Hagio <k-hagio-ab@nec.com>
--- ---
arm64.c | 3 ++- arm64.c | 3 ++-
netdump.c | 3 ++- netdump.c | 3 ++-

View File

@ -1,7 +1,8 @@
From b43fc52b01897346f6e0977fecb3b056f41753f8 Mon Sep 17 00:00:00 2001 From 647a5c33e1c94054d7b63168cd6c12901591cb77 Mon Sep 17 00:00:00 2001
From: huskarTang <tanly6@chinatelecom.cn> From: Lianbo Jiang <lijiang@redhat.com>
Date: Thu, 29 Dec 2022 11:32:59 +0800 Date: Thu, 27 May 2021 18:02:11 +0800
Subject: [PATCH] Fix for 'kmem -s|-S' option on Linux 5.7 and later kernels 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 Linux 5.7 and later kernels that contain kernel commit 1ad53d9fa3f6
("slub: improve bit diffusion for freelist ptr obfuscation") changed ("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 options display wrong statistics and state whether slab objects are
in use or free and can print the following errors: in use or free and can print the following errors:
crash> kmem -s crash> kmem -s
CACHE OBJSIZE ALLOCATED TOTAL SLABS SSIZE NAME CACHE OBJSIZE ALLOCATED TOTAL SLABS SSIZE NAME
87201e00 528 0 0 0 8k xfs_dqtrx 87201e00 528 0 0 0 8k xfs_dqtrx
87201f00 496 0 0 0 8k xfs_dquot 87201f00 496 0 0 0 8k xfs_dquot
kmem: xfs_buf: slab: 37202e6e900 invalid freepointer: b844bab900001d70 kmem: xfs_buf: slab: 37202e6e900 invalid freepointer: b844bab900001d70
kmem: xfs_buf: slab: 3720250fd80 invalid freepointer: b8603f9400001370 kmem: xfs_buf: slab: 3720250fd80 invalid freepointer: b8603f9400001370
... ...
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
--- ---
memory.c | 12 ++++++++++-- memory.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-) 1 file changed, 10 insertions(+), 2 deletions(-)

View File

@ -1,20 +1,22 @@
From 7ad855949e755194f41400f969c9b51f91753d6f Mon Sep 17 00:00:00 2001 From 704623dfde43da98ffb354b3d7f450cd012a8215 Mon Sep 17 00:00:00 2001
From: huskarTang <tanly6@chinatelecom.cn> From: Youling Tang <tangyouling@loongson.cn>
Date: Thu, 29 Dec 2022 13:16:56 +0800 Date: Thu, 3 Jun 2021 16:07:41 +0800
Subject: [PATCH] Fix the value of TIF_SIGPENDING macro Subject: [PATCH 2/2] defs.h: Fix the value of TIF_SIGPENDING macro
Correct the change of the value of TIF_SIGPENDING macro between 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: TIF_SIGPENDING changes with the kernel version as follows:
ARM 2 -> 0 at v2.6.23 ARM 2 -> 0 at v2.6.23
MIPS 2 -> 1 at v2.6.23 MIPS 2 -> 1 at v2.6.23
MIPS64 2 -> 1 at v2.6.23 MIPS64 2 -> 1 at v2.6.23
PPC 2 -> 1 at v2.6.23 PPC 2 -> 1 at v2.6.23
IA64 1 -> 0 at v2.6.23 IA64 1 -> 0 at v2.6.23
PPC64 2 -> 1 at v2.6.23 PPC64 2 -> 1 at v2.6.23
S390 2 -> 1 at v3.16 S390 2 -> 1 at v3.16
S390X 2 -> 1 at v3.16 S390X 2 -> 1 at v3.16
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
--- ---
defs.h | 16 ++++++++-------- defs.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-) 1 file changed, 8 insertions(+), 8 deletions(-)