]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: return 0 for ioctl calls in states INIT and CLOSED
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 23 May 2018 14:38:09 +0000 (16:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:02:35 +0000 (16:02 -0400)
commit6004b2d876b882fec2a94c22fa839f6783c25ae1
tree514a007832019511de2d7bac67c3ec732aeb783d
parent38769df17c01022812de292cd9674166f71cd58a
net/smc: return 0 for ioctl calls in states INIT and CLOSED

A connected SMC-socket contains addresses of descriptors for the
send buffer and the rmb (receive buffer). Fields of these descriptors
are used to determine the answer for certain ioctl requests.
Add extra handling for unconnected SMC socket states without valid
buffer descriptor addresses.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Reported-by: syzbot+e6714328fda813fc670f@syzkaller.appspotmail.com
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c