All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/4] net-sysfs: fix race conditions in the xps code
@ 2020-12-17 16:25 Antoine Tenart
  2020-12-17 16:25 ` [PATCH net 1/4] net-sysfs: take the rtnl lock when storing xps_cpus Antoine Tenart
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Antoine Tenart @ 2020-12-17 16:25 UTC (permalink / raw)
  To: davem, kuba; +Cc: Antoine Tenart, netdev, pabeni

Hello all,

This series fixes two similar issues, one with xps_cpus and one with
xps_rxqs, where a race condition can occur between accesses to the
xps_cpus and xps_rxqs maps and the update of dev->num_tc. Those races
lead to accesses outside of the map and oops being triggered. An
explanation is given in each of the commit logs.

Thanks!
Antoine

Antoine Tenart (4):
  net-sysfs: take the rtnl lock when storing xps_cpus
  net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc
  net-sysfs: take the rtnl lock when storing xps_rxqs
  net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc

 net/core/net-sysfs.c | 65 ++++++++++++++++++++++++++++++++++++--------
 1 file changed, 53 insertions(+), 12 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-12-21  4:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 16:25 [PATCH net 0/4] net-sysfs: fix race conditions in the xps code Antoine Tenart
2020-12-17 16:25 ` [PATCH net 1/4] net-sysfs: take the rtnl lock when storing xps_cpus Antoine Tenart
2020-12-18 15:27   ` kernel test robot
2020-12-18 15:27     ` kernel test robot
2020-12-18 16:11     ` Antoine Tenart
2020-12-18 16:11       ` Antoine Tenart
2020-12-21  4:09       ` [kbuild-all] " Philip Li
2020-12-21  4:09         ` Philip Li
2020-12-19  0:30   ` Jakub Kicinski
2020-12-19  1:41     ` Alexander Duyck
2020-12-19 15:01       ` Antoine Tenart
2020-12-17 16:25 ` [PATCH net 2/4] net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc Antoine Tenart
2020-12-17 16:25 ` [PATCH net 3/4] net-sysfs: take the rtnl lock when storing xps_rxqs Antoine Tenart
2020-12-17 16:25 ` [PATCH net 4/4] net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc Antoine Tenart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.