Skip to content

[Bug] - eBPF - unable to attach kprobe to kernel module functions #600

Open
@brycekahle

Description

@brycekahle

Describe the bug

amazonlinux/linux@b022f0c introduced a bug which made it impossible to attach a kprobe to a kernel module function, returning ENOENT. This was subsequently fixed a week later in amazonlinux/linux@926fe78 but this commit has not been back-ported to Amazon Linux 2023.

To Reproduce
Steps to reproduce the behavior:

Attach a kprobe to a kernel module function, such as __nf_conntrack_hash_insert in the nf_conntrack kernel module. You get the same error regardless if you get use the PMU or tracefs methods of attaching.

Expected behavior

Successful kprobe attach.

Additional context

uname -r = 6.1.61-85.141.amzn2023.x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkernel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions