Re: [PATCH 1/3] rdma: Fix kernel crash in dtr_create_rx_desc()
Philipp Reisner <[email protected]> Thu, 31 Jul 2025 14:35:17 +0200
| Newsgroups | dev.linux.lists.drbd-dev |
|---|---|
| Message-ID | <CADGDV=XQCgj644Hw3tnMEtnGh3WFH6YRZwekxJ9ySqMdbKwqKA@mail.gmail.com> |
Hi Zhengbing, Thanks for the analysis and the patch. I took the freedom and slightly modified it before applying it. Instead of changing the behaviour of the dtr_path_get_cm() function I introduce a new one: dtr_path_get_cm_connected(). Please see https://github.com/LINBIT/drbd/commit/ae1b0bdfa2e4ea59d15199b55a6f0c571844f576 Also ... [...] > - for (i = DATA_STREAM; i <= CONTROL_STREAM ; i++) > - dtr_create_rx_desc(&path->flow[i], GFP_NOIO); > - I dropped this part. It came without explanation in the commit message. I believe that some RDMA transports require at least one rx-descriptor to enable them to establish a connection. Best regards, Philipp