[PATCH 1/2] raw/skeleton: fix selftest
Jiang, YuX
yux.jiang at intel.com
Mon Mar 13 03:17:17 CET 2023
> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Friday, March 10, 2023 10:26 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Sachin Saxena <sachin.saxena at nxp.com>; Hemant
> Agrawal <hemant.agrawal at nxp.com>; Shreyansh Jain
> <shreyansh.jain at nxp.com>
> Subject: [PATCH 1/2] raw/skeleton: fix selftest
>
> ASan reported issues in this driver.
>
> rte_rawdev_obj_t context object points at a uint16_t.
> skeleton_rawdev_enqueue_bufs() and skeleton_rawdev_dequeue_bufs() were
> incorrectly casting to an int.
>
> The enqueue/dequeue selftest had a leak on the enqueued string and was
> wrong in passing a rte_rawdev_buf pointer array.
> Fix this by allocating buffers on the stack and check that returned string is the
> expected one.
>
> Bugzilla ID: 1175
> Fixes: 61c592a8d035 ("raw/skeleton: introduce skeleton rawdev driver")
> Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases")
> Cc: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
Tested-by: Yu Jiang <yux.jiang at intel.com>
Best regards,
Yu Jiang
More information about the dev
mailing list