[PATCH] KEYS: always initialize keyring_index_key::desc_len

2019-02-22 Thread David Howells
From: Eric Biggers syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() called from construct_alloc_key() during sys_request_key(), because the length of the key description was never calculated. The problem is that we rely on ->desc_len being initialized by search_process_ke

Re: [PATCH] KEYS: always initialize keyring_index_key::desc_len

2018-11-02 Thread Eric Biggers
On Fri, Nov 02, 2018 at 04:15:10PM -0700, Eric Biggers wrote: > From: Eric Biggers > > syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() > called from construct_alloc_key() during sys_request_key(), because the > length of the key description was never calculated. > > The

[PATCH] KEYS: always initialize keyring_index_key::desc_len

2018-11-02 Thread Eric Biggers
From: Eric Biggers syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() called from construct_alloc_key() during sys_request_key(), because the length of the key description was never calculated. The problem is that we rely on ->desc_len being initialized by search_process_ke