[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180419.163911.695170658014127807.davem@davemloft.net>
Date: Thu, 19 Apr 2018 16:39:11 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ubraun@...ux.ibm.com
Cc: netdev@...r.kernel.org, linux-s390@...r.kernel.org,
schwidefsky@...ibm.com, heiko.carstens@...ibm.com,
raspl@...ux.vnet.ibm.com, stephen@...workplumber.org,
ubraun@...ux.vnet.ibm.com
Subject: Re: [PATCH net 1/1] net/smc: fix shutdown in state SMC_LISTEN
From: Ursula Braun <ubraun@...ux.ibm.com>
Date: Thu, 19 Apr 2018 15:56:40 +0200
> From: Ursula Braun <ubraun@...ux.vnet.ibm.com>
>
> Calling shutdown with SHUT_RD and SHUT_RDWR for a listening SMC socket
> crashes, because
> commit 127f49705823 ("net/smc: release clcsock from tcp_listen_worker")
> releases the internal clcsock in smc_close_active() and sets smc->clcsock
> to NULL.
> For SHUT_RD the smc_close_active() call is removed.
> For SHUT_RDWR the kernel_sock_shutdown() call is omitted, since the
> clcsock is already released.
>
> Fixes: 127f49705823 ("net/smc: release clcsock from tcp_listen_worker")
> Signed-off-by: Ursula Braun <ubraun@...ux.vnet.ibm.com>
> Reported-by: Stephen Hemminger <stephen@...workplumber.org>
Applied, thank you.
Powered by blists - more mailing lists