<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pm24.git/drivers/message, branch rust-fixes-6.12</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.kobert.dev/pm24.git/atom?h=rust-fixes-6.12</id>
<link rel='self' href='https://git.kobert.dev/pm24.git/atom?h=rust-fixes-6.12'/>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/'/>
<updated>2024-08-23T01:30:06Z</updated>
<entry>
<title>Merge patch series "Simplify multiple create*_workqueue() invocations"</title>
<updated>2024-08-23T01:30:06Z</updated>
<author>
<name>Martin K. Petersen</name>
<email>martin.petersen@oracle.com</email>
</author>
<published>2024-08-23T01:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=70302fc7adcd29c4c744489cd89e2d3ed08ecd8d'/>
<id>urn:sha1:70302fc7adcd29c4c744489cd89e2d3ed08ecd8d</id>
<content type='text'>
Bart Van Assche &lt;bvanassche@acm.org&gt; says:

Hi Martin,

Multiple SCSI drivers use snprintf() to format a workqueue name before
invoking one of the create*_workqueue() macros. This patch series
simplifies such code by passing the format string and arguments to
alloc_workqueue(). Additionally, the structure members that are only
used as a temporary buffer for formatting workqueue names are
removed. Please consider this patch series for the next merge window.

Thanks,

Bart.

Link: https://lore.kernel.org/r/20240822195944.654691-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: mptfusion: Simplify the alloc*_workqueue() invocations</title>
<updated>2024-08-23T01:28:55Z</updated>
<author>
<name>Bart Van Assche</name>
<email>bvanassche@acm.org</email>
</author>
<published>2024-08-22T19:59:06Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=dec523975b85e725e2bf786a0b7dcee76b77a64e'/>
<id>urn:sha1:dec523975b85e725e2bf786a0b7dcee76b77a64e</id>
<content type='text'>
Let alloc*_workqueue() format the workqueue names instead of calling
snprintf() explicitly.

Signed-off-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Link: https://lore.kernel.org/r/20240822195944.654691-3-bvanassche@acm.org
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: message: fusion: struct _CONFIG_PAGE_IOC_4: Replace 1-element array with flexible array</title>
<updated>2024-08-03T01:32:52Z</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2024-07-11T17:28:20Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=f296cc1d7f5aeccd0d87ec167e0aea05acb8a022'/>
<id>urn:sha1:f296cc1d7f5aeccd0d87ec167e0aea05acb8a022</id>
<content type='text'>
Replace the deprecated[1] use of a 1-element array in struct
_CONFIG_PAGE_IOC_4 with a modern flexible array.

Additionally add __counted_by annotation since SEP is only ever accessed
after updating ACtiveSEP:

lsi/mpi_cnfg.h:    IOC_4_SEP                   SEP[] __counted_by(ActiveSEP);  /* 08h */
mptsas.c:        ii = IOCPage4Ptr-&gt;ActiveSEP++;
mptsas.c:        IOCPage4Ptr-&gt;SEP[ii].SEPTargetID = id;
mptsas.c:        IOCPage4Ptr-&gt;SEP[ii].SEPBus = channel;

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79 [1]
Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
Link: https://lore.kernel.org/r/20240711172821.123936-6-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: message: fusion: struct _CONFIG_PAGE_IOC_3: Replace 1-element array with flexible array</title>
<updated>2024-08-03T01:32:52Z</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2024-07-11T17:28:19Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=70631322dbab5b48f49f142dd9aef768c0fb077c'/>
<id>urn:sha1:70631322dbab5b48f49f142dd9aef768c0fb077c</id>
<content type='text'>
Replace the deprecated[1] use of a 1-element array in struct
_CONFIG_PAGE_IOC_3 with a modern flexible array.

Additionally add __counted_by annotation since PhysDisk is only ever
accessed via a loops bounded by NumPhysDisks:

