Lin Ma 2ab1efad60 net/sched: cls_api: complement tcf_tfilter_dump_policy
In function `tc_dump_tfilter`, the attributes array is parsed via
tcf_tfilter_dump_policy which only describes TCA_DUMP_FLAGS. However,
the NLA TCA_CHAIN is also accessed with `nla_get_u32`.

The access to TCA_CHAIN is introduced in commit 5bc1701881e3 ("net:
sched: introduce multichain support for filters") and no nla_policy is
provided for parsing at that point. Later on, tcf_tfilter_dump_policy is
introduced in commit f8ab1807a9c9 ("net: sched: introduce terse dump
flag") while still ignoring the fact that TCA_CHAIN needs a check. This
patch does that by complementing the policy to allow the access
discussed here can be safe as other cases just choose rtm_tca_policy as
the parsing policy.

Signed-off-by: Lin Ma <linma@zju.edu.cn>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-01-03 11:54:39 +00:00
..
2023-10-01 19:09:54 +01:00
2023-12-15 16:25:55 -08:00
2023-12-26 20:31:01 +00:00
2023-08-29 17:39:15 -07:00
2023-12-29 07:46:38 +00:00
2024-01-02 12:46:10 +00:00
2024-01-02 13:33:33 +00:00
2023-12-20 11:16:50 -08:00
2024-01-02 12:46:10 +00:00
2023-12-26 20:31:01 +00:00
2023-12-18 16:46:08 -08:00
2023-10-11 10:39:01 +01:00