[PATCH 1/3] rdma: Fix kernel crash in dtr_create_rx_desc()

Philipp Reisner philipp.reisner at linbit.com
Thu Jul 31 14:35:17 CEST 2025


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


More information about the drbd-dev mailing list