[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <28138.1493043275@warthog.procyon.org.uk>
Date: Mon, 24 Apr 2017 15:14:35 +0100
From: David Howells <dhowells@...hat.com>
To: Eric Biggers <ebiggers3@...il.com>
Cc: dhowells@...hat.com, keyrings@...r.kernel.org,
linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, Eric Biggers <ebiggers@...gle.com>
Subject: Re: [PATCH 2/5] KEYS: user_defined: sanitize key payloads
Eric Biggers <ebiggers3@...il.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.
David
Powered by blists - more mailing lists