Skip to content

Failed to trace XDP: using replacement map .bss: Flags: 1024 changed to 0: map spec is incompatible with existing map #483

@Asphaltt

Description

@Asphaltt
# ./pwru --backend kprobe --filter-trace-tc --filter-trace-xdp --filter-func '.*icmp.*' icmp
2025/01/15 14:04:34 Attaching tc-bpf progs...
2025/01/15 14:04:34 Attaching xdp progs...
2025/01/15 14:04:34 failed to trace XDP progs: failed to trace bpf progs: failed to load objects:
using replacement map .bss: Flags: 1024 changed to 0: map spec is incompatible with existing map

I add a log to check .bss flags:

2025/01/15 14:36:35 spec .bss flags: 0x0, .bss map flags: 0x400

0x400 is BPF_F_MMAPABLE.

/* Enable memory-mapping BPF map */
	BPF_F_MMAPABLE		= (1U << 10),

It seems this flag is set by go-ebpf v0.17.1.

I'll fix it asap.

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