<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/scsi/lpfc, branch linux-6.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-11-13T20:37:25Z</updated>
<entry>
<title>scsi: lpfc: Ensure PLOGI_ACC is sent prior to PRLI in Point to Point topology</title>
<updated>2025-11-13T20:37:25Z</updated>
<author>
<name>Justin Tee</name>
</author>
<published>2025-09-15T18:08:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=47c5304f1f9d1779c812b404867a925a6b2db9fe'/>
<id>urn:sha1:47c5304f1f9d1779c812b404867a925a6b2db9fe</id>
<content type='text'>
[ Upstream commit 2bf81856a403c92a4ce375288f33fba82ca2ccc6 ]

There is a timing race condition when a PRLI may be sent on the wire
before PLOGI_ACC in Point to Point topology.  Fix by deferring REG_RPI
mbox completion handling to after PLOGI_ACC's CQE completion.  Because
the discovery state machine only sends PRLI after REG_RPI mbox
completion, PRLI is now guaranteed to be sent after PLOGI_ACC.

Signed-off-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Message-ID: &lt;20250915180811.137530-8-justintee8345@gmail.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Define size of debugfs entry for xri rebalancing</title>
<updated>2025-11-13T20:37:25Z</updated>
<author>
<name>Justin Tee</name>
</author>
<published>2025-09-15T18:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b576b77cd5bc7b2f7460cd31111e3eb20da29e2'/>
<id>urn:sha1:6b576b77cd5bc7b2f7460cd31111e3eb20da29e2</id>
<content type='text'>
[ Upstream commit 5de09770b1c0e229d2cec93e7f634fcdc87c9bc8 ]

To assist in debugging lpfc_xri_rebalancing driver parameter, a debugfs
entry is used.  The debugfs file operations for xri rebalancing have
been previously implemented, but lack definition for its information
buffer size.  Similar to other pre-existing debugfs entry buffers,
define LPFC_HDWQINFO_SIZE as 8192 bytes.

Signed-off-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Message-ID: &lt;20250915180811.137530-9-justintee8345@gmail.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Remove ndlp kref decrement clause for F_Port_Ctrl in lpfc_cleanup</title>
<updated>2025-11-13T20:37:25Z</updated>
<author>
<name>Justin Tee</name>
</author>
<published>2025-09-15T18:08:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8fdbcb7561c6b8df8a7e6b4c28de6ab160a47e7a'/>
<id>urn:sha1:8fdbcb7561c6b8df8a7e6b4c28de6ab160a47e7a</id>
<content type='text'>
[ Upstream commit a4809b98eb004fcbf7c4d45eb5a624d1c682bb73 ]

In lpfc_cleanup, there is an extraneous nlp_put for NPIV ports on the
F_Port_Ctrl ndlp object.  In cases when an ABTS is issued, the
outstanding kref is needed for when a second XRI_ABORTED CQE is
received.  The final kref for the ndlp is designed to be decremented in
lpfc_sli4_els_xri_aborted instead.  Also, add a new log message to allow
for future diagnostics when debugging related issues.

Signed-off-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Message-ID: &lt;20250915180811.137530-5-justintee8345@gmail.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Check return status of lpfc_reset_flush_io_context during TGT_RESET</title>
<updated>2025-11-13T20:37:25Z</updated>
<author>
<name>Justin Tee</name>
</author>
<published>2025-09-15T18:08:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb8fa90d4ed946a3d2403e7e28356faa7789b141'/>
<id>urn:sha1:bb8fa90d4ed946a3d2403e7e28356faa7789b141</id>
<content type='text'>
[ Upstream commit f408dde2468b3957e92b25e7438f74c8e9fb9e73 ]

If lpfc_reset_flush_io_context fails to execute, then the wrong return
status code may be passed back to upper layers when issuing a target
reset TMF command.  Fix by checking the return status from
lpfc_reset_flush_io_context() first in order to properly return FAILED
or FAST_IO_FAIL.

Signed-off-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Message-ID: &lt;20250915180811.137530-7-justintee8345@gmail.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Decrement ndlp kref after FDISC retries exhausted</title>
<updated>2025-11-13T20:37:25Z</updated>
<author>
<name>Justin Tee</name>
</author>
<published>2025-09-15T18:08:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec4ae686c4cfff219e1ab1fe3172f91c2608ea97'/>
<id>urn:sha1:ec4ae686c4cfff219e1ab1fe3172f91c2608ea97</id>
<content type='text'>
[ Upstream commit b5bf6d681fce69cd1a57bfc0f1bdbbb348035117 ]

