aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorLena Wang <lena.wang@mediatek.com>2024-03-05 11:38:55 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2024-03-07 03:10:35 +0100
commit767146637efc528b5e3d31297df115e85a2fd362 (patch)
treeee18a9c9b27ffc2005c43f383d801df3810c75a7 /tools/perf/scripts/python/netdev-times.py
parentnetfilter: nf_tables: mark set as dead when unbinding anonymous set with timeout (diff)
downloadlinux-767146637efc528b5e3d31297df115e85a2fd362.tar.gz
linux-767146637efc528b5e3d31297df115e85a2fd362.zip
netfilter: nf_conntrack_h323: Add protection for bmp length out of range
UBSAN load reports an exception of BRK#5515 SHIFT_ISSUE:Bitwise shifts that are out of bounds for their data type. vmlinux get_bitmap(b=75) + 712 <net/netfilter/nf_conntrack_h323_asn1.c:0> vmlinux decode_seq(bs=0xFFFFFFD008037000, f=0xFFFFFFD008037018, level=134443100) + 1956 <net/netfilter/nf_conntrack_h323_asn1.c:592> vmlinux decode_choice(base=0xFFFFFFD0080370F0, level=23843636) + 1216 <net/netfilter/nf_conntrack_h323_asn1.c:814> vmlinux decode_seq(f=0xFFFFFFD0080371A8, level=134443500) + 812 <net/netfilter/nf_conntrack_h323_asn1.c:576> vmlinux decode_choice(base=0xFFFFFFD008037280, level=0) + 1216 <net/netfilter/nf_conntrack_h323_asn1.c:814> vmlinux DecodeRasMessage() + 304 <net/netfilter/nf_conntrack_h323_asn1.c:833> vmlinux ras_help() + 684 <net/netfilter/nf_conntrack_h323_main.c:1728> vmlinux nf_confirm() + 188 <net/netfilter/nf_conntrack_proto.c:137> Due to abnormal data in skb->data, the extension bitmap length exceeds 32 when decoding ras message then uses the length to make a shift operation. It will change into negative after several loop. UBSAN load could detect a negative shift as an undefined behaviour and reports exception. So we add the protection to avoid the length exceeding 32. Or else it will return out of range error and stop decoding. Fixes: 5e35941d9901 ("[NETFILTER]: Add H.323 conntrack/NAT helper") Signed-off-by: Lena Wang <lena.wang@mediatek.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
'>+21 2020-09-16mlxsw: spectrum_buffers: Convert mlxsw_sp_port_headroom_init()Petr Machata1-52/+23 2020-09-16mlxsw: spectrum_buffers: Inline mlxsw_sp_sb_max_headroom_cells()Petr Machata2-9/+1 2020-09-16mlxsw: spectrum_buffers: Move here the new headroom codePetr Machata2-201/+199 2020-09-16mlxsw: spectrum: Move here the three-step headroom configuration from DCBPetr Machata2-61/+61 2020-09-16mlxsw: spectrum_dcb: Convert mlxsw_sp_port_pg_prio_map() to hdroom codePetr Machata1-10/+19 2020-09-16mlxsw: spectrum_dcb: Convert ETS handler fully to mlxsw_sp_hdroom_configure()Petr Machata1-36/+6 2020-09-16mlxsw: spectrum: Split headroom autoresize out of buffer configurationPetr Machata4-31/+97 2020-09-16mlxsw: spectrum: Track buffer sizes in struct mlxsw_sp_hdroomPetr Machata2-5/+16 2020-09-16mlxsw: spectrum: Track lossiness in struct mlxsw_sp_hdroomPetr Machata5-49/+64 2020-09-16mlxsw: spectrum: Track priorities in struct mlxsw_sp_hdroomPetr Machata4-13/+35 2020-09-16mlxsw: spectrum: Track MTU in struct mlxsw_sp_hdroomPetr Machata5-20/+26 2020-09-16mlxsw: spectrum: Unify delay handling between PFC and pausePetr Machata4-45/+67 2020-09-16mlxsw: spectrum_buffers: Add struct mlxsw_sp_hdroomPetr Machata3-2/+25 2020-09-15selftests: fib_nexthops: Test cleanup of FDB entries following nexthop deletionIdo Schimmel1-0/+14 2020-09-15nexthop: Only emit a notification when nexthop is actually deletedIdo Schimmel1-2/+2 2020-09-15nexthop: Convert to blocking notification chainIdo Schimmel2-7/+8 2020-09-15nexthop: Remove NEXTHOP_EVENT_ADDIdo Schimmel1-1/+0 2020-09-15nexthop: Remove unused function declaration from header fileIdo Schimmel1-3/+0 2020-09-15chelsio/chtls: Re-add dependencies on CHELSIO_T4 to fix modular CHELSIO_T4Geert Uytterhoeven1-0/+2 2020-09-15mlxsw: core: Introduce fw_fatal health reporterJiri Pirko5-0/+256 2020-09-15devlink: introduce the health reporter test commandJiri Pirko3-0/+35 2020-09-15mlxsw: reg: Add Monitoring FW General Debug RegisterJiri Pirko1-0/+21 2020-09-15mlxsw: reg: Add Monitoring FW Debug RegisterJiri Pirko1-0/+79 2020-09-15mlxsw: Move fw_load_policy devlink param into core.cJiri Pirko2-59/+51 2020-09-15mlxsw: core: Push code doing params register/unregister into separate helpersJiri Pirko1-12/+27 2020-09-15mlxsw: Move fw flashing code into core.cJiri Pirko4-307/+268 2020-09-15mlxsw: Bump firmware version to XX.2008.1310Jiri Pirko1-6/+6 2020-09-15net: stmmac: use netif_tx_start|stop_all_queues() functionOng Boon Leong1-32/+1 2020-09-15net: stmmac: Fix incorrect location to set real_num_rx|tx_queuesAashish Verma1-4/+4 2020-09-15net: stmmac: add ethtool support for get/set channelsOng Boon Leong3-28/+93 2020-09-15mlx4: add pause frame statsJakub Kicinski2-0/+31 2020-09-15mlx5: add pause frame statsJakub Kicinski4-0/+50 2020-09-15ixgbe: add pause frame statsJakub Kicinski1-0/+11 2020-09-15bnxt: add pause frame statsJakub Kicinski1-0/+17