commit | caa21e19e08d7a1445116a93f7ab4e187ebbbadb | [log] [tgz] |
---|---|---|
author | Ursula Braun <ubraun@linux.ibm.com> | Wed Aug 08 14:13:19 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Aug 08 19:14:22 2018 -0700 |
tree | 5cc5dccf2d25d7305186bbf5cf94e67563f8d9bf | |
parent | 11ba961c916127651e12af6cad3891f8aeb25aa9 [diff] |
net/smc: no shutdown in state SMC_LISTEN Invoking shutdown for a socket in state SMC_LISTEN does not make sense. Nevertheless programs like syzbot fuzzing the kernel may try to do this. For SMC this means a socket refcounting problem. This patch makes sure a shutdown call for an SMC socket in state SMC_LISTEN simply returns with -ENOTCONN. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>