Re: [PATCH net v2] net/smc: prevent device removal during connection setup

Markus Elfring <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-kernel,org.kernel.vger.linux-rdma,org.kernel.vger.linux-s390,org.kernel.vger.stable
Message-ID <[email protected]>
…
> This change is limited to the reported SMCR lifetime race. SMC-D device
> selection has a similar pre-existing borrowed-pointer lifetime issue and
> requires a separate fix.

May lock guards be applied?
https://elixir.bootlin.com/linux/v7.2/source/include/linux/mutex.h#L253

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.