All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net 0/5] Ocelot VCAP fixes
@ 2022-05-04 23:54 Vladimir Oltean
  2022-05-04 23:54 ` [PATCH v2 net 1/5] net: mscc: ocelot: mark traps with a bool instead of keeping them in a list Vladimir Oltean
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Vladimir Oltean @ 2022-05-04 23:54 UTC (permalink / raw)
  To: netdev
  Cc: Jakub Kicinski, David S. Miller, Paolo Abeni, Eric Dumazet,
	Florian Fainelli, Vivien Didelot, Andrew Lunn, Vladimir Oltean,
	Claudiu Manoil, Alexandre Belloni, UNGLinuxDriver, Xiaoliang Yang,
	Colin Foster

Changes in v2:
fix the NPDs and UAFs caused by filter->trap_list in a more robust way
that actually does not introduce bugs of its own (1/5)

This series fixes issues found while running
tools/testing/selftests/net/forwarding/tc_actions.sh on the ocelot
switch:

- NULL pointer dereference when failing to offload a filter
- NULL pointer dereference after deleting a trap
- filters still having effect after being deleted
- dropped packets still being seen by software
- statistics counters showing double the amount of hits
- statistics counters showing inexistent hits
- invalid configurations not rejected

Vladimir Oltean (5):
  net: mscc: ocelot: mark traps with a bool instead of keeping them in a
    list
  net: mscc: ocelot: fix last VCAP IS1/IS2 filter persisting in hardware
    when deleted
  net: mscc: ocelot: fix VCAP IS2 filters matching on both lookups
  net: mscc: ocelot: restrict tc-trap actions to VCAP IS2 lookup 0
  net: mscc: ocelot: avoid corrupting hardware counters when moving VCAP
    filters

 drivers/net/dsa/ocelot/felix.c            |  7 ++++++-
 drivers/net/ethernet/mscc/ocelot.c        | 11 +++--------
 drivers/net/ethernet/mscc/ocelot_flower.c |  9 ++++-----
 drivers/net/ethernet/mscc/ocelot_vcap.c   |  9 ++++++++-
 include/soc/mscc/ocelot_vcap.h            |  2 +-
 5 files changed, 22 insertions(+), 16 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-05-06  2:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-04 23:54 [PATCH v2 net 0/5] Ocelot VCAP fixes Vladimir Oltean
2022-05-04 23:54 ` [PATCH v2 net 1/5] net: mscc: ocelot: mark traps with a bool instead of keeping them in a list Vladimir Oltean
2022-05-04 23:55 ` [PATCH v2 net 2/5] net: mscc: ocelot: fix last VCAP IS1/IS2 filter persisting in hardware when deleted Vladimir Oltean
2022-05-04 23:55 ` [PATCH v2 net 3/5] net: mscc: ocelot: fix VCAP IS2 filters matching on both lookups Vladimir Oltean
2022-05-04 23:55 ` [PATCH v2 net 4/5] net: mscc: ocelot: restrict tc-trap actions to VCAP IS2 lookup 0 Vladimir Oltean
2022-05-04 23:55 ` [PATCH v2 net 5/5] net: mscc: ocelot: avoid corrupting hardware counters when moving VCAP filters Vladimir Oltean
2022-05-06  2:30 ` [PATCH v2 net 0/5] Ocelot VCAP fixes patchwork-bot+netdevbpf

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.