Re: [PATCH v1] eventdev/crypto: fix enqueueing invalid ops

2024-03-01 Thread Jerin Jacob
Cc: Naga Harish K, S V ; Gujjar, Abhinandan S > > > > 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

RE: [PATCH v1] eventdev/crypto: fix enqueueing invalid ops

2024-02-28 Thread Gujjar, Abhinandan S
> -Original Message- > From: Kundapura, Ganapati > Sent: Wednesday, February 28, 2024 4:09 PM > To: dev@dpdk.org; jer...@marvell.com; Jayatheerthan, Jay > > Cc: Naga Harish K, S V ; Gujjar, Abhinandan S > > Subject: [PATCH v1] eventdev/crypto: fix enqueuei

[PATCH v1] eventdev/crypto: fix enqueueing invalid ops

2024-02-28 Thread Ganapati Kundapura
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 th