diff options
| author | Shao Mingyin <shao.mingyin@zte.com.cn> | 2026-10-26 19:49:55 +0800 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-11-08 21:16:08 -0500 |
| commit | fe5988e8708e1d42cb844bd9ac8f0a51388061fc (patch) | |
| tree | 50989e57cba8417101486a5a9f09bdc0d1026b65 /tools/perf/scripts/python | |
| parent | b3da73f09499b34faf5c43c50e1d09e4286226de (diff) | |
scsi: target: Fix NULL pointer dereference in target_dev_alua_lu_gp_store()
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:
BUG: kernel NULL pointer dereference, address: 0000000000000000
...
__core_alua_attach_lu_gp_mem
target_dev_alua_lu_gp_store
Clearing an already cleared association is a no-op, so return early when
there is no association left to clear.
Fixes: c66ac9db8d4a ("[SCSI] target: Add LIO target core v4.0.0-rc6")
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20261026194955694FnXGoQ352dstLk5HPBqCG@zte.com.cn
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
