Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH 1/1][BUG][IMPORTANT] KEYRINGS: find_keyring_by_name() can gain the freed keyring | Date | Thu, 22 Apr 2010 11:16:10 +0100 |
| |
Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> wrote:
> With linux-2.6.34-rc5, find_keyring_by_name() can gain the keyring which has > been already freed. And then, its space (which is gained by > find_keyring_by_name()) is broken by accessing the freed keyring as the > available keyring.
Good catch!
I'm not sure this is the best solution, though.
The alternative is just to ignore keys that have a zero usage count.
David
| |