> -----Original Message-----
> From: David Marchand <[email protected]>
> Sent: Friday, March 10, 2023 10:26 PM
> To: [email protected]
> Cc: [email protected]; Sachin Saxena <[email protected]>; Hemant
> Agrawal <[email protected]>; Shreyansh Jain
> <[email protected]>
> 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: [email protected]
> 
> Signed-off-by: David Marchand <[email protected]>
> ---
Tested-by:  Yu Jiang <[email protected]>

Best regards,
Yu Jiang

Reply via email to