ExtendedCopy.DescrLimits currently attempts to test Maximum Descriptor List Length bounds checking by issuing a request with (max_target_desc_count + 1 + max_segment_desc_count + 1) descriptors. Maximum Descriptor List Length is a separately advertised field, that may not be exceeded with the above logic, e.g. LIO advertises: - Max Target Desc Count = 2 - Max Segment Desc Count = 1 - Max Desc List Len = 1024 Calculate the number of descriptors using the advertised Maximum Descriptor List Length value, to explicitly test bounds checking. Signed-off-by: David Disseldorp <ddiss@suse.de>
4.9 KiB
4.9 KiB