[PATCHv3] bonding: wait for sysfs kobject destruction before freeing struct slave

2020-11-20 Thread Jamie Iles
in bond_sysfs_slave_add.") Cc: Greg Kroah-Hartman Cc: Qiushi Wu Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Signed-off-by: Jamie Iles --- v3: - have a single object lifecycle in the struct slave and remove the explicit deallocation and defer that to the kobject v2:

[PATCHv2] bonding: wait for sysfs kobject destruction before freeing struct slave

2020-11-13 Thread Jamie Iles
in bond_sysfs_slave_add.") Cc: Qiushi Wu Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Cc: Eric Dumazet Signed-off-by: Jamie Iles --- v2: - use a kref for managing the slave lifecycle rather than waiting on a completion and blocking drivers/net/b

Re: [RESEND PATCH] bonding: wait for sysfs kobject destruction before freeing struct slave

2020-11-05 Thread Jamie Iles
Hi Eric, On Thu, Nov 05, 2020 at 01:49:03PM +0100, Eric Dumazet wrote: > On 11/5/20 9:41 AM, Jamie Iles wrote: > > syzkaller found that with CONFIG_DEBUG_KOBJECT_RELEASE=y, releasing a > > struct slave device could result in the following splat: > > > > > > >

[RESEND PATCH] bonding: wait for sysfs kobject destruction before freeing struct slave

2020-11-05 Thread Jamie Iles
in bond_sysfs_slave_add.") Cc: Qiushi Wu Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Signed-off-by: Jamie Iles --- drivers/net/bonding/bond_sysfs_slave.c | 12 include/net/bonding.h | 2 ++ 2 files changed, 14 insertions(+) di

[PATCH 3/5] bonding: wait for sysfs kobject destruction before freeing struct slave

2020-10-12 Thread Jamie Iles
in bond_sysfs_slave_add.") Cc: Qiushi Wu Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Signed-off-by: Jamie Iles --- drivers/net/bonding/bond_sysfs_slave.c | 12 include/net/bonding.h | 2 ++ 2 files changed, 14 insertions(+) di

Re: [PATCH] net/fsl: quieten expected MDIO access failures

2020-09-24 Thread Jamie Iles
Hi Andrew, On Thu, Sep 24, 2020 at 05:04:53PM +0200, Andrew Lunn wrote: > On Thu, Sep 24, 2020 at 03:56:45PM +0100, Jamie Iles wrote: > > MDIO reads can happen during PHY probing, and printing an error with > > dev_err can result in a large number of error messages during device &

[PATCH] net/fsl: quieten expected MDIO access failures

2020-09-24 Thread Jamie Iles
present. Since 0f183fd151c (net/fsl: enable extended scanning in xgmac_mdio) we perform more scanning so there are potentially more failures. Reduce the logging level to dev_dbg which is consistent with the Freescale enetc driver. Cc: Jeremy Linton Signed-off-by: Jamie Iles --- drivers/net