aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cordic.c
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-10-11 11:15:13 -0700
committerDavid S. Miller <davem@davemloft.net>2018-10-15 22:01:37 -0700
commit5a8e7aea953bdb6d4da13aff6f1e7f9c62023499 (patch)
treeeadd98d8a321daa8892ba298d62000ed3eb86fca /lib/cordic.c
parentMerge tag 'mlx5-fixes-2018-10-10' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux (diff)
downloadlinux-dev-5a8e7aea953bdb6d4da13aff6f1e7f9c62023499.tar.xz
linux-dev-5a8e7aea953bdb6d4da13aff6f1e7f9c62023499.zip
llc: set SOCK_RCU_FREE in llc_sap_add_socket()
WHen an llc sock is added into the sk_laddr_hash of an llc_sap, it is not marked with SOCK_RCU_FREE. This causes that the sock could be freed while it is still being read by __llc_lookup_established() with RCU read lock. sock is refcounted, but with RCU read lock, nothing prevents the readers getting a zero refcnt. Fix it by setting SOCK_RCU_FREE in llc_sap_add_socket(). Reported-by: syzbot+11e05f04c15e03be5254@syzkaller.appspotmail.com Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/cordic.c')
0 files changed, 0 insertions, 0 deletions