|WARNING| pw119594 [PATCH] [v1] common/idpf: fix possible null dereference

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Wed Nov 9 07:18:36 CET 2022


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

_apply patch failure_

Submitter: Mingxia Liu <mingxia.liu at intel.com>
Date: Wednesday, November 09 2022 05:17:07 
Applied on: CommitID:a39f5e14560df310e7af3c135a11bb6f51eb92e6
Apply patch set 119594 failed:

Checking patch drivers/common/idpf/base/idpf_common.c...
error: while searching for:
	e->desc.ret_val = msg.status;
	e->desc.datalen = msg.data_len;
	if (msg.data_len > 0) {
		e->buf_len = msg.data_len;
		msg_data_len = msg.data_len;
		idpf_memcpy(e->msg_buf, msg.ctx.indirect.payload->va, msg_data_len,

error: patch failed: drivers/common/idpf/base/idpf_common.c:234
Applying patch drivers/common/idpf/base/idpf_common.c with 1 reject...
Rejected hunk #1.
diff a/drivers/common/idpf/base/idpf_common.c b/drivers/common/idpf/base/idpf_common.c	(rejected hunks)
@@ -234,6 +234,8 @@ int idpf_clean_arq_element(struct idpf_hw *hw,
 	e->desc.ret_val = msg.status;
 	e->desc.datalen = msg.data_len;
 	if (msg.data_len > 0) {
+		if (!msg.ctx.indirect.payload)
+			return -EINVAL;
 		e->buf_len = msg.data_len;
 		msg_data_len = msg.data_len;
 		idpf_memcpy(e->msg_buf, msg.ctx.indirect.payload->va, msg_data_len,

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

UNH-IOL DPDK Community Lab


More information about the test-report mailing list