nforest / droidimg

Android/Linux vmlinux loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault (core dumped) fixing kaslr arm64

0x410c opened this issue · comments

fix_kaslr_arm64.c

crashes inside relocate_kernel() function! i think the negative sym_offset is the problem!

Program received signal SIGSEGV, Segmentation fault. 0x0000000008000aa9 in relocate_kernel () at fix_kaslr_arm64.c:228 228 *(size_t *)LOCAL_VA(p) = new_addr; (gdb) info locals new_addr = 18446743798860776160 p = 0xffffffc000092998 rela_entry = 0x7ffffe7a35c8 sym_offset = -274877306472 sym_info = 1027 sym_addr = 18446743798860776160 count = 0

also samsung fix code works but vmlinux is not able to find the symbol table!

if needed the kernel image im attaching
image.zip

the base address of the kernel image as taken default can also be 0xFFFFFFC000080000UL which is not taken into consideration by the fix arm code! please add that too? or i can send a pull request?