automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw115945 [PATCH] net/ice: avoid out-of-bound access
@ 2022-09-06  2:52 dpdklab
  0 siblings, 0 replies; only message in thread
From: dpdklab @ 2022-09-06  2:52 UTC (permalink / raw)
  To: test-report; +Cc: dpdk-test-reports

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/115945

_apply patch failure_

Submitter: Zhichao Zeng <zhichaox.zeng@intel.com>
Date: Tuesday, September 06 2022 02:28:59 
Applied on: CommitID:4aee6110bb10b0225fa9562f2e48af233a9058a1
Apply patch set 115945 failed:

Checking patch drivers/net/ice/ice_switch_filter.c...
error: while searching for:
		case RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT:
			rule_info->sw_act.fltr_act = ICE_FWD_TO_VSI;
			act_ethdev = action->conf;
			repr_dev = &rte_eth_devices[act_ethdev->port_id];

			if (!repr_dev->data)

error: patch failed: drivers/net/ice/ice_switch_filter.c:1631
Applying patch drivers/net/ice/ice_switch_filter.c with 1 reject...
Rejected hunk #1.
diff a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c	(rejected hunks)
@@ -1631,6 +1631,10 @@ ice_switch_parse_dcf_action(struct ice_dcf_adapter *ad,
 		case RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT:
 			rule_info->sw_act.fltr_act = ICE_FWD_TO_VSI;
 			act_ethdev = action->conf;
+
+			if (!rte_eth_dev_is_valid_port(act_ethdev->port_id))
+				goto invalid;
+
 			repr_dev = &rte_eth_devices[act_ethdev->port_id];
 
 			if (!repr_dev->data)

https://lab.dpdk.org/results/dashboard/patchsets/23416/

UNH-IOL DPDK Community Lab

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-06  2:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06  2:52 |WARNING| pw115945 [PATCH] net/ice: avoid out-of-bound access dpdklab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).