Re: [PATCH net] net: dsa: unbind all switches from tree when DSA master unbinds

2021-01-12 Thread Jakub Kicinski
On Tue, 12 Jan 2021 10:51:39 -0800 Florian Fainelli wrote: > On 1/11/21 3:09 PM, Vladimir Oltean wrote: > > From: Vladimir Oltean > > > > Currently the following happens when a DSA master driver unbinds while > > there are DSA switches attached to it: > > > > $ echo :00:00.5 > /sys/bus/pci/d

Re: [PATCH net] net: dsa: unbind all switches from tree when DSA master unbinds

2021-01-12 Thread Florian Fainelli
On 1/11/21 3:09 PM, Vladimir Oltean wrote: > From: Vladimir Oltean > > Currently the following happens when a DSA master driver unbinds while > there are DSA switches attached to it: > > $ echo :00:00.5 > /sys/bus/pci/drivers/mscc_felix/unbind > [ cut here ] > WARNING

[PATCH net] net: dsa: unbind all switches from tree when DSA master unbinds

2021-01-11 Thread Vladimir Oltean
From: Vladimir Oltean Currently the following happens when a DSA master driver unbinds while there are DSA switches attached to it: $ echo :00:00.5 > /sys/bus/pci/drivers/mscc_felix/unbind [ cut here ] WARNING: CPU: 0 PID: 392 at net/core/dev.c:9507 Call trace: rollb

Re: [PATCH net] net: dsa: unbind all switches from tree when DSA master unbinds

2021-01-11 Thread Florian Fainelli
On 1/11/21 3:09 PM, Vladimir Oltean wrote: > From: Vladimir Oltean > > Currently the following happens when a DSA master driver unbinds while > there are DSA switches attached to it: > > $ echo :00:00.5 > /sys/bus/pci/drivers/mscc_felix/unbind > [ cut here ] > WARNING

Re: [PATCH net] net: dsa: unbind all switches from tree when DSA master unbinds

2021-01-11 Thread Vladimir Oltean
On Mon, Jan 11, 2021 at 03:40:46PM -0800, Florian Fainelli wrote: > == > [ 61.359856] BUG: KASAN: use-after-free in devlink_nl_port_fill+0x578/0x7a8 > [ 61.366847] Read of size 4 at addr c7cf00a8 by task sh/249 > [ 61.372413] > [