Open pnill opened 4 years ago
If we take linux_banner as the anchor, it seems the overall offset is good. It seems some entries have bad offset value filled in by fix_kaslr_arm64. If you built the kernel yourself, would you share the original vmlinux before stripping (a valid elf with symbols)?
I actually did not build it myself and have not been successful in building it so far either this is the kernel:
https://github.com/facebookincubator/oculus-linux-kernel/tree/oculus-quest2-kernel-master
That's how I've been comparing the symbol table to what a function should look like, as well as looking at similar functions within another image to see if they're different and things do indeed seem off.
Trying to load the attached image (after) KALSR fix the symbol table seems off, some of the symbols written even seem to overwrite others at the same offset wondering if anyone who's following this has an idea on what might be going wrong.
Example of offsets being overwritten by the same symbols:
When looking at various functions against the actual kernel source in a decompiler it was pretty clear that the symbol table being generated by the vmlinux.py script was off/wrong, I've been reading through the source to see how all of this works and try to correct it but figured in the mean time path of least resistance may be asking those who are already familiar with what it's doing.
Any help would be greatly appreciated...
extracted.zip