Re: [PATCH net] bonding: fix potential NULL deref in bond_update_slave_arr

2019-10-09 Thread Jakub Kicinski
On Mon, 7 Oct 2019 15:43:01 -0700, Eric Dumazet wrote: > syzbot got a NULL dereference in bond_update_slave_arr() [1], > happening after a failure to allocate bond->slave_arr > > A workqueue (bond_slave_arr_handler) is supposed to retry > the allocation later, but if the slave is removed before >

[PATCH net] bonding: fix potential NULL deref in bond_update_slave_arr

2019-10-07 Thread Eric Dumazet
syzbot got a NULL dereference in bond_update_slave_arr() [1], happening after a failure to allocate bond->slave_arr A workqueue (bond_slave_arr_handler) is supposed to retry the allocation later, but if the slave is removed before the workqueue had a chance to complete, bond->slave_err can still b