A problem met when using crash with randomized kernel
From: Cao jin
Date: Fri Jan 26 2018 - 03:32:44 EST
Hi,
 Recently I am testing crash tool with structure layout randomized
kernel, and crash failed to work with it.
When using "gdb vmlinux"to examine both the randomized and
non-randomized vmlinux's debuginfo, take struct uts_namespace for
example, the output of "ptype struct uts_namespace" is identical in both
debuginfo. ÂAnd this causes a big trouble to crash utility, because
crash uses the embedded gdb to retrieve some structure member's offset
in debuginfo, and crash got the same offset value for every structure
member in both condition.
It is believed by gcc maintainer[*] that it is a problem of the plugin,
not gcc
[*]https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84052
So, could you confirm it is plugin bug or not?
--
Sincerely,
Cao jin