summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorGuvenc Gulce <guvenc@linux.ibm.com>2021-06-25 17:11:02 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-25 11:53:51 -0700
commit17081633e22d83be928a779fd7acd04b247dec90 (patch)
treecbbad7d128615675594f5786c6fc745c2b72d30f /drivers/net
parent4e3db44a242a4e2afe33b59793898ecbb61d478e (diff)
downloadlinux-17081633e22d83be928a779fd7acd04b247dec90.tar.bz2
net/smc: Ensure correct state of the socket in send path
When smc_sendmsg() is called before the SMC socket initialization has completed, smc_tx_sendmsg() will access un-initialized fields of the SMC socket which results in a null-pointer dereference. Fix this by checking the socket state first in smc_tx_sendmsg(). Fixes: e0e4b8fa5338 ("net/smc: Add SMC statistics support") Reported-by: syzbot+5dda108b672b54141857@syzkaller.appspotmail.com Reviewed-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions