public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* linux-next: manual merge of the target-bva tree with the target-updates tree
@ 2017-06-01  4:10 Stephen Rothwell
  2017-06-01  4:27 ` Nicholas A. Bellinger
  2017-06-01  4:59 ` Bart Van Assche
  0 siblings, 2 replies; 12+ messages in thread
From: Stephen Rothwell @ 2017-06-01  4:10 UTC (permalink / raw)
  To: Bart Van Assche, Nicholas A. Bellinger
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List

Hi Bart,

Today's linux-next merge of the target-bva tree got a conflict in:

  drivers/target/target_core_transport.c

between commit:

  4ff83daa0200 ("target: Re-add check to reject control WRITEs with overflow data")

from the target-updates tree and commit:

  2c66660df665 ("target: Fix overflow/underflow handling of commands with a Data-Out buffer")

from the target-bva tree.

I fixed it up (I think (guidance appreciated), 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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/target/target_core_transport.c
index 6025935036c9,6cd49fe578a7..000000000000
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@@ -1164,37 -1164,7 +1164,21 @@@ target_cmd_size_check(struct se_cmd *cm
  			" %u does not match SCSI CDB Length: %u for SAM Opcode:"
  			" 0x%02x\n", cmd->se_tfo->get_fabric_name(),
  				cmd->data_length, size, cmd->t_task_cdb[0]);
 +
 +		if (cmd->data_direction == DMA_TO_DEVICE) {
- 			if (cmd->se_cmd_flags & SCF_SCSI_DATA_CDB) {
- 				pr_err_ratelimited("Rejecting underflow/overflow"
- 						   " for WRITE data CDB\n");
- 				return TCM_INVALID_CDB_FIELD;
- 			}
 +			/*
 +			 * Some fabric drivers like iscsi-target still expect to
 +			 * always reject overflow writes.  Reject this case until
 +			 * full fabric driver level support for overflow writes
 +			 * is introduced tree-wide.
 +			 */
 +			if (size > cmd->data_length) {
 +				pr_err_ratelimited("Rejecting overflow for"
 +						   " WRITE control CDB\n");
 +				return TCM_INVALID_CDB_FIELD;
 +			}
 +		}
  		/*
- 		 * Reject READ_* or WRITE_* with overflow/underflow for
- 		 * type SCF_SCSI_DATA_CDB.
- 		 */
- 		if (dev->dev_attrib.block_size != 512)  {
- 			pr_err("Failing OVERFLOW/UNDERFLOW for LBA op"
- 				" CDB on non 512-byte sector setup subsystem"
- 				" plugin: %s\n", dev->transport->name);
- 			/* Returns CHECK_CONDITION + INVALID_CDB_FIELD */
- 			return TCM_INVALID_CDB_FIELD;
- 		}
- 		/*
  		 * For the overflow case keep the existing fabric provided
  		 * ->data_length.  Otherwise for the underflow case, reset
  		 * ->data_length to the smaller SCSI expected data transfer

^ permalink raw reply	[flat|nested] 12+ messages in thread
* linux-next: manual merge of the target-bva tree with the target-updates tree
@ 2017-06-02  4:05 Stephen Rothwell
  2017-06-02  4:11 ` Stephen Rothwell
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2017-06-02  4:05 UTC (permalink / raw)
  To: Bart Van Assche, Nicholas A. Bellinger
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List

Hi Bart,

Today's linux-next merge of the target-bva tree got a conflict in:

  drivers/target/target_core_tpg.c

between commits:

  06fd91ce633d ("target/configfs: Kill se_lun->lun_link_magic")
  4f61e1e687c4 ("target: Avoid target_shutdown_sessions loop during queue_depth change")

from the target-updates tree and commits:

  ba438d7c8d39 ("target: Avoid target_shutdown_sessions loop during queue_depth change")
  b968ec8ff101 ("target/configfs: Kill se_lun->lun_link_magic")

from the target-bva tree.

I fixed it up (I used the version from the target-updates tree) 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.

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 12+ messages in thread
* linux-next: manual merge of the target-bva tree with the target-updates tree
@ 2017-02-20  2:51 Stephen Rothwell
  0 siblings, 0 replies; 12+ messages in thread
From: Stephen Rothwell @ 2017-02-20  2:51 UTC (permalink / raw)
  To: Bart Van Assche, Nicholas A. Bellinger
  Cc: linux-next, linux-kernel, Varun Prakash

Hi Bart,

Today's linux-next merge of the target-bva tree got conflicts in:

  drivers/target/iscsi/cxgbit/cxgbit_target.c
  drivers/target/iscsi/iscsi_target.c
  include/target/iscsi/iscsi_transport.h

between commits:

  9a584bf9bf0a ("target/iscsi: split iscsit_check_dataout_hdr()")
  79e57cfe00f4 ("target/cxgbit: add T6 iSCSI DDP completion feature")

from the target-updates tree and commit:

  b6f2cd5ab404 ("target/iscsi: split iscsit_check_dataout_hdr()")
  b0d5eab94c37 ("target/cxgbit: add T6 iSCSI DDP completion feature")

from the target-bva tree.

I fixed it up (the target-update versions are updates from the others,
so I used those) 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.

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-06-02  4:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-01  4:10 linux-next: manual merge of the target-bva tree with the target-updates tree Stephen Rothwell
2017-06-01  4:27 ` Nicholas A. Bellinger
2017-06-01  5:05   ` Bart Van Assche
2017-06-01  5:15     ` Nicholas A. Bellinger
2017-06-01  4:59 ` Bart Van Assche
2017-06-01  5:04   ` Nicholas A. Bellinger
2017-06-01 21:14     ` Bart Van Assche
2017-06-01 23:28       ` Stephen Rothwell
2017-06-02  3:58       ` Nicholas A. Bellinger
  -- strict thread matches above, loose matches on Subject: below --
2017-06-02  4:05 Stephen Rothwell
2017-06-02  4:11 ` Stephen Rothwell
2017-02-20  2:51 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox