summaryrefslogtreecommitdiff
path: root/net/lapb
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2017-12-31 16:18:56 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2017-12-31 16:29:24 +0100
commit2f10a61cee8fdb9f8da90f5db687e1862b22cf06 (patch)
treece6216dcf1b159f1c63a130778fe81105a3bd8fb /net/lapb
parent4e765b4972af7b07adcb1feb16e7a525ce1f6b28 (diff)
downloadlinux-2f10a61cee8fdb9f8da90f5db687e1862b22cf06.tar.gz
linux-2f10a61cee8fdb9f8da90f5db687e1862b22cf06.tar.xz
xfrm: fix rcu usage in xfrm_get_type_offload
request_module can sleep, thus we cannot hold rcu_read_lock() while calling it. The function also jumps back and takes rcu_read_lock() again (in xfrm_state_get_afinfo()), resulting in an imbalance. This codepath is triggered whenever a new offloaded state is created. Fixes: ffdb5211da1c ("xfrm: Auto-load xfrm offload modules") Reported-by: syzbot+ca425f44816d749e8eb49755567a75ee48cf4a30@syzkaller.appspotmail.com Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions