Skip to content

kmod-parser: duplicate module filename causes failure #279

Description

@ddiss

I hit this on a debian aarch64 image:

aarch64-ci:~/rapido$ ./rapido cut -B simple-example
no rapido.conf, using defaults
Error: Custom { kind: InvalidInput, error: "Failed to load modules.builtin: duplicate entry: \"kernel/drivers/perf/arm-cci.ko\"" }

aarch64-ci:~/rapido$ grep arm-cci /usr/lib/modules/$(uname -r)/*
grep: /usr/lib/modules/6.12.105+deb13-cloud-arm64/kernel: Is a directory
/usr/lib/modules/6.12.105+deb13-cloud-arm64/modules.builtin:kernel/drivers/bus/arm-cci.ko
/usr/lib/modules/6.12.105+deb13-cloud-arm64/modules.builtin:kernel/drivers/perf/arm-cci.ko

I'm not sure how we should handle duplicate module names like this (I didn't think there were any), but I suppose we should look at how regular kmod behaves.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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