Merge branch 'ocelot-vcap-fixes'
authorJakub Kicinski <kuba@kernel.org>
Fri, 6 May 2022 02:15:20 +0000 (19:15 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 May 2022 02:15:22 +0000 (19:15 -0700)
commitc88d3908516d301972420160f5f15f936ba3ec3a
tree6730363453b7815da0cbffdaf9f003374af10f19
parent4e707344e18525b4edf5c2bc2e3eb60692e8c92e
parent93a8417088ea570b5721d2b526337a2d3aed9fa3
Merge branch 'ocelot-vcap-fixes'

Vladimir Oltean says:

====================
Ocelot VCAP fixes

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

Link: https://lore.kernel.org/r/20220504235503.4161890-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>