Re: [PATCH] scsi: elx: efct: hold a node reference across asynchronous session setup

From: Yehyeong Lee

Date: Fri Nov 20 2026 - 10:04:37 EST


On Wed, Oct 21, 2026 at 11:22:09AM +0900, Yehyeong Lee wrote:
> efct_scsi_new_initiator() hands a bare struct efc_node pointer to lio_wq
> and returns EFC_SCSI_CALL_ASYNC, so the node state machine keeps running
> while efct_lio_setup_session() is still queued. The work item then
> dereferences that pointer on both sides of a sleeping call.
> efct_get_vport_tpg() reads node->nport before target_setup_session(),
> efct_session_cb() reads it from inside that call, and node->tgt_node is

This is superseded by v3:
https://lore.kernel.org/all/20261021142818.2782104-1-yhlee@xxxxxxxxxxxxxxxxxx/

Best regards,
Yehyeong Lee