Merge branch 'mlxsw-various-fixes'
authorJakub Kicinski <kuba@kernel.org>
Mon, 26 Oct 2020 23:45:53 +0000 (16:45 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Oct 2020 23:45:53 +0000 (16:45 -0700)
commit19c176eb079834c5cf8574ce18c1d934ec486dd8
tree1f2c45c147a6931b460a98552b1205fde37943b1
parent522ee51e677112e2baf135b26c1a03a77a7b4454
parent0daf2bf5a2dcf33d446b76360908f109816e2e21
Merge branch 'mlxsw-various-fixes'

Ido Schimmel says:

====================
mlxsw: Various fixes

This patch set contains various fixes for mlxsw.

Patch #1 ensures that only link modes that are supported by both the
device and the driver are advertised. When a link mode that is not
supported by the driver is negotiated by the device, it will be
presented as an unknown speed by ethtool, causing the bond driver to
wrongly assume that the link is down.

Patch #2 fixes a trivial memory leak upon module removal.

Patch #3 fixes a use-after-free that syzkaller was able to trigger once
on a slow emulator after a few months of fuzzing.
====================

Link: https://lore.kernel.org/r/20201024133733.2107509-1-idosch@idosch.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>