Skip to content

gem5 syscall emulation aarch64 dynamic linking fails on nostartfiles/exit.S with panic: Page table fault when accessing virtual address 0 #107

Open
@cirosantilli

Description

@cirosantilli

gem5 bcf041f257623e5c9e77d35b7531bae59edc0423 LKMC 62930b6 just after dynamic linking was added:

./run -aA -eg -u userland/arch/aarch64/nostartfiles/exit.S --gem5-worktree master --trace ExecAll,-ExecSymbol 

Failure happens in dynamic loader itself.

We can see what code the trace corresponds to with (we easily guess that dynloader goes at offset 0x4000000000):

aarch64-linux-gnu-objdump -S /work/linux-kernel-module-cheat/out/buildroot/build/default/aarch64/staging/lib/ld-2.27.so  | s

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions