• Yotam Gigi's avatar
    act_ife: Fix false encoding · c006da0b
    Yotam Gigi authored
    On ife encode side, the action stores the different tlvs inside the ife
    header, where each tlv length field should refer to the length of the
    whole tlv (without additional padding) and not just the data length.
    
    On ife decode side, the action iterates over the tlvs in the ife header
    and parses them one by one, where in each iteration the current pointer is
    advanced according to the tlv size.
    
    Before, the encoding encoded only the data length inside the tlv, which led
    to false parsing of ife the header. In addition, due to the fact that the
    loop counter was unsigned, it could lead to infinite parsing loop.
    
    This fix changes the loop counter to be signed and fixes the encoding to
    take into account the tlv type and size.
    
    Fixes: 28a10c42 ("net sched: fix encoding to use real length")
    Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
    Signed-off-by: default avatarYotam Gigi <yotamg@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c006da0b
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
act_api.c Loading commit data...
act_bpf.c Loading commit data...
act_connmark.c Loading commit data...
act_csum.c Loading commit data...
act_gact.c Loading commit data...
act_ife.c Loading commit data...
act_ipt.c Loading commit data...
act_meta_mark.c Loading commit data...
act_meta_skbprio.c Loading commit data...
act_mirred.c Loading commit data...
act_nat.c Loading commit data...
act_pedit.c Loading commit data...
act_police.c Loading commit data...
act_simple.c Loading commit data...
act_skbedit.c Loading commit data...
act_vlan.c Loading commit data...
cls_api.c Loading commit data...
cls_basic.c Loading commit data...
cls_bpf.c Loading commit data...
cls_cgroup.c Loading commit data...
cls_flow.c Loading commit data...
cls_flower.c Loading commit data...
cls_fw.c Loading commit data...
cls_matchall.c Loading commit data...
cls_route.c Loading commit data...
cls_rsvp.c Loading commit data...
cls_rsvp.h Loading commit data...
cls_rsvp6.c Loading commit data...
cls_tcindex.c Loading commit data...
cls_u32.c Loading commit data...
em_canid.c Loading commit data...
em_cmp.c Loading commit data...
em_ipset.c Loading commit data...
em_meta.c Loading commit data...
em_nbyte.c Loading commit data...
em_text.c Loading commit data...
em_u32.c Loading commit data...
ematch.c Loading commit data...
sch_api.c Loading commit data...
sch_atm.c Loading commit data...
sch_blackhole.c Loading commit data...
sch_cbq.c Loading commit data...
sch_choke.c Loading commit data...
sch_codel.c Loading commit data...
sch_drr.c Loading commit data...
sch_dsmark.c Loading commit data...
sch_fifo.c Loading commit data...
sch_fq.c Loading commit data...
sch_fq_codel.c Loading commit data...
sch_generic.c Loading commit data...
sch_gred.c Loading commit data...
sch_hfsc.c Loading commit data...
sch_hhf.c Loading commit data...
sch_htb.c Loading commit data...
sch_ingress.c Loading commit data...
sch_mq.c Loading commit data...
sch_mqprio.c Loading commit data...
sch_multiq.c Loading commit data...
sch_netem.c Loading commit data...
sch_pie.c Loading commit data...
sch_plug.c Loading commit data...
sch_prio.c Loading commit data...
sch_qfq.c Loading commit data...
sch_red.c Loading commit data...
sch_sfb.c Loading commit data...
sch_sfq.c Loading commit data...
sch_tbf.c Loading commit data...
sch_teql.c Loading commit data...