Re: [PATCH] Free cookie before we memdup a new one

2019-06-10 Thread Xin Long
On Tue, Jun 11, 2019 at 12:35 AM Neil Horman wrote: > > Based on comments from Xin, even after fixes for our recent syzbot > report of cookie memory leaks, its possible to get a resend of an INIT > chunk which would lead to us leaking cookie memory. > > To ensure that we don't leak cookie memory,

Re: [PATCH] Free cookie before we memdup a new one

2019-06-10 Thread David Miller
From: Neil Horman Date: Mon, 10 Jun 2019 12:34:56 -0400 > Based on comments from Xin, even after fixes for our recent syzbot > report of cookie memory leaks, its possible to get a resend of an INIT > chunk which would lead to us leaking cookie memory. > > To ensure that we don't leak cookie memo

[PATCH] Free cookie before we memdup a new one

2019-06-10 Thread Neil Horman
Based on comments from Xin, even after fixes for our recent syzbot report of cookie memory leaks, its possible to get a resend of an INIT chunk which would lead to us leaking cookie memory. To ensure that we don't leak cookie memory, free any previously allocated cookie first. Signed-off-by: Neil