Re: [PATCH] security: keys: add NULL checking for key->type->instantiate

2019-02-26 Thread Geliang Tang
On Wed, Feb 06, 2019 at 10:26:53PM +, David Howells wrote: > Geliang Tang wrote: > > > key->type->instantiate can be NULL, add NULL checking to prevent > > NULL pointer dereference in __key_instantiate_and_link(). > > Do you have an oops report or test case for this? > > David Here is the

Re: [PATCH] security: keys: add NULL checking for key->type->instantiate

2019-02-26 Thread Geliang Tang
On Wed, Feb 06, 2019 at 10:26:53PM +, David Howells wrote: > Geliang Tang wrote: > > > key->type->instantiate can be NULL, add NULL checking to prevent > > NULL pointer dereference in __key_instantiate_and_link(). > > Do you have an oops report or test case for this? > > David Here is the

Re: [PATCH] security: keys: add NULL checking for key->type->instantiate

2019-02-06 Thread David Howells
Geliang Tang wrote: > key->type->instantiate can be NULL, add NULL checking to prevent > NULL pointer dereference in __key_instantiate_and_link(). Do you have an oops report or test case for this? David

[PATCH] security: keys: add NULL checking for key->type->instantiate

2019-01-24 Thread Geliang Tang
key->type->instantiate can be NULL, add NULL checking to prevent NULL pointer dereference in __key_instantiate_and_link(). Signed-off-by: Geliang Tang --- security/keys/key.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/keys/key.c b/security/keys/key.c index