OSDN Git Service

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)
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>

Trivial merge