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

From
Song Liu <hidden>
Date
2023-02-07 22:15:57
Also in
lkml
Reply to
Thomas Gleixner, 2023-02-07
On Feb 7, 2023, at 2:13 AM, Thomas Gleixner [off-list ref] wrote:

On Mon, Feb 06 2023 at 23:27, Song Liu wrote:
quoted
quoted
On Feb 6, 2023, at 1:45 PM, Thomas Gleixner [off-list ref] wrote:
quoted
+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
Thread (6 messages) 6 messages, 3 authors, last reply 2023-02-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help