[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190626.193011.1423969728804124428.davem@davemloft.net>
Date: Wed, 26 Jun 2019 19:30:11 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
marcelo.leitner@...il.com, nhorman@...driver.com,
syzkaller-bugs@...glegroups.com
Subject: Re: [PATCH net] sctp: change to hold sk after auth shkey is
created successfully
From: Xin Long <lucien.xin@...il.com>
Date: Tue, 25 Jun 2019 00:21:45 +0800
> Now in sctp_endpoint_init(), it holds the sk then creates auth
> shkey. But when the creation fails, it doesn't release the sk,
> which causes a sk defcnf leak,
>
> Here to fix it by only holding the sk when auth shkey is created
> successfully.
>
> Fixes: a29a5bd4f5c3 ("[SCTP]: Implement SCTP-AUTH initializations.")
> Reported-by: syzbot+afabda3890cc2f765041@...kaller.appspotmail.com
> Reported-by: syzbot+276ca1c77a19977c0130@...kaller.appspotmail.com
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied and queued up for -stable, thanks Xin.
Powered by blists - more mailing lists