diff options
author | Ivan Malov <ivan.malov@oktetlabs.ru> | 2022-06-28 11:18:48 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-06-28 22:49:04 +0200 |
commit | 512d1999b8e94a5d43fba3afc73e774849674742 (patch) | |
tree | 1620d5c2ea2fa738a2e8ad3041e234e54e05469f /kernel | |
parent | bpf, docs: Better scale maintenance of BPF subsystem (diff) | |
download | linux-512d1999b8e94a5d43fba3afc73e774849674742.tar.xz linux-512d1999b8e94a5d43fba3afc73e774849674742.zip |
xsk: Clear page contiguity bit when unmapping pool
When a XSK pool gets mapped, xp_check_dma_contiguity() adds bit 0x1
to pages' DMA addresses that go in ascending order and at 4K stride.
The problem is that the bit does not get cleared before doing unmap.
As a result, a lot of warnings from iommu_dma_unmap_page() are seen
in dmesg, which indicates that lookups by iommu_iova_to_phys() fail.
Fixes: 2b43470add8c ("xsk: Introduce AF_XDP buffer allocation API")
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20220628091848.534803-1-ivan.malov@oktetlabs.ru
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions