Re: [dpdk-dev] [PATCH] bitmap: fix buffer overrun in bitmap init function

2021-06-02 Thread Andrew Rybchenko
On 6/2/21 12:06 PM, Andrew Rybchenko wrote: > From: Ivan Ilchenko > > Bitmap initialization function is allowed to memset > caller-provided buffer with number of bytes exceeded > this buffer size. This happens due to wrong comparision > sign between buffer size and number of bytes required > to i

[dpdk-dev] [PATCH] bitmap: fix buffer overrun in bitmap init function

2021-06-02 Thread Andrew Rybchenko
From: Ivan Ilchenko Bitmap initialization function is allowed to memset caller-provided buffer with number of bytes exceeded this buffer size. This happens due to wrong comparision sign between buffer size and number of bytes required to initialize bitmap. Fixes: 602c9ca33a4 ("sched: bitmap is n