Revision 1255fcb2a655f05e02f3a74675a6d6525f187afd authored by Ursula Braun on 19 April 2018, 13:56:40 UTC, committed by David S. Miller on 19 April 2018, 20:38:39 UTC
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@linux.vnet.ibm.com>
Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a60faa6
History
File Mode Size
platform
acbuffer.h -rw-r--r-- 8.6 KB
acconfig.h -rw-r--r-- 7.0 KB
acexcep.h -rw-r--r-- 16.2 KB
acnames.h -rw-r--r-- 2.0 KB
acoutput.h -rw-r--r-- 16.0 KB
acpi.h -rw-r--r-- 1.3 KB
acpi_bus.h -rw-r--r-- 19.1 KB
acpi_drivers.h -rw-r--r-- 4.1 KB
acpi_io.h -rw-r--r-- 713 bytes
acpi_lpat.h -rw-r--r-- 1.5 KB
acpi_numa.h -rw-r--r-- 623 bytes
acpiosxf.h -rw-r--r-- 10.7 KB
acpixf.h -rw-r--r-- 30.3 KB
acrestyp.h -rw-r--r-- 18.8 KB
actbl.h -rw-r--r-- 18.3 KB
actbl1.h -rw-r--r-- 40.3 KB
actbl2.h -rw-r--r-- 44.9 KB
actbl3.h -rw-r--r-- 20.0 KB
actypes.h -rw-r--r-- 40.6 KB
acuuid.h -rw-r--r-- 2.4 KB
apei.h -rw-r--r-- 1.3 KB
battery.h -rw-r--r-- 561 bytes
button.h -rw-r--r-- 621 bytes
cppc_acpi.h -rw-r--r-- 2.9 KB
ghes.h -rw-r--r-- 2.9 KB
hed.h -rw-r--r-- 371 bytes
nfit.h -rw-r--r-- 351 bytes
pcc.h -rw-r--r-- 816 bytes
pdc_intel.h -rw-r--r-- 1.0 KB
processor.h -rw-r--r-- 11.0 KB
reboot.h -rw-r--r-- 201 bytes
video.h -rw-r--r-- 2.8 KB

back to top