lsi/mpi_cnfg.h:    IOC_3_PHYS_DISK             PhysDisk[] __counted_by(NumPhysDisks); /* 08h */
mptscsih.c:	for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg3-&gt;NumPhysDisks; i++) {
mptscsih.c:		if ((id == ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskID) &amp;&amp;
mptscsih.c:		    (channel == ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskBus)) {
mptscsih.c:	for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg3-&gt;NumPhysDisks; i++) {
mptscsih.c:		    ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskNum);
mptscsih.c:		    ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskNum,
mptscsih.c:	for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg3-&gt;NumPhysDisks; i++) {
mptscsih.c:		if ((id == ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskID) &amp;&amp;
mptscsih.c:		    (channel == ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskBus)) {
mptscsih.c:			rc = ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskNum;
mptscsih.c:	for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg3-&gt;NumPhysDisks; i++) {
mptscsih.c:		    ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskNum);
mptscsih.c:		    ioc-&gt;raid_data.pIocPg3-&gt;PhysDisk[i].PhysDiskNum,

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79 [1]
Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
Link: https://lore.kernel.org/r/20240711172821.123936-5-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: message: fusion: struct _CONFIG_PAGE_IOC_2: Replace 1-element array with flexible array</title>
<updated>2024-08-03T01:32:52Z</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2024-07-11T17:28:18Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=de80fe29ab53dc9efde5c773fadebd3e547ad785'/>
<id>urn:sha1:de80fe29ab53dc9efde5c773fadebd3e547ad785</id>
<content type='text'>
Replace the deprecated[1] use of a 1-element array in struct
_CONFIG_PAGE_IOC_2 with a modern flexible array.

Additionally add __counted_by annotation since RaidVolume is only ever
accessed from loops controlled by NumActiveVolumes:

lsi/mpi_cnfg.h:    CONFIG_PAGE_IOC_2_RAID_VOL  RaidVolume[] __counted_by(NumActiveVolumes); /* 0Ch */
mptbase.c:      for (i = 0; i &lt; pIoc2-&gt;NumActiveVolumes ; i++)
mptbase.c:                  pIoc2-&gt;RaidVolume[i].VolumeBus,
mptbase.c:                  pIoc2-&gt;RaidVolume[i].VolumeID);
mptsas.c:               for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg2-&gt;NumActiveVolumes; i++) {
mptsas.c:                                       RaidVolume[i].VolumeID) {
mptsas.c:                                       RaidVolume[i].VolumeBus;
mptsas.c:       for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg2-&gt;NumActiveVolumes; i++) {
mptsas.c:                   ioc-&gt;raid_data.pIocPg2-&gt;RaidVolume[i].VolumeID, 0);
mptsas.c:                   ioc-&gt;raid_data.pIocPg2-&gt;RaidVolume[i].VolumeID);
mptsas.c:                   ioc-&gt;raid_data.pIocPg2-&gt;RaidVolume[i].VolumeID, 0);
mptsas.c:               for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg2-&gt;NumActiveVolumes; i++) {
mptsas.c:                       if (ioc-&gt;raid_data.pIocPg2-&gt;RaidVolume[i].VolumeID ==
mptsas.c:       for (i = 0; i &lt; ioc-&gt;raid_data.pIocPg2-&gt;NumActiveVolumes; i++)
mptsas.c:               if (ioc-&gt;raid_data.pIocPg2-&gt;RaidVolume[i].VolumeID == id)
mptspi.c:       for (i=0; i &lt; ioc-&gt;raid_data.pIocPg2-&gt;NumActiveVolumes; i++) {
mptspi.c:               if (ioc-&gt;raid_data.pIocPg2-&gt;RaidVolume[i].VolumeID == id) {

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79 [1]
Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
Link: https://lore.kernel.org/r/20240711172821.123936-4-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: message: fusion: struct _CONFIG_PAGE_RAID_PHYS_DISK_1: Replace 1-element array with flexible array</title>
<updated>2024-08-03T01:32:52Z</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2024-07-11T17:28:17Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=dc8932fbf6a9cad4cf6dd312d115a26d90facb7e'/>
<id>urn:sha1:dc8932fbf6a9cad4cf6dd312d115a26d90facb7e</id>
<content type='text'>
Replace the deprecated[1] use of a 1-element array in struct
_CONFIG_PAGE_RAID_PHYS_DISK_1 with a modern flexible array.

Additionally add __counted_by annotation since Path is only ever accessed
via a loops bounded by NumPhysDiskPaths:

lsi/mpi_cnfg.h:    RAID_PHYS_DISK1_PATH            Path[] __counted_by(NumPhysDiskPaths);/* 0Ch */
mptbase.c:      phys_disk-&gt;NumPhysDiskPaths = buffer-&gt;NumPhysDiskPaths;
mptbase.c:      for (i = 0; i &lt; phys_disk-&gt;NumPhysDiskPaths; i++) {
mptbase.c:              phys_disk-&gt;Path[i].PhysDiskID = buffer-&gt;Path[i].PhysDiskID;
mptbase.c:              phys_disk-&gt;Path[i].PhysDiskBus = buffer-&gt;Path[i].PhysDiskBus;

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79 [1]
Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
Link: https://lore.kernel.org/r/20240711172821.123936-3-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: message: fusion: struct _CONFIG_PAGE_SAS_IO_UNIT_0: Replace 1-element array with flexible array</title>
<updated>2024-08-03T01:32:52Z</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2024-07-11T17:28:16Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=14c1f88c7f625dc12fb4a6f18154bcd6f7cd021f'/>
<id>urn:sha1:14c1f88c7f625dc12fb4a6f18154bcd6f7cd021f</id>
<content type='text'>
Replace the deprecated[1] use of a 1-element array in struct
_CONFIG_PAGE_SAS_IO_UNIT_0 with a modern flexible array.

Additionally add __counted_by annotation since PhyData is only ever
accessed via a loops bounded by NumPhys:

lsi/mpi_cnfg.h:    MPI_SAS_IO_UNIT0_PHY_DATA       PhyData[] __counted_by(NumPhys);    /* 10h */
mptsas.c:       port_info-&gt;num_phys = buffer-&gt;NumPhys;
mptsas.c:       for (i = 0; i &lt; port_info-&gt;num_phys; i++) {
mptsas.c:               mptsas_print_phy_data(ioc, &amp;buffer-&gt;PhyData[i]);
mptsas.c:               port_info-&gt;phy_info[i].phy_id = i;
mptsas.c:               port_info-&gt;phy_info[i].port_id =
mptsas.c:                   buffer-&gt;PhyData[i].Port;
mptsas.c:               port_info-&gt;phy_info[i].negotiated_link_rate =
mptsas.c:                   buffer-&gt;PhyData[i].NegotiatedLinkRate;

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79 [1]
Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
Link: https://lore.kernel.org/r/20240711172821.123936-2-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>scsi: message: fusion: struct _RAID_VOL0_SETTINGS: Replace 1-element array with flexible array</title>
<updated>2024-08-03T01:32:52Z</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2024-07-11T17:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=8e76c9c9dd117c95c0ae248a217197228000912c'/>
<id>urn:sha1:8e76c9c9dd117c95c0ae248a217197228000912c</id>
<content type='text'>
Replace the deprecated[1] use of a 1-element array in struct
_RAID_VOL0_SETTINGS with a modern flexible array.

Additionally add __counted_by annotation since PhysDisk is only ever
accessed via a loops bounded by NumPhysDisks:

lsi/mpi_cnfg.h:    RAID_VOL0_PHYS_DISK     PhysDisk[] __counted_by(NumPhysDisks); /* 28h */
mptbase.c:	for (i = 0; i &lt; buffer-&gt;NumPhysDisks; i++) {
mptbase.c:		    buffer-&gt;PhysDisk[i].PhysDiskNum, &amp;phys_disk) != 0)
mptsas.c:	for (i = 0; i &lt; buffer-&gt;NumPhysDisks; i++) {
mptsas.c:		    buffer-&gt;PhysDisk[i].PhysDiskNum, &amp;phys_disk) != 0)
mptsas.c:	for (i = 0; i &lt; buffer-&gt;NumPhysDisks; i++) {
mptsas.c:		    buffer-&gt;PhysDisk[i].PhysDiskNum, &amp;phys_disk) != 0)

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79 [1]
Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
Link: https://lore.kernel.org/r/20240711172821.123936-1-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi</title>
<updated>2024-05-15T01:25:53Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2024-05-15T01:25:53Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=113d1dd9c8ea2186d56a641a787e2588673c9c32'/>
<id>urn:sha1:113d1dd9c8ea2186d56a641a787e2588673c9c32</id>
<content type='text'>
Pull SCSI updates from James Bottomley:
 "Updates to the usual drivers (ufs, lpfc, qla2xxx, mpi3mr, libsas).

  The major update (which causes a conflict with block, see below) is
  Christoph removing the queue limits and their associated block
  helpers.

  The remaining patches are assorted minor fixes and deprecated function
  updates plus a bit of constification"

* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (141 commits)
  scsi: mpi3mr: Sanitise num_phys
  scsi: lpfc: Copyright updates for 14.4.0.2 patches
  scsi: lpfc: Update lpfc version to 14.4.0.2
  scsi: lpfc: Add support for 32 byte CDBs
  scsi: lpfc: Change lpfc_hba hba_flag member into a bitmask
  scsi: lpfc: Introduce rrq_list_lock to protect active_rrq_list
  scsi: lpfc: Clear deferred RSCN processing flag when driver is unloading
  scsi: lpfc: Update logging of protection type for T10 DIF I/O
  scsi: lpfc: Change default logging level for unsolicited CT MIB commands
  scsi: target: Remove unused list 'device_list'
  scsi: iscsi: Remove unused list 'connlist_err'
  scsi: ufs: exynos: Add support for Tensor gs101 SoC
  scsi: ufs: exynos: Add some pa_dbg_ register offsets into drvdata
  scsi: ufs: exynos: Allow max frequencies up to 267Mhz
  scsi: ufs: exynos: Add EXYNOS_UFS_OPT_TIMER_TICK_SELECT option
  scsi: ufs: exynos: Add EXYNOS_UFS_OPT_UFSPR_SECURE option
  scsi: ufs: dt-bindings: exynos: Add gs101 compatible
  scsi: qla2xxx: Fix debugfs output for fw_resource_count
  scsi: qedf: Ensure the copied buf is NUL terminated
  scsi: bfa: Ensure the copied buf is NUL terminated
  ...
</content>
</entry>
<entry>
<title>scsi: mptfusion: Avoid possible run-time warning with long manufacturer strings</title>
<updated>2024-04-25T17:41:19Z</updated>
<author>
<name>Kees Cook</name>
<email>keescook@chromium.org</email>
</author>
<published>2024-04-10T02:31:51Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=5bb288c4abc2e67d4ea94ba6bc80bb0ab18b123e'/>
<id>urn:sha1:5bb288c4abc2e67d4ea94ba6bc80bb0ab18b123e</id>
<content type='text'>
The prior strscpy() replacement of strncpy() here expected the
manufacture_reply strings to be NUL-terminated, but it is possible
they are not, as the code pattern here shows, e.g., edev-&gt;vendor_id
being exactly 1 character larger than manufacture_reply-&gt;vendor_id,
and the replaced strncpy() was copying only up to the size of the
source character array. Replace this with memtostr(), which is the
unambiguous way to convert a maybe not-NUL-terminated character array
into a NUL-terminated string.

Reported-by: Charles Bertsch &lt;cbertsch@cox.net&gt;
Closes: https://lore.kernel.org/all/5445ba0f-3e27-4d43-a9ba-0cc22ada2fce@cox.net/
Fixes: 45e833f0e5bb ("scsi: message: fusion: Replace deprecated strncpy() with strscpy()")
Reviewed-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Link: https://lore.kernel.org/r/20240410023155.2100422-2-keescook@chromium.org
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
</content>
</entry>
</feed>
