Re: [PATCH] RDMA/srpt: widen the RDMA context counters
From: Yehyeong Lee
Date: Tue Oct 20 2026 - 20:19:52 EST
Thanks for the review.
You are right: the indirect branch of srpt_get_desc_tbl() bounds nbufs only
against data_out_desc_cnt + data_in_desc_cnt, not against
recv_ioctx->byte_len, so a large table_desc.len or add_cdb_len lets
srpt_alloc_rw_ctxs() walk idb->desc_list past the received IU and past the
req_buf_cache object.
v2, which I am sending now, bounds the indirect descriptor table against
recv_ioctx->byte_len the way the immediate-data branch already does, in
addition to widening the counters. Thanks for catching it.
Yehyeong Lee