CentOS-Stream-9

Issues related to applications and software problems and general support
Post Reply
rajesh0110
Posts: 1
Joined: 2023/09/28 20:35:23

CentOS-Stream-9

Post by rajesh0110 » 2023/09/28 21:17:03

Hi,

My setup is on VirtualBox 7.0 environment.

I had been using the 09/12 Stream9 build (Kernel:5.14.0-364.el9.x86_64) and I had no problem in compiling our KO modules and running them.
Just 2 weeks later, I was doing the same with the 09/25 Stream9 (Kernel: 5.14.0-368.el9.x86_64). I was using the latest available Stream9.

After compiling our KO modules, the modprobe and the insmod fails with the following errors:

Error reported on the UI:
-----------------------------
modprobe: ERROR: could not insert <MODULE_NAME>: Exec format error

The dmesg output is:
-------------------------
[ 1744.494543] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 00000000e5bf8a0c, val ffffffffc0b162a6

The packages were installed were:
kernel-headers-`uname -r`
kernel-devel

<<<<<<<<<<

[root@localhost smart]# cat /proc/version
Linux version 5.14.0-368.el9.x86_64 (mockbuild@x86-05.stream.rdu2.redhat.com) (gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2), GNU ld version 2.35.2-42.el9) #1 SMP PREEMPT_DYNAMIC Thu Sep 21 18:07:33 UTC 2023

[root@localhost smart]# gcc --version
gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

>>>>>>>>>


I saw the same problem with my RHEL 9 setup also. Based on the information I gathered, I tried reinstalling the kernel-headers. I just could not find any other suggestions. From the source code I looked at in the Kernel, looks like the value should be "0" for type 1 (x86_64).

Any pointers is appreciated to resolve this.

Post Reply