Re: [PATCH 5.10] module: treat exit sections the same as init sections when !CONFIG_MODULE_UNLOAD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

Am 5/23/2022 um 5:15 PM schrieb Greg KH:
> On Mon, May 23, 2022 at 06:39:48AM +0200, Joerg Vehlow wrote:
>> Hi,
>>
>> this mainline patch 33121347fb1c359bd6e3e680b9f2c6ced5734a8 should be
>> applied to 5.15 as well.
> 
> You mean 5.10, right?  It's already in 5.13 and newer releases
Yes of course, I even put it correct in the subject...
> 
>> Without loading of some modules fails, if
>>  1. MODULE_UNLOAD=n
>>  2. Architecture is aarch64 (maybe others as well)
>>  3. KASLR is active
>>
>> Without this patch the symbol .exit.text is not relocated and when the
>> linker generated a relative 32 bit relocation(PREL32) and the module is
>> loaded far enough away from the default loading address, it will trigger
>> a relocation overflow like this:
>>
>> module algif_hash: overflow in relocation type 261 val ffff800010051c20
>>
>> This happens to all modules, that use BUG in the exit section or if the
>> compiler generates a jump table in the exit section.
> 
> Now queued up for 5.10.y, thanks.
Thanks

> 
> greg k-h

Joerg



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux