Skip to content

Error: "Unable to find the chunk requested because its a super chunk" on quokka file loading. #25

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

Closed
RobinDavid opened this issue Mar 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RobinDavid
Copy link
Collaborator

Hi !

I am encountering an issue when load quokka files generated from kernel modules. The export seems to be performed correctly but the loading fails with the exception:

Unable to find the chunk requested because its a super chunk

Here is a simple modules to reproduce: pktflow.ko.zip

from quokka import Program

p = Program("pktflow.ko.Quokka", "pktflow.ko")

Tested with:

  • IDA Pro 8.2
  • Quokka: 0.5.4
@RobinDavid RobinDavid added the bug Something isn't working label Mar 6, 2024
@patacca
Copy link
Collaborator

patacca commented Mar 6, 2024

It seems that the very first chunk that we encounter is always treated as a fake chunk. Nobody has ever noticed probably because in normal conditions Quokka is still able to export the function correctly and from the python api everything is still accessible (call graph, instructions, etc...).

In this case IDA for some unexplainable reasons creates different blocks for the fcacheStatus function (that is the function at address 0) without having jumps between the blocks. Quokka identifies two blocks (even though IDA shows 3) but fails to resolve the edge between them (because there is no code reference from one to the other), this leads the python API to believe that the function is in fact a SuperChunk that ultimately causes a chain reaction making impossible to access the attributes of the function fcacheStatus.

I will fix it asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants