Skip to contentSkip to conversation

crash: fix crash cannot work with kaslr

PATCH New Xiangyu Chen 1 participant 2 messages Jan 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crash: fix crash cannot work with kaslr

From: Xiangyu Chen <[email protected]>

According to crash help message, crash can decode the random address with "--kaslr=auto". But it has a bug that when with "-S" in parameter, crash will bypass the kaslr option.

---
 meta-oe/recipes-kernel/crash/crash.inc        |  1 +
 ...x-S-cannot-work-with-kaslr-detection.patch | 89 +++++++++++++++++++
 2 files changed, 90 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/crash/crash/0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch
meta-oe/recipes-kernel/crash/crash.inc +1 -0
index 29cff569f7..cab4e178b9 100644
@@ -22,6 +22,7 @@ SRC_URI = "git://github.com/crash-utility/${BPN}.git;branch=master;protocol=http
            file://0001-cross_add_configure_option.patch \
            file://donnot-extract-gdb-during-do-compile.patch \
            file://gdb_build_jobs_and_not_write_crash_target.patch \
+           file://0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch \
            "
 SRCREV = "ceacceef7d13134d327719a624cfafed99e90f8a"
 
meta-oe/recipes-kernel/crash/crash/0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch new file +89 -0

89 lines not on this page · raw message

Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 crash: fix crash cannot work with kaslr

From: Xiangyu Chen <[email protected]>

According to crash help message, crash can decode the random address with "--kaslr=auto". But it has a bug that when with "-S" in parameter, crash will bypass the kaslr option.

---
 meta-oe/recipes-kernel/crash/crash.inc        |  1 +
 ...x-S-cannot-work-with-kaslr-detection.patch | 89 +++++++++++++++++++
 2 files changed, 90 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/crash/crash/0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch
meta-oe/recipes-kernel/crash/crash.inc +1 -0
index 04318b1505..c8c8518394 100644
@@ -22,6 +22,7 @@ SRC_URI = "git://github.com/crash-utility/${BPN}.git;branch=master;protocol=http
            file://0001-cross_add_configure_option.patch \
            file://donnot-extract-gdb-during-do-compile.patch \
            file://gdb_build_jobs_and_not_write_crash_target.patch \
+           file://0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch \
            "
 SRCREV = "a6832f608cb5d473739cf33bbf84ab1df8d98fd5"
 
meta-oe/recipes-kernel/crash/crash/0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch new file +89 -0

89 lines not on this page · raw message

Signature · 1 line
2.25.1