]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1cd9bf7f6718accdddb3ba868c9784eec197f810
tree6730363453b7815da0cbffdaf9f003374af10f19
parentd90d2d1f17f623388daf63fd53c7683d1e274b8b
parentdda67cf205c418f7a23325ac337ed2040c18324f
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>