[Crash-utility] Using crash with structure layout randomized kernel

Dave Anderson anderson at redhat.com
Wed Jan 24 15:27:39 UTC 2018



----- Original Message -----
> ... 
> The 1st error is from reading "init_uts_ns"(randomized) value in
> kernel_init, so kt->kernel_version is wrong, then results invalid
> virtual addresses in "case POST_GDB:" of x86_64_init, the symptom of
> this error is segment fault results from infinite function call:


  struct uts_namespace {
          struct kref kref;
          struct new_utsname name;
          struct user_namespace *user_ns;
          struct ucounts *ucounts;
          struct ns_common ns;
  } __randomize_layout;

Right -- that's a good example.  Run "gdb vmlinux" on both vmlinux files,
enter "ptype struct uts_namespace", and compare the two.

Dave
 




More information about the Crash-utility mailing list