[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aee77dea-7161-e988-27f8-bbf6c28d048a@linux.ibm.com>
Date: Thu, 14 Apr 2022 10:29:19 +0200
From: Karsten Graul <kgraul@...ux.ibm.com>
To: Tony Lu <tonylu@...ux.alibaba.com>, davem@...emloft.net,
kuba@...nel.org, pabeni@...hat.com
Cc: netdev@...r.kernel.org, linux-s390@...r.kernel.org
Subject: Re: [PATCH net] net/smc: Fix sock leak when release after
smc_shutdown()
On 14/04/2022 09:51, Tony Lu wrote:
> Since commit e5d5aadcf3cd ("net/smc: fix sk_refcnt underflow on linkdown
> and fallback"), for a fallback connection, __smc_release() does not call
> sock_put() if its state is already SMC_CLOSED.
>
> When calling smc_shutdown() after falling back, its state is set to
> SMC_CLOSED but does not call sock_put(), so this patch calls it.
>
> Reported-and-tested-by: syzbot+6e29a053eb165bd50de5@...kaller.appspotmail.com
> Fixes: e5d5aadcf3cd ("net/smc: fix sk_refcnt underflow on linkdown and fallback")
> Signed-off-by: Tony Lu <tonylu@...ux.alibaba.com>
> ---
Thank you.
Acked-by: Karsten Graul <kgraul@...ux.ibm.com>
Powered by blists - more mailing lists