aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2024-03-08 15:28:29 +0000
committerChristoph Hellwig <[email protected]>2024-03-13 18:39:34 +0000
commit14cebf689a78e8a1c041138af221ef6eac6bc7da (patch)
treea556053871a62a03b875d023c52449470416b361 /scripts/bpf_doc.py
parentiommu/dma: Force swiotlb_max_mapping_size on an untrusted device (diff)
downloadkernel-14cebf689a78e8a1c041138af221ef6eac6bc7da.tar.gz
kernel-14cebf689a78e8a1c041138af221ef6eac6bc7da.zip
swiotlb: Reinstate page-alignment for mappings >= PAGE_SIZE
For swiotlb allocations >= PAGE_SIZE, the slab search historically adjusted the stride to avoid checking unaligned slots. This had the side-effect of aligning large mapping requests to PAGE_SIZE, but that was broken by 0eee5ae10256 ("swiotlb: fix slot alignment checks"). Since this alignment could be relied upon drivers, reinstate PAGE_SIZE alignment for swiotlb mappings >= PAGE_SIZE. Reported-by: Michael Kelley <[email protected]> Signed-off-by: Will Deacon <[email protected]> Reviewed-by: Robin Murphy <[email protected]> Reviewed-by: Petr Tesarik <[email protected]> Tested-by: Nicolin Chen <[email protected]> Tested-by: Michael Kelley <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions