Linux-Next discussions
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Bart Van Assche <bvanassche@acm.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	"Martin K. Petersen" <mkp@kernel.org>,
	Yehyeong Lee <yhlee@isslab.korea.ac.kr>
Subject: linux-next: manual merge of the scsi-mkp tree with the scsi-fixes tree
Date: Thu, 15 Oct 2026 16:34:11 +0100	[thread overview]
Message-ID: <atDycwCquCFNwruf@sirena.org.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 2633 bytes --]

Hi all,

Today's linux-next merge of the scsi-mkp tree got a conflict in:

  drivers/scsi/libiscsi.c

between commits:

  c5958c770b2a0 ("scsi: libiscsi: Validate the ITT reflected in a Reject PDU")
  11bffcd9cb346 ("scsi: libiscsi: Validate the task named by a management response")

from the scsi-fixes tree and commit:

  ae1c0d65bc711 ("scsi: libiscsi: Pass the session pointer directly to several functions")

from the scsi-mkp tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc drivers/scsi/libiscsi.c
index 2ab55d1e66529,34d4125417db0..0000000000000
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@@ -1136,22 -1159,21 +1159,23 @@@ static int iscsi_handle_reject(struct i
  			 * Just resend.
  			 */
  			/* In RX path we are under back lock */
- 			spin_unlock(&conn->session->back_lock);
- 			spin_lock(&conn->session->frwd_lock);
+ 			spin_unlock(&session->back_lock);
+ 			spin_lock(&session->frwd_lock);
  			iscsi_send_nopout(conn,
  					  (struct iscsi_nopin*)&rejected_pdu);
- 			spin_unlock(&conn->session->frwd_lock);
- 			spin_lock(&conn->session->back_lock);
+ 			spin_unlock(&session->frwd_lock);
+ 			spin_lock(&session->back_lock);
  		} else {
 -			struct iscsi_task *task;
 +			struct iscsi_task *task = NULL;
  			/*
  			 * Our nop as ping got dropped. We know the target
  			 * and transport are ok so just clean up
  			 */
 -			task = iscsi_itt_to_task(session, conn,
 -						 rejected_pdu.itt);
 -			if (!task) {
 +			if (!iscsi_verify_itt(conn, rejected_pdu.itt))
- 				task = iscsi_itt_to_task(conn, rejected_pdu.itt);
++				task = iscsi_itt_to_task(session, conn,
++							 rejected_pdu.itt);
 +			if (!task || task->state == ISCSI_TASK_FREE ||
 +			    task->sc) {
  				iscsi_conn_printk(KERN_ERR, conn,
  						 "Invalid pdu reject. Could "
  						 "not lookup rejected task.\n");
@@@ -1286,8 -1311,8 +1313,8 @@@ int __iscsi_complete_pdu(struct iscsi_s
  	case ISCSI_OP_TEXT_RSP:
  	case ISCSI_OP_SCSI_TMFUNC_RSP:
  	case ISCSI_OP_NOOP_IN:
- 		task = iscsi_itt_to_task(conn, hdr->itt);
+ 		task = iscsi_itt_to_task(session, conn, hdr->itt);
 -		if (!task)
 +		if (!task || task->state == ISCSI_TASK_FREE || task->sc)
  			return ISCSI_ERR_BAD_ITT;
  		break;
  	default:

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2026-10-15 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15 15:34 Mark Brown [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-07-13 15:13 linux-next: manual merge of the scsi-mkp tree with the scsi-fixes tree Mark Brown
2025-01-06  5:34 Stephen Rothwell
2021-01-18  3:45 Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=atDycwCquCFNwruf@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=bvanassche@acm.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=mkp@kernel.org \
    --cc=yhlee@isslab.korea.ac.kr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox