[PATCH 1/2] raw/skeleton: fix selftest

David Marchand david.marchand at redhat.com
Tue Mar 14 09:39:11 CET 2023


On Fri, Mar 10, 2023 at 3:26 PM David Marchand
<david.marchand at redhat.com> wrote:
>
> 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

Thomas, just a note if you are the one to apply this one.
I was looking at bugzilla, and this issue was actually reported a
while back, as bz 999, so the commitlog needs some update before
applying.


> 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>


-- 
David Marchand



More information about the stable mailing list