virtio: section 4 reloc 2 sym '_raw_spin_lock_irq': relocation 28 out of range (0xbf0030a4 -> 0xc10030d4)

Vitaly Chikunov vt at altlinux.org
Wed May 10 21:45:38 PDT 2023


On Sat, Mar 11, 2023 at 01:23:09AM +0300, Vitaly Chikunov wrote:
> Hi,
> 
> Somewhere since v6.1.13 we starting to get intermittent(*) modprobe errors
> like this:
> 
>   [    0.301878] virtio: section 4 reloc 2 sym '_raw_spin_lock_irq': relocation 28 out of range (0xbf0030a4 -> 0xc10030d4)
> 
> Modules loading in correct order. What is helped to workaround each time
> is to modprobe some other module before this.

If someone googles it, the fix is to set CONFIG_ARM_MODULE_PLTS=y.

Thanks,

> (*) "Intermittent" in a sense it depends on kernel build and module load
> ordering, they are consistent for each particular build and module load
> order. But it's hard to provide reproducer for everyone.
> 
> Thanks,
> 



More information about the linux-arm-kernel mailing list