Re: [RFC][PATCH 7/7] kprobes: Replace rp->free_instance with freelist

From: Masami Hiramatsu
Date: Sat Aug 29 2020 - 05:15:29 EST


On Fri, 28 Aug 2020 22:31:17 -0400
Cameron <cameron@xxxxxxxxxxxxxx> wrote:

> On Fri, Aug 28, 2020 at 10:29 PM Cameron <cameron@xxxxxxxxxxxxxx> wrote:
> > I thought about this some more, and actually, it should be safe.
>
> Although I should note that it's important that the flags/refcount are
> not overwritten
> even after the node is taken off the freelist.

Thanks for the check, but I personally would like to keep it separated
because the memory layouts of those in-kernel list-like data structures
can be changed by debug config option...

Thank you,


--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>