Merge branch 'net-sysfs-fix-race-conditions-in-the-xps-code'
authorJakub Kicinski <kuba@kernel.org>
Mon, 28 Dec 2020 21:26:48 +0000 (13:26 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Dec 2020 21:26:49 +0000 (13:26 -0800)
commit5ff3fda971ae6c5a0d884dc9ff8780e89536fb72
tree5894ca9c9d9f474c897e198b9429bf2abc947bc9
parent59b4a8fa27f5a895582ada1ae5034af7c94a57b5
parent4ae2bb81649dc03dfc95875f02126b14b773f7ab
Merge branch 'net-sysfs-fix-race-conditions-in-the-xps-code'

Antoine Tenart says:

====================
net-sysfs: fix race conditions in the xps code

This series fixes race conditions in the xps code, where out of bound
accesses can occur when dev->num_tc is updated, triggering oops. The
root cause is linked to locking issues. An explanation is given in each
of the commit logs.

We had a discussion on the v1 of this series about using the xps_map
mutex instead of the rtnl lock. While that seemed a better compromise,
v2 showed the added complexity wasn't best for fixes. So we decided to
go back to v1 and use the rtnl lock.

Because of this, the only differences between v1 and v3 are improvements
in the commit messages.
====================

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