Invalid Module Format error

Latest response

RHEL 9.2 on Virtual Box
Kernel: 5.14.0-284.25.1.el9_2.x86_64
No kernel parameter altered. ISO image installed on Virtual Box and run.

After building our custom KO module, while doing insmod/modprobe
the following error is reported:
insmod: ERROR: could not insert module : Invalid module format

The dmesg log reports this:
module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc , val

Could not figure out the reason.

Responses