mirror-linux/drivers/target
Christophe JAILLET fd2963e729 scsi: target: core: Constify struct target_opcode_descriptor
Instances of 'struct target_opcode_descriptor' are not modified in this
driver.

Constifying this structure moves some data to a read-only section, so
increase overall security, especially when the structure holds some
function pointers.

On a x86_64, with allmodconfig:
Before:
======
   text	   data	    bss	    dec	    hex	filename
  53602	  19750	      0	  73352	  11e88	drivers/target/target_core_spc.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  58594	  14758	      0	  73352	  11e88	drivers/target/target_core_spc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/889ee46e75db33e8ab997a627a1d3d651ad648db.1747592774.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2025-05-20 22:11:03 -04:00
..
iscsi scsi: target: iscsi: Fix timeout on deleted connection 2025-04-11 22:13:00 -04:00
loopback scsi: target: tcm_loop: Fix wrong abort tag 2025-03-17 22:04:21 -04:00
sbp move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
tcm_fc move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
tcm_remote
Kconfig
Makefile
target_core_alua.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
target_core_alua.h
target_core_configfs.c scsi: target: Remove size arguments when calling strscpy() 2025-04-11 21:58:53 -04:00
target_core_device.c scsi: target: Move delayed/ordered tracking to per CPU 2025-04-28 21:47:55 -04:00
target_core_fabric_configfs.c
target_core_fabric_lib.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
target_core_file.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
target_core_file.h
target_core_hba.c
target_core_iblock.c block: split struct bio_integrity_payload 2025-03-03 11:17:52 -07:00
target_core_iblock.h target: port block device access to file 2024-02-25 12:05:25 +01:00
target_core_internal.h
target_core_pr.c scsi: usb: Rename the RESERVE and RELEASE constants 2025-02-12 22:20:55 -05:00
target_core_pr.h
target_core_pscsi.c block: remove bio_add_pc_page 2025-01-04 15:27:35 -07:00
target_core_pscsi.h target: port block device access to file 2024-02-25 12:05:25 +01:00
target_core_rd.c
target_core_rd.h
target_core_sbc.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
target_core_spc.c scsi: target: core: Constify struct target_opcode_descriptor 2025-05-20 22:11:03 -04:00
target_core_stat.c scsi: target: Move I/O path stats to per CPU 2025-04-28 21:47:55 -04:00
target_core_tmr.c
target_core_tpg.c
target_core_transport.c scsi: target: Move delayed/ordered tracking to per CPU 2025-04-28 21:47:55 -04:00
target_core_ua.c
target_core_ua.h
target_core_user.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
target_core_xcopy.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
target_core_xcopy.h