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

David Marchand david.marchand at redhat.com
Fri Jun 11 11:13:40 CEST 2021


On Tue, Jun 8, 2021 at 12:27 PM Dumitrescu, Cristian
<cristian.dumitrescu at intel.com> wrote:
> > Bitmap initialization function is allowed to memset()
> > caller-provided buffer with number of bytes exceeded
> > this buffer size. This happens due to wrong comparison
> > sign between buffer size and number of bytes required
> > to initialize bitmap.
> >
> > Fixes: 602c9ca33a4 ("sched: bitmap is now dynamically allocated")
> > Cc: stable at dpdk.org
> >
> > Reported-by: Andy Moreton <amoreton at xilinx.com>
> > Signed-off-by: Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
> > Reviewed-by: Andy Moreton <amoreton at xilinx.com>
> > Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list