]> git.baikalelectronics.ru Git - kernel.git/commit
kcm: lock lower socket in kcm_attach
authorTom Herbert <tom@quantonium.net>
Tue, 13 Mar 2018 19:01:43 +0000 (12:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 15:12:16 +0000 (11:12 -0400)
commit05a6add802a0f42c7cfab717470a16ce0508ec7f
tree5fc199bed7dada28faa68ad075e5118937d48ecf
parent34a131e0bbbfb41270f8bce36f8340f204279d90
kcm: lock lower socket in kcm_attach

Need to lock lower socket in order to provide mutual exclusion
with kcm_unattach.

v2: Add Reported-by for syzbot

Fixes: 01e0164f62088cf2476423f4 ("kcm: Kernel Connection Multiplexor module")
Reported-by: syzbot+ea75c0ffcd353d32515f064aaebefc5279e6161e@syzkaller.appspotmail.com
Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/kcm/kcmsock.c