The kref for Fabric_DID ndlps is not decremented after repeated FDISC
failures and exhausting maximum allowed retries.  This can leave the
ndlp lingering unnecessarily.  Add a test and set bit operation for the
NLP_DROPPED flag. If not previously set, then a kref is decremented. The
ndlp is freed when the remaining reference for the completing ELS is
put.

Signed-off-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Message-ID: &lt;20250915180811.137530-6-justintee8345@gmail.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Clean up allocated queues when queue setup mbox commands fail</title>
<updated>2025-11-13T20:37:25Z</updated>
<author>
<name>Justin Tee</name>
</author>
<published>2025-09-15T18:08:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2882a24d410477afc464fc3ddcd6541684fc9c61'/>
<id>urn:sha1:2882a24d410477afc464fc3ddcd6541684fc9c61</id>
<content type='text'>
[ Upstream commit 803dfd83df33b7565f23aef597d5dd036adfa792 ]

lpfc_sli4_queue_setup() does not allocate memory and is used for
submitting CREATE_QUEUE mailbox commands.  Thus, if such mailbox
commands fail we should clean up by also freeing the memory allocated
for the queues with lpfc_sli4_queue_destroy().  Change the intended
clean up label for the lpfc_sli4_queue_setup() error case to
out_destroy_queue.

Signed-off-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Message-ID: &lt;20250915180811.137530-4-justintee8345@gmail.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Fix buffer free/clear order in deferred receive path</title>
<updated>2025-08-31T01:11:35Z</updated>
<author>
<name>John Evans</name>
</author>
<published>2025-08-28T04:40:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9dba9a45c348e8460da97c450cddf70b2056deb3'/>
<id>urn:sha1:9dba9a45c348e8460da97c450cddf70b2056deb3</id>
<content type='text'>
Fix a use-after-free window by correcting the buffer release sequence in
the deferred receive path. The code freed the RQ buffer first and only
then cleared the context pointer under the lock. Concurrent paths (e.g.,
ABTS and the repost path) also inspect and release the same pointer under
the lock, so the old order could lead to double-free/UAF.

Note that the repost path already uses the correct pattern: detach the
pointer under the lock, then free it after dropping the lock. The
deferred path should do the same.

Fixes: 472e146d1cf3 ("scsi: lpfc: Correct upcalling nvmet_fc transport during io done downcall")
Cc: stable@vger.kernel.org
Signed-off-by: John Evans &lt;evans1210144@gmail.com&gt;
Link: https://lore.kernel.org/r/20250828044008.743-1-evans1210144@gmail.com
Reviewed-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>Merge branch '6.17/scsi-queue' into 6.17/scsi-fixes</title>
<updated>2025-08-13T01:36:18Z</updated>
<author>
<name>Martin K. Petersen</name>
</author>
<published>2025-08-13T01:36:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6b819e0058e5f34cb274018e1f5cd5b671cec7e'/>
<id>urn:sha1:c6b819e0058e5f34cb274018e1f5cd5b671cec7e</id>
<content type='text'>
Pull in outstanding commits for 6.17.

Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Remove redundant assignment to avoid memory leak</title>
<updated>2025-08-06T02:05:40Z</updated>
<author>
<name>Jiasheng Jiang</name>
</author>
<published>2025-08-01T18:52:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eea6cafb5890db488fce1c69d05464214616d800'/>
<id>urn:sha1:eea6cafb5890db488fce1c69d05464214616d800</id>
<content type='text'>
Remove the redundant assignment if kzalloc() succeeds to avoid memory
leak.

Fixes: bd2cdd5e400f ("scsi: lpfc: NVME Initiator: Add debugfs support")
Signed-off-by: Jiasheng Jiang &lt;jiashengjiangcool@gmail.com&gt;
Link: https://lore.kernel.org/r/20250801185202.42631-1-jiashengjiangcool@gmail.com
Reviewed-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: lpfc: Fix wrong function reference in a comment</title>
<updated>2025-08-06T01:57:13Z</updated>
<author>
<name>Jean Delvare</name>
</author>
<published>2025-07-31T11:33:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a59976116a01dad1c72460f9ed700bf4b3fdbebd'/>
<id>urn:sha1:a59976116a01dad1c72460f9ed700bf4b3fdbebd</id>
<content type='text'>
Function scsi_host_remove() doesn't exist, the actual function name is
scsi_remove_host().

Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Link: https://lore.kernel.org/r/20250731133311.52034cc4@endymion
Reviewed-by: Justin Tee &lt;justin.tee@broadcom.com&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
</feed>
