On 07/31/2018 06:25 AM, Eric Dumazet wrote:
> syzbot found that the following sequence produces a LOCKDEP splat [1]
>
> ip link add bond10 type bond
> ip link add bond11 type bond
> ip link set bond11 master bond10
...
> +static struct lock_class_key bond_netdev_addr_lock_key;
> +
Oops, this
syzbot found that the following sequence produces a LOCKDEP splat [1]
ip link add bond10 type bond
ip link add bond11 type bond
ip link set bond11 master bond10
To fix this, we can use the already provided nest_level.
This patch also provides correct nesting for dev->addr_list_lock
[1]
WARNING: