Re: [PATCH] edu: fix DMA range upper bound check

2024-01-03 Thread Michael Tokarev
26.12.2023 02:44, Max Erenberg: The edu_check_range function checks that start <= end1 < end2, where end1 is the upper bound (exclusive) of the guest-supplied DMA range and end2 is the upper bound (exclusive) of the device's allowed DMA range. When the guest tries to transfer exactly DMA_SIZE (40

[PATCH] edu: fix DMA range upper bound check

2023-12-25 Thread Max Erenberg
The edu_check_range function checks that start <= end1 < end2, where end1 is the upper bound (exclusive) of the guest-supplied DMA range and end2 is the upper bound (exclusive) of the device's allowed DMA range. When the guest tries to transfer exactly DMA_SIZE (4096) bytes, end1 will be equal to e