[Crash-utility] there is a stack problem which is not in accordance with x86_64 stack layout

hellothedreamer hellothedreamer at 126.com
Thu Feb 17 06:58:28 UTC 2022




Hello, I found some confusing things during the usage of analysing the stack data.
Summury:

with the same demo named oops.ko and the same architecure(x86_64), there are two different stack layout

the demo make a crash with hungtask.


1) kernel version 
[root at localhost ~]# uname -r
3.10.0-693.el7.x86_64
gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)

crash version:
[root at localhost ~]# crash --version
crash 7.1.9-2.el7



[root at localhost ~]# gdb -v


GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7\


bt -f pid







1--the callback address for create_oops function
2--the rbp register value for stack frame 5, point to the address ffff8800a637fd69.
this layout in accordance with the x86_64 stack principle



2) kernel version
[root at kylinv10 ~]# uname -r
4.19.90-24.4.v2101.ky10.x86_64
gcc version:


[root at kylinv10 ~]# gcc --version
gcc (GCC) 7.3.0



[root at kylinv10 ~]# gdb -v
GNU gdb (GDB) EulerOS 9.2-1.ky10


crash version:
[root at kylinv10 ~]# crash --version
crash 7.2.9-2.p02.ky10


bt -f pid


 1/2/3--there should be the value for the next stack frame's(in higher address) rbp register value, should be the valid address in this stack.
but, they are invalid address "0000000000000001"  "ffff8adb5424ccc0" and "ffffffffc096b000"


I don't know the reason.4.19kernel, has this kernel param value like:
kernel.randomize_va_space=0



thank you.

 --
Jane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20220217/0d4718d1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ??.png
Type: image/png
Size: 68923 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20220217/0d4718d1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ??.png
Type: image/png
Size: 113871 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20220217/0d4718d1/attachment-0001.png>


More information about the Crash-utility mailing list