Re: [PATCH] scsi: target: Fix NULL pointer dereference in target_dev_alua_lu_gp_store()

From: Martin K. Petersen (Oracle)

Date: Sun Nov 08 2026 - 22:59:36 EST


On Mon, 26 Oct 2026 19:49:55 +0800, shao.mingyin@xxxxxxxxxx wrote:

> Writing "NULL" to the alua_lu_gp attribute clears the ALUA LU group
> association of a device. The attribute can be written again after the
> association has already been cleared. In that case lu_gp_mem->lu_gp and
> lu_gp_new are both NULL, but the code still calls
> __core_alua_attach_lu_gp_mem(), which dereferences the NULL lu_gp
> pointer:
>
> [...]

Applied to 7.4/scsi-fixes, thanks!

[1/1] scsi: target: Fix NULL pointer dereference in target_dev_alua_lu_gp_store()
https://git.kernel.org/mkp/scsi/c/fe5988e8708e

--
Martin K. Petersen