Understanding disassembly x86 + understanding function call + parameter pass and stack frame
From: amit mehta <hidden>
Date: 2013-08-12 15:07:13
From: amit mehta <hidden>
Date: 2013-08-12 15:07:13
On Mon, Aug 12, 2013 at 5:28 PM, nidhi mittal hada [off-list ref] wrote:
Questions:- 1)Which memory address in stack contains struct super_block *s 2)how does disassembly helps in knowing which register contain the struct super_block *s 3)bt -f gives highlighted above, register dump at the end, does that help in finding this information ???
Have you *actually* spent your time on reading the AMD 64ABI [1] ? Also there is a very nice and concise document available on x86_64 assembly [2]. While trying to analyse kernel crash dump using 'crash', utility you might want to refer this page [1] and this blog [4] as well. [1] http://www.uclibc.org/docs/psABI-x86_64.pdf [2] www.cs.cmu.edu/~fp/courses/15213-s07/misc/asm64-handout.pdf [3] http://people.redhat.com/~anderson/ [4] http://www.sungju.org/?p=1166 !!amit