]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: fix rcu lock in xfrm_notify_userpolicy()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 22 Sep 2021 08:50:06 +0000 (10:50 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 23 Sep 2021 08:11:12 +0000 (10:11 +0200)
commitbc33eabe7f97c29c86d66e345c68e217d3c41944
treeac03e9c7e839e7aca5e7a0e6f658978d79c08dc3
parentb2f2ba05475ee016b32c5c136d28f46383cf4b02
xfrm: fix rcu lock in xfrm_notify_userpolicy()

As stated in the comment above xfrm_nlmsg_multicast(), rcu read lock must
be held before calling this function.

Reported-by: syzbot+3d9866419b4aa8f985d6@syzkaller.appspotmail.com
Fixes: 703b94b93c19 ("xfrm: notify default policy on update")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c