Re: [PATCH v9] module: replace module_layout with module_memory

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

 




> On Feb 7, 2023, at 2:13 AM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> 
> On Mon, Feb 06 2023 at 23:27, Song Liu wrote:
>>> On Feb 6, 2023, at 1:45 PM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>>>> +static void free_mod_mem(struct module *mod)
>>>> +{
>>>> + /* free the memory in the right order to avoid use-after-free */
>>> 
>>> How do we end up with a UAF when the ordering is different?
>> 
>> IIUC, we need remove MOD_DATA at last, which hosts "mod".
> 
> Oh. Please add a comment to that effect.
> 

Oops, I sent v10 too fast. 

Thanks,
Song




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux