On Wed, Feb 28, 2024 at 10:42 PM Gujjar, Abhinandan S
<[email protected]> wrote:
>
>
>
> > -----Original Message-----
> > From: Kundapura, Ganapati <[email protected]>
> > Sent: Wednesday, February 28, 2024 4:09 PM
> > To: [email protected]; [email protected]; Jayatheerthan, Jay
> > <[email protected]>
> > Cc: Naga Harish K, S V <[email protected]>; Gujjar, Abhinandan S
> > <[email protected]>
> > Subject: [PATCH v1] eventdev/crypto: fix enqueueing invalid ops
> >
> > When tail pointer of Circ buffer rollsover as the Circ buffer becomes full,
> > crypto
> > adapter is enqueueing ops beyond the size of the Circ buffer leading to
> > segfault
> > due to invalid ops access.
> >
> > Fixed by enqueueing ops from head pointer to (size-head) number of ops when
> > Circ buffer becomes full and the remaining ops will be flushed in next
> > iteration.
> >
> > Fixes: 6c3c888656fc ("eventdev/crypto: fix circular buffer full case")
> >
> > Signed-off-by: Ganapati Kundapura <[email protected]>
> >
> Acked-by: Abhinandan Gujjar <[email protected]>
Updated the git commit as follows and applied to
dpdk-next-net-eventdev/for-main. Thanks
eventdev/crypto: fix enqueueing invalid ops
When tail pointer of circular buffer rolls over as the circular buffer
becomes full, crypto adapter is enqueueing ops beyond the size of the
circular buffer leading to segfault due to invalid ops access.
Fixed by enqueueing ops from head pointer to (size-head) number of ops
when circular buffer becomes full and the remaining ops will be flushed
in next iteration.
Fixes: 6c3c888656fc ("eventdev/crypto: fix circular buffer full case")
Cc: [email protected]
Signed-off-by: Ganapati Kundapura <[email protected]>
Acked-by: Abhinandan Gujjar <[email protected]>