diff options
| author | Hadar Hen Zion <hadarh@mellanox.com> | 2016-08-17 13:36:12 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:21 +0200 |
| commit | 0869a49fe44d9c7b9a3828bfa18cda157b49952d (patch) | |
| tree | 81ba4bcbf9b2c78005225c1224c44a0c3f1b90ff /kernel/sysctl_binary.c | |
| parent | d072303a2b5ea99de5560412d336f7a6ffdd3e7a (diff) | |
net_sched: flower: Avoid dissection of unmasked keys
commit 339ba878cfb01b68de3d281ba33fd5e4c9f76546 upstream.
The current flower implementation checks the mask range and set all the
keys included in that range as "used_keys", even if a specific key in
the range has a zero mask.
This behavior can cause a false positive return value of
dissector_uses_key function and unnecessary dissection in
__skb_flow_dissect.
This patch checks explicitly the mask of each key and "used_keys" will
be set accordingly.
Fixes: 77b9900ef53a ('tc: introduce Flower classifier')
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
