2.6.22 breaks crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There was recent commit[1] to rename the "thread_info" member of the
task_struct to "stack":

-       struct thread_info *thread_info;
+       void *stack;

To resolve it we simply need to change the hardcoded value for the offset
lookup in task.c:

--- task.c.ori  2007-05-24 09:54:43.000000000 -0600
+++ task.c      2007-05-24 10:41:50.000000000 -0600
@@ -161,7 +161,7 @@ task_init(void)
        }

         MEMBER_OFFSET_INIT(task_struct_thread_info, "task_struct",
-               "thread_info");
+               "stack");
        if (VALID_MEMBER(task_struct_thread_info)) {
                MEMBER_OFFSET_INIT(thread_info_task, "thread_info", "task");
                MEMBER_OFFSET_INIT(thread_info_cpu, "thread_info", "cpu");

However, I'm not sure what the best way to keep backwards compatibility for
kernels < 2.6.22.

Troy


[1] f7e4217b007d1f73e7e3cf10ba4fea4a608c603f

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux