[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190614.192759.352171429890636844.davem@davemloft.net>
Date: Fri, 14 Jun 2019 19:27:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: nhorman@...driver.com
Cc: linux-sctp@...r.kernel.org, netdev@...r.kernel.org,
syzbot+f7e9153b037eac9b1df8@...kaller.appspotmail.com,
marcelo.leitner@...il.com, lucien.xin@...il.com
Subject: Re: [PATCH v5 net] sctp: Free cookie before we memdup a new one
From: Neil Horman <nhorman@...driver.com>
Date: Thu, 13 Jun 2019 06:35:59 -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 memory, free any previously
> allocated cookie first.
>
> Change notes
> v1->v2
> update subsystem tag in subject (davem)
> repeat kfree check for peer_random and peer_hmacs (xin)
>
> v2->v3
> net->sctp
> also free peer_chunks
>
> v3->v4
> fix subject tags
>
> v4->v5
> remove cut line
>
> Signed-off-by: Neil Horman <nhorman@...driver.com>
> Reported-by: syzbot+f7e9153b037eac9b1df8@...kaller.appspotmail.com
Applied, thanks.
Powered by blists - more mailing lists