Skip to content

Conversation

@ezdiy
Copy link

@ezdiy ezdiy commented Oct 15, 2025

Fixes "confused" kallsyms on 4.14 / A10.
This needs to be tested that it doesn't break newer kernels.

When kallsyms get "confused", we guess the offset of addresses/offsets wrong, and subsequently produce garbage kallsyms table. This then segfaults in page_init / other patches pointing to wrong (usually too large) address.

Potentially fixes #204, as they're getting segfault also (though it's not clear where).


#define NOFS 10
uint64_t ofs[NOFS] = { 0xffffff88c9481000,0xffffff88c9481000,0xffffff88c9481000,0xffffff88c94811c4,0xffffff88c948167c,0xffffff88c9481768,0xffffff88c94818a4,0xffffff88c9481944,0xffffff88c9481a2c,0xffffff88c9481c08, };

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unreliable; the kernel image doesn't contain runtime addresses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Patch Failed (segmentation fault from 0.11.1+) (Oppo A31) (4.9.117)

2 participants