]> 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)
commita57573d5d16207c8a16c235cc9ef6ab7a93c1dfb
treeaa249871b27d3e80f1148d7d481419bad67a7586
parentd55bba94a47cca9f9c134832b6f649ac0e365cc5
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