On Wed, Nov 13, 2019 at 8:17 AM Wangyu (Eric) <[email protected]> wrote:
>
> Currently, the next address picked by PCI mapping infrastructure
> may be page-unaligned due to BAR length being smaller than page size.
> This leads to a situation where the requested map address is invalid,
> resulting in mmap() call returning an arbitrary address,
> which will later interfere with device BAR mapping in secondary processes.
>
> Fix it by always aligning the next requested address on page boundary.
>
> Signed-off-by: Xiaofeng Deng <[email protected]>
> Signed-off-by: Wangyu (Eric) <[email protected]>
> Acked-by: Wei Hu <[email protected]>
> Acked-by: Min Hu <[email protected]>
> Acked-by: Anatoly Burakov <[email protected]>
> Acked-by: Gavin Hu (Arm Technology China) <[email protected]>
>
> Fixes: c752998b5e2e ("pci: introduce library and driver")
> Cc: [email protected]

Cc'd stable.

Applied, thanks.



--
David Marchand

Reply via email to