]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: m_action: fix parsing of TCA_EXT_WARN_MSG
authorPedro Tammela <pctammela@mojatatu.com>
Fri, 24 Feb 2023 17:57:56 +0000 (14:57 -0300)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 24 Feb 2023 18:09:18 +0000 (10:09 -0800)
commit70b9ebae63ce7e6f9911bdfbcf47a6d18f24159a
tree424ba9f51f64f4f96568029d95c84e1725ef81fe
parent4e0e56e0ef05387f7f5d8ab41fe6ec6a1897b26d
tc: m_action: fix parsing of TCA_EXT_WARN_MSG

It should sit within the TCA_ACT_TAB hierarchy, otherwise the access to
tb is out of bounds:
./tc action ls action csum
total acts 1

        action order 0: csum (?empty) action pass
        index 1 ref 1 bind 0
        not_in_hw
Segmentation fault (core dumped)

Fixes: 60359956 ("tc: add new attr TCA_EXT_WARN_MSG")
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_action.c