Skip to content

Kernel module parsing breaks when flags are present #29

@Jackson-Greene

Description

@Jackson-Greene

When a kernel module line in /proc/modules contains a flag it causes the parsing to break as the flags at the end are considered as part of the address.

Example of a line with the flag section (OE):

vboxguest 499712 - - Live 0xffffffffc097d000 (OE)

This result in the error:

ERRO[0000] Failed to load eBPF tracer: failed to read kernel modules: failed to parse kernel modules: failed to parse kernel module line: failed to parse address value: '0xffffffffc097d000 (OE)' 

parca-dev/parca-agent#3018 mentions the same issue. It seems that open-telemetry@6ab0c94 mentioned does not resolve the issue and is already present in the parca-dev fork of opentelemetry-ebpf-profiler (3a0fd6c) as far as I can tell.

PR to follow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions