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

David Howells dhowells at redhat.com
Mon Apr 24 14:14:35 UTC 2017

Eric Biggers <ebiggers3 at gmail.com> 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.

To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

More information about the Linux-security-module-archive mailing list