Re: [PATCH net-next] bonding: don't need RTNL for ipsec helpers

2020-07-08 Thread David Miller
From: Jarod Wilson Date: Wed, 8 Jul 2020 18:58:49 -0400 > The bond_ipsec_* helpers don't need RTNL, and can potentially get called > without it being held, so switch from rtnl_dereference() to > rcu_dereference() to access bond struct data. > > Lightly tested with xfrm bonding, no problems foun

[PATCH net-next] bonding: don't need RTNL for ipsec helpers

2020-07-08 Thread Jarod Wilson
The bond_ipsec_* helpers don't need RTNL, and can potentially get called without it being held, so switch from rtnl_dereference() to rcu_dereference() to access bond struct data. Lightly tested with xfrm bonding, no problems found, should address the syzkaller bug referenced below. Reported-by: s