Re: [PATCH] strparser: initialize all callbacks

2017-08-25 Thread Tom Herbert
On Thu, Aug 24, 2017 at 2:38 PM, Eric Biggers wrote: > From: Eric Biggers > > commit bbb03029a899 ("strparser: Generalize strparser") added more > function pointers to 'struct strp_callbacks'; however, kcm_attach() was > not updated to initialize them. This could cause the ->lock() and/or > ->un

Re: [PATCH] strparser: initialize all callbacks

2017-08-24 Thread David Miller
From: Eric Biggers Date: Thu, 24 Aug 2017 14:38:51 -0700 > From: Eric Biggers > > commit bbb03029a899 ("strparser: Generalize strparser") added more > function pointers to 'struct strp_callbacks'; however, kcm_attach() was > not updated to initialize them. This could cause the ->lock() and/or

[PATCH] strparser: initialize all callbacks

2017-08-24 Thread Eric Biggers
From: Eric Biggers commit bbb03029a899 ("strparser: Generalize strparser") added more function pointers to 'struct strp_callbacks'; however, kcm_attach() was not updated to initialize them. This could cause the ->lock() and/or ->unlock() function pointers to be set to garbage values, causing a c