|SUCCESS|dpdk|c36aa2ffce| intel-Functional
sys_stv at intel.com
sys_stv at intel.com
Wed Nov 25 14:08:08 CET 2026
Test-Label: intel-Functional
Test-Status: SUCCESS
_Functional PASS_
DPDK git repo: dpdk
commit c2475931cd1ea6b9e6cd6e1a06bf4178aa2cfe13
Author: Alexander Chesnokov <Alexander.Chesnokov at kaspersky.com>
Date: Wed Nov 25 13:33:15 2026 +0300
sched: fix queue stats read for mixed subports
rte_sched_queue_read_stats() checks the queue ID against the total
number of queues of the port, summed over the subports. The queue
address is computed the other way: with a fixed subport capacity of
n_pipes_per_subport pipes. Subports of the same port may enable
different numbers of pipes, so a queue ID that passes the check can
decode to an index beyond the arrays of a smaller subport. The stats
copy and the clear then write outside the subport memory. The damage
surfaces later, at the first use of the overwritten data; ASAN does
not see it because the subport arrays share one allocation.
Validate the decoded queue index against the number of queues of the
subport that owns the queue ID, and reject queue IDs that decode
outside of it with -EINVAL. Queue IDs produced by
rte_sched_port_pkt_write() are valid before and after the change.
Numbering queues consecutively across subports matches this layout
only when all subports enable the same number of pipes. The stats
commands of the qos_sched example number queues this way, so on a
mixed subport layout they now get -EINVAL instead of corrupting the
memory of a smaller subport.
Add a sched_hetero_subports_autotest case with a port of two
subports: one pipe enabled on subport 0 and eight on subport 1.
Queue IDs inside the hole of the small subport and IDs beyond the
total queue count are rejected. Queue IDs of the first and the last
queue of both subports read cleanly. A packet enqueued through the
first queue of subport 1 shows up in the queue stats read for that
queue ID.
Fixes: 831104f0e84f ("sched: update queue stats read for config flexibility")
Cc: stable at dpdk.org
Signed-off-by: Alexander Chesnokov <Alexander.Chesnokov at kaspersky.com>
Smoke-Testing Summary : 31 Case Done, 31 Successful, 0 Failures
OS : Ubuntu 24.04.4 LTS
Kernel : 6.8.0-71-generic
GCC : 13.3.0-6ubuntu2~24.04.1
NIC : Ethernet Controller XL710 for 40GbE QSFP+
Target : x86_64-native-linuxapp-gcc
Test result details:
+-----------------+---------------------------------------------------+-------+
| suite | case | status|
+-----------------+---------------------------------------------------+-------+
| checksum_offload| test_do_not_insert_checksum_on_the_transmit_packet| passed|
| checksum_offload| test_hardware_checksum_check_ip_rx | passed|
| checksum_offload| test_hardware_checksum_check_ip_tx | passed|
| checksum_offload| test_hardware_checksum_check_l4_rx | passed|
| checksum_offload| test_hardware_checksum_check_l4_tx | passed|
| checksum_offload| test_insert_checksum_on_the_transmit_packet | passed|
| checksum_offload| test_rx_checksum_valid_flags | passed|
| checksum_offload| test_checksum_offload_with_vlan | n/a |
| dual_vlan | test_dual_vlan_priority_rxtx | passed|
| dual_vlan | test_vlan_filter_config | passed|
| dual_vlan | test_vlan_filter_table | passed|
| dual_vlan | test_vlan_insert_config | passed|
| dual_vlan | test_vlan_random_test | passed|
| dual_vlan | test_vlan_strip_config | passed|
| dual_vlan | test_vlan_synthetic_test | passed|
| dual_vlan | test_vlan_tpid_config | passed|
| dual_vlan | test_vlan_stripq_config | n/a |
| jumboframes | test_jumboframes_bigger_jumbo | passed|
| jumboframes | test_jumboframes_jumbo_nojumbo | passed|
| jumboframes | test_jumboframes_normal_jumbo | passed|
| jumboframes | test_jumboframes_normal_nojumbo | passed|
| jumboframes | test_jumboframes_jumbo_jumbo | n/a |
| rxtx_offload | test_rxoffload_port_all | passed|
| rxtx_offload | test_rxoffload_port_cmdline | passed|
| rxtx_offload | test_txoffload_port | passed|
| rxtx_offload | test_txoffload_port_all | passed|
| rxtx_offload | test_txoffload_port_checksum | passed|
| rxtx_offload | test_txoffload_port_cmdline | passed|
| rxtx_offload | test_txoffload_port_multi_segs | passed|
| rxtx_offload | test_txoffload_queue | passed|
| rxtx_offload | test_rxoffload_queue | n/a |
+-----------------+---------------------------------------------------+-------+
DPDK STV team
More information about the test-report
mailing list