[dpdk-dev] [PATCH] bus/vmbus: calcuate the correct start address for mapping ring buffer

Thomas Monjalon thomas at monjalon.net
Thu Jun 25 01:05:34 CEST 2020


12/06/2020 18:06, Stephen Hemminger:
> On Thu, 11 Jun 2020 17:48:25 -0700
> longli at linuxonhyperv.com wrote:
> 
> > From: Long Li <longli at microsoft.com>
> > 
> > vmbus_map_addr is used as the next start virutal address for mapping ring
> > buffer. However it's updated based on ring_buf, which is a pointer to an
> > address on the stack. The next ring buffer may be mapped to an unexpected
> > address.
> > 
> > Fix this by calculating vmbus_map_addr based on returned virtual address.
> > 
> > Signed-off-by: Long Li <longli at microsoft.com>
> 
> 
> Fixes: 3f9277031a2e ("bus/vmbus: fix check for mmap failure")
> Acked-by: Stephen Hemminger <stephen at networkplumber.org>

+Cc: stable at dpdk.org

Applied, thanks




More information about the dev mailing list