Release: crash-7.3.2-6
Redo: Fix for freelist pointer on PPC64le, ARM64 and S390x. Resolves: rhbz#2166880 Resolves: rhbz#2161133 Resolves: rhbz#2158721 Resolves: rhbz#2156904 Resolves: rhbz#2156898 Resolves: rhbz#2156892 Resolves: rhbz#2156889 Resolves: rhbz#2156885 Resolves: rhbz#2152619 Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
This commit is contained in:
parent
b6407a85f0
commit
e4c0b8198c
@ -4,7 +4,7 @@
|
|||||||
Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
|
Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
|
||||||
Name: crash
|
Name: crash
|
||||||
Version: 7.3.2
|
Version: 7.3.2
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
Group: Development/Debuggers
|
Group: Development/Debuggers
|
||||||
Source0: https://github.com/crash-utility/crash/archive/crash-%{version}.tar.gz
|
Source0: https://github.com/crash-utility/crash/archive/crash-%{version}.tar.gz
|
||||||
@ -107,6 +107,7 @@ Patch87: 0088-Fix-net-command-on-kernel-configured-with-CONFIG_IPV.patch
|
|||||||
Patch88: 0089-gdb-7.6-fix-for-whatis-command-causes-crash-coredump.patch
|
Patch88: 0089-gdb-7.6-fix-for-whatis-command-causes-crash-coredump.patch
|
||||||
Patch89: lzo_snappy_zstd.patch
|
Patch89: lzo_snappy_zstd.patch
|
||||||
Patch90: rhel8_build.patch
|
Patch90: rhel8_build.patch
|
||||||
|
Patch91: rhel8-freepointer.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The core analysis suite is a self-contained tool that can be used to
|
The core analysis suite is a self-contained tool that can be used to
|
||||||
@ -218,6 +219,7 @@ offered by Mission Critical Linux, or the LKCD kernel patch.
|
|||||||
%patch88 -p1
|
%patch88 -p1
|
||||||
%patch89 -p1
|
%patch89 -p1
|
||||||
%patch90 -p1
|
%patch90 -p1
|
||||||
|
%patch91 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
@ -248,6 +250,9 @@ rm -rf %{buildroot}
|
|||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 08 2023 Lianbo Jiang <lijiang@redhat.com> - 7.3.2-6
|
||||||
|
- Fix for freelist pointer on PPC64le, ARM64 and S390x
|
||||||
|
|
||||||
* Mon May 08 2023 Lianbo Jiang <lijiang@redhat.com> - 7.3.2-5
|
* Mon May 08 2023 Lianbo Jiang <lijiang@redhat.com> - 7.3.2-5
|
||||||
- Update to the latest upstream commit 47216437e79a
|
- Update to the latest upstream commit 47216437e79a
|
||||||
- ("Fix "net" command on kernel configured with CONFIG_IPV6=m")
|
- ("Fix "net" command on kernel configured with CONFIG_IPV6=m")
|
||||||
|
31
rhel8-freepointer.patch
Normal file
31
rhel8-freepointer.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From d39b714d36c12e17c9e3359dd283adbb0693458e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lianbo Jiang <lijiang@redhat.com>
|
||||||
|
Date: Mon, 8 May 2023 21:51:02 +0800
|
||||||
|
Subject: [PATCH] rhel8 freepointer
|
||||||
|
|
||||||
|
CONFIG_SLAB_FREELIST_HARDENED=y
|
||||||
|
|
||||||
|
This is a RHEL-Only patch.
|
||||||
|
|
||||||
|
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
|
||||||
|
---
|
||||||
|
memory.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/memory.c b/memory.c
|
||||||
|
index 0568f18eb9b7..82d4214be066 100644
|
||||||
|
--- a/memory.c
|
||||||
|
+++ b/memory.c
|
||||||
|
@@ -19671,7 +19671,8 @@ freelist_ptr(struct meminfo *si, ulong ptr, ulong ptr_addr)
|
||||||
|
if (VALID_MEMBER(kmem_cache_random)) {
|
||||||
|
/* CONFIG_SLAB_FREELIST_HARDENED */
|
||||||
|
|
||||||
|
- if (vt->flags & FREELIST_PTR_BSWAP)
|
||||||
|
+ if ((vt->flags & FREELIST_PTR_BSWAP) || machine_type("PPC64")
|
||||||
|
+ || machine_type("ARM64") || machine_type("S390X"))
|
||||||
|
ptr_addr = (sizeof(long) == 8) ? bswap_64(ptr_addr)
|
||||||
|
: bswap_32(ptr_addr);
|
||||||
|
return (ptr ^ si->random ^ ptr_addr);
|
||||||
|
--
|
||||||
|
2.37.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user