]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: take sock lock in smc_ioctl()
authorUrsula Braun <ursula.braun@linux.ibm.com>
Mon, 16 Jul 2018 11:56:52 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 21:45:13 +0000 (14:45 -0700)
commit8e7bb6387171146962a75af5c463988b9a35edae
treeaa249871b27d3e80f1148d7d481419bad67a7586
parente69a957f61da15b2270b65978fc9d4510ece3a18
net/smc: take sock lock in smc_ioctl()

SMC ioctl processing requires the sock lock to work properly in
all thinkable scenarios.
Problem has been found with RaceFuzzer and fixes:
   KASAN: null-ptr-deref Read in smc_ioctl

Reported-by: Byoungyoung Lee <lifeasageek@gmail.com>
Reported-by: syzbot+35b2c5aa76fd398b9fd4@syzkaller.appspotmail.com
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c