Skip to content

Segmentation Fault on ARM64 (EC2) with Diamorphine Kernel Module #47

@elyeandre

Description

@elyeandre

❗ Summary

Inserting the diamorphine.ko module on an EC2 ARM64 (Graviton) instance running Ubuntu 22.04 with kernel 6.8.0-1029-aws causes a segmentation fault (kernel panic) due to execution from non-executable memory.

🖥️ System Information

Instance Type: c7g.2xlarge (AWS Graviton3, ARM64)

OS: Ubuntu 22.04

Kernel: 6.8.0-1029-aws

Architecture: aarch64
dmesg | tail -50 (click to expand) [ 333.935453] Unable to handle kernel execute from non-executable memory at virtual address ffffa8b30b241640 [ 333.936547] Mem abort info: [ 333.936872] ESR = 0x000000008600000f [ 333.937297] EC = 0x21: IABT (current EL), IL = 32 bits [ 333.937897] FSC = 0x0f: level 3 permission fault [ 333.941258] Internal error: Oops: 000000008600000f [#1] SMP ... [ 333.949583] pc : update_mapping_prot+0x0/0xfffffffffffd49c0 [diamorphine] [ 333.950335] lr : diamorphine_init+0x15c/0xff8 [diamorphine] [ 333.960265] Call trace: [ 333.960265] update_mapping_prot+0x0/0xfffffffffffd49c0 [diamorphine] [ 333.960265] do_one_initcall+0x64/0x350 [ 333.960265] do_init_module+0xa4/0x288 [ 333.960265] load_module+0x7b0/0x8b0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions