[dpdk-dev] [PATCH] examples/ioat: handle failure case for ioat dequeue

David Marchand david.marchand at redhat.com
Tue Nov 26 17:27:42 CET 2019


On Mon, Nov 25, 2019 at 5:23 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> On Mon, Nov 25, 2019 at 03:23:03PM +0000, Bruce Richardson wrote:
> > On a failure with the ioat dequeue, -1 is returned, which was not properly
> > handled. This could lead to out-of-bounds reads on a later loop which
> > assumed a positive return value. Fix this by treating an error as though a
> > dequeue of 0 had been encountered.
> >
> > Coverity issue: 350342
> FYI: also should fix issue: 350349
>
> > Fixes: 2328542ed84e ("examples/ioat: add rawdev copy mode")
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks.



--
David Marchand



More information about the dev mailing list