Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_kernel: fix ELF module boundaries #377

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

cagatay-y
Copy link
Contributor

I am not very sure about this one, but I think the function is supposed the return the slice between the start and end addresses in the first module. It looks like the end value for the first module and the maximum end value for all the modules (needed for mapping them) was confused. If my understanding is correct, the caller would still work because the functions it calls determine the length it reads from the returned slice by other means, so the slice being too large does not hurt.

@cagatay-y cagatay-y marked this pull request as draft October 1, 2024 12:13
@cagatay-y cagatay-y marked this pull request as ready for review October 1, 2024 13:02
@mkroening mkroening self-requested a review October 1, 2024 13:22
@mkroening mkroening self-assigned this Oct 1, 2024
@cagatay-y cagatay-y force-pushed the module-boundaries branch 3 times, most recently from a6c7a1d to 536f543 Compare October 3, 2024 13:22
 The end address for all the modules seemed to be confused with the end address for the first module.
Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

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

Looks sensible to me, thanks! :)

@mkroening mkroening added this pull request to the merge queue Oct 10, 2024
Merged via the queue into hermit-os:main with commit 03a71ad Oct 10, 2024
12 checks passed
@cagatay-y cagatay-y deleted the module-boundaries branch October 11, 2024 10:17
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.

2 participants