Re: [PATCH 2/5] KEYS: user_defined: sanitize key payloads

From: David Howells
Date: Mon Apr 24 2017 - 10:14:47 EST


Eric Biggers <ebiggers3@xxxxxxxxx> wrote:

> > Add kzfree_rcu()?
> >
> > David
>
> We could, but it's not trivial because the way kfree_rcu() works is to store
> the offset of the rcu_head as the callback function, then have a special
> case in RCU reclaim that recognizes "function pointers" with value < 4096
> and call kfree() rather than the function. ...

Okay, that sounds reasonable.

David