]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit1992d99882afda6dc17f9d49c06150856a91282f
treeaa249871b27d3e80f1148d7d481419bad67a7586
parentbd598d205055dfe32698261efe1b1b736d9a7173
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