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

Optionally use orc_header to detect orc version #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nilayvaish
Copy link

@nilayvaish nilayvaish commented Feb 8, 2024

In Linux kernel commit b9f174c811e3ae4ae8959dc57e6adb9990e913f4, a new .orc_header section was introduced. This section holds a version identifier for the ORC types in use.

This patch was tested by compiling crash and using it to read coredump of kernel. A temporary print statement was added to check that the if conditions specified are working fine.

#169

In Linux kernel commit b9f174c811e3ae4ae8959dc57e6adb9990e913f4, a new
.orc_header section was introduced.  This section holds a version
identifier for the ORC types in use.

This patch was tested by compiling crash and using it to read coredump
of kernel.  A temporary print statement was added to check that the
if conditions specified are working fine.
Comment on lines +6468 to +6469
if (try_get_symbol_data("orc_header", sizeof(orc_header), orc_header) &&
memcmp(orc_header, orc_hash_6_4, 20) == 0) {
Copy link
Author

Choose a reason for hiding this comment

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

We might want to move these lines since we have checks on lines 6413-6421 that can fail.

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.

1 participant