Antw: [EXT] [PATCH 1/2] scsi:core:Add sysfs interface to control if skip lun with PQ=1

2022-12-13 Thread Ulrich Windl
>>> "'Wenchao Hao' via open-iscsi" schrieb am 14.12.2022 um 08:08 in Nachricht <20221214070846.1808300-2-haowenc...@huawei.com>: ... > + * Targets set PQ=1 would be skipped if shost->no_skip_pq1 is not set I would write "Targets that set ..." instead. ... -- You received this message

[PATCH 2/2] scsi:iscsi_tcp:Do not skip lun inquiry returns PQ=1

2022-12-13 Thread 'Wenchao Hao' via open-iscsi
When luns inquiry return PQ=1, do not skip this lun and try to map these luns to an sg device. Signed-off-by: Wenchao Hao --- drivers/scsi/iscsi_tcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 5fb1f364e815..316e2e17c72d 100644

[PATCH 0/2] scsi:donot skip lun if inquiry returns PQ=1 for all hosts

2022-12-13 Thread 'Wenchao Hao' via open-iscsi
commit 948e922fc4461 ("scsi: core: map PQ=1, PDT=other values to SCSI_SCAN_TARGET_PRESENT") returns SCSI_SCAN_TARGET_PRESENT if inquiry returns PQ=1. According to the SPC, PQ=1 means the addressed logical unit having the indicated device type is not accessible, it does not mean the addressed

[PATCH 1/2] scsi:core:Add sysfs interface to control if skip lun with PQ=1

2022-12-13 Thread 'Wenchao Hao' via open-iscsi
commit 948e922fc4461 ("scsi: core: map PQ=1, PDT=other values to SCSI_SCAN_TARGET_PRESENT") returns SCSI_SCAN_TARGET_PRESENT if inquiry returns PQ=1. According to the SPC, PQ=1 means the addressed logical unit having the indicated device type is not accessible, it does not mean the addressed

Re: [PATCH v7] scsi:iscsi: Fix multiple iscsi session unbind event sent to userspace

2022-12-13 Thread Martin K. Petersen
Wenchao, > I found an issue that kernel would send ISCSI_KEVENT_UNBIND_SESSION > for multiple times which should be fixed. Applied to 6.2/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups

Re: [PATCH] scsi: iscsi_tcp: Fix UAF when access shost attr during session logout

2022-12-13 Thread Ding Hui
On 2022/12/13 1:00, Mike Christie wrote: On 12/11/22 8:32 AM, Wenchao Hao wrote: On Sun, Dec 11, 2022 at 6:07 AM Mike Christie wrote: On 12/9/22 2:22 AM, Ding Hui wrote: During iscsi session logout, if another task accessing shost ipaddress attr at this time, we can get a KASAN UAF report