diff options
author | Davide Caratti <dcaratti@redhat.com> | 2018-10-10 22:00:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-04 14:52:51 +0100 |
commit | b0ee9bd40d74001cd98de6bac252dd728130dbaa (patch) | |
tree | 4c6be35b99ca3db951a28b3c73a690edf4545150 /drivers/mmc/core/queue.c | |
parent | c8c2df18eedfcb504ed2f5d8ab24e87da7fd3959 (diff) | |
download | linux-stable-b0ee9bd40d74001cd98de6bac252dd728130dbaa.tar.gz linux-stable-b0ee9bd40d74001cd98de6bac252dd728130dbaa.tar.bz2 linux-stable-b0ee9bd40d74001cd98de6bac252dd728130dbaa.zip |
net/sched: cls_api: add missing validation of netlink attributes
[ Upstream commit e331473fee3d500bb0d2582a1fe598df3326d8cd ]
Similarly to what has been done in 8b4c3cdd9dd8 ("net: sched: Add policy
validation for tc attributes"), fix classifier code to add validation of
TCA_CHAIN and TCA_KIND netlink attributes.
tested with:
# ./tdc.py -c filter
v2: Let sch_api and cls_api share nla_policy they have in common, thanks
to David Ahern.
v3: Avoid EXPORT_SYMBOL(), as validation of those attributes is not done
by TC modules, thanks to Cong Wang.
While at it, restore the 'Delete / get qdisc' comment to its orginal
position, just above tc_get_qdisc() function prototype.
Fixes: 5bc1701881e39 ("net: sched: introduce multichain support for filters")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc/core/queue.c')
0 files changed, 0 insertions, 0 deletions