[dpdk-dev] [PATCH] eal: fix core number validation

David Marchand david.marchand at redhat.com
Fri Dec 21 10:28:27 CET 2018


On Fri, Dec 21, 2018 at 10:19 AM Burakov, Anatoly <anatoly.burakov at intel.com>
wrote:

> On 21-Dec-18 8:27 AM, David Marchand wrote:
> > Since you have identified a potential crash, can you give an example of
> > such a crash ?
> > Besides, we have tests that check arguments, so an update of the test
> would
> > be nice.
>
> I believe these lcore numbers are used to index the lcore list later,
> which would cause out-of-bounds access, which may or may not cause a
> crash, depending on how lucky you get.
>

Sure, that and the fact that my testpmd was doing nothing with them :-).
Anyway, the unit tests missed this case, so we need an update.

And the more I look at those string parsing, the more I think that the
service cores parsing has the same issue (copy/paste yay ;-)).


-- 
David Marchand


More information about the dev mailing list