WSL2-Linux-Kernel/drivers/scsi/aic7xxx
Kees Cook 32e7e06f60 scsi: aic79xx: Use __ro_after_init explicitly
ahd_linux_setup_iocell_info() intentionally writes to the const-marked
aic79xx_iocell_info array, but is called during __init, so the location is
actually writable at this point on most architectures. Annotate this
explicitly with __ro_after_init to avoid static analysis confusion.

Link: https://lpc.events/event/16/contributions/1175/attachments/1109/2128/2022-LPC-analyzer-talk.pdf
Link: https://lore.kernel.org/r/20220914115953.3854029-1-keescook@chromium.org
Cc: Hannes Reinecke <hare@suse.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Reported-by: David Malcolm <dmalcolm@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-09-15 22:01:24 -04:00
..
aicasm scsi: aic7xxx: Fix typos in comments 2022-03-15 00:32:15 -04:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Kconfig.aic7xxx treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Kconfig.aic79xx treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
aic7xxx.h scsi: aic7xxx: Remove unused function pointer typedef ahc_bus_suspend/resume_t 2021-02-22 22:27:59 -05:00
aic7xxx.reg
aic7xxx.seq
aic7xxx_93cx6.c scsi: aic7xxx: aic79xx: Whitespace cleanup 2021-01-22 21:14:08 -05:00
aic7xxx_93cx6.h
aic7xxx_core.c scsi: aic7xxx: Fix unintentional sign extension issue on left shift of u8 2021-06-22 21:16:47 -04:00
aic7xxx_inline.h
aic7xxx_osm.c scsi: core: Remove the 'done' argument from SCSI queuecommand_lck functions 2021-10-16 21:32:16 -04:00
aic7xxx_osm.h scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic7xxx_osm_pci.c scsi: aic7xxx: Use generic power management 2020-11-25 23:14:30 -05:00
aic7xxx_pci.c scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic7xxx_pci.h
aic7xxx_proc.c scsi: aic7xxx: aic79xx: Whitespace cleanup 2021-01-22 21:14:08 -05:00
aic7xxx_reg.h_shipped
aic7xxx_reg_print.c_shipped
aic7xxx_seq.h_shipped
aic79xx.h scsi: aic79xx: Fix spelling of version 2021-02-22 22:23:47 -05:00
aic79xx.reg
aic79xx.seq
aic79xx_core.c scsi: aic7xxx: aic79xx: Drop internal SCSI message definition 2021-01-22 21:14:10 -05:00
aic79xx_inline.h
aic79xx_osm.c scsi: aic79xx: Use __ro_after_init explicitly 2022-09-15 22:01:24 -04:00
aic79xx_osm.h scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic79xx_osm_pci.c scsi: aic7xxx: aic79xx: Whitespace cleanup 2021-01-22 21:14:08 -05:00
aic79xx_pci.c scsi: aic7xxx: Use standard PCI subsystem, subdevice defines 2022-03-30 00:00:59 -04:00
aic79xx_pci.h
aic79xx_proc.c scsi: aic7xxx: aic79xx: Whitespace cleanup 2021-01-22 21:14:08 -05:00
aic79xx_reg.h_shipped
aic79xx_reg_print.c_shipped
aic79xx_seq.h_shipped
aic7770.c
aic7770_osm.c
aiclib.h scsi: aic7xxx: aic79xx: Remove driver-defined SAM status definitions 2021-01-22 21:14:08 -05:00
cam.h
queue.h
scsi_iu.h
scsi_message.h scsi: aic7xxx: Restore several defines for aic7xxx firmware build 2021-05-21 22:02:42 -04:00