Re: [PATCH v3 1/2] RDMA/srpt: bound the indirect descriptor table to the IU

From: Yehyeong Lee

Date: Sat Oct 24 2026 - 12:48:10 EST


On Thu, 22 Oct 2026 08:56:12 -0700, Bart Van Assche wrote:
> The idiomatic way in the kernel for subtracting pointers is to convert
> these to uintptr_t instead of u8 * before subtracting.

v4 is posted. desc_off is a uintptr_t subtraction now, and the room
division is replaced by a direct span comparison, which also removes the
truncation Sashiko flagged in 1/2.

https://lore.kernel.org/linux-rdma/20261024162852.3528224-1-yhlee@xxxxxxxxxxxxxxxxxx

Thanks,
Yehyeong