Commit 5d1cf9f
scsi: Constify struct pci_error_handlers
JIRA: https://issues.redhat.com/browse/RHEL-81907
'struct pci_error_handlers' are not modified in these drivers.
Constifying these structures 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, as an example:
Before:
======
text data bss dec hex filename
39049 6429 112 45590 b216 drivers/scsi/aacraid/linit.o
After:
=====
text data bss dec hex filename
39113 6365 112 45590 b216 drivers/scsi/aacraid/linit.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/efdec8425981e10fc398fa2ac599c9c45d930561.1737318548.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 14807b4)
Signed-off-by: Chandrakanth Patil <chanpati@redhat.com>1 parent 386c271 commit 5d1cf9f
File tree
8 files changed
+8
-8
lines changed- drivers/scsi
- aacraid
- be2iscsi
- bfa
- csiostor
- elx/efct
- mpi3mr
- mpt3sas
- qedi
8 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2023 | 2023 | | |
2024 | 2024 | | |
2025 | 2025 | | |
2026 | | - | |
| 2026 | + | |
2027 | 2027 | | |
2028 | 2028 | | |
2029 | 2029 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5775 | 5775 | | |
5776 | 5776 | | |
5777 | 5777 | | |
5778 | | - | |
| 5778 | + | |
5779 | 5779 | | |
5780 | 5780 | | |
5781 | 5781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
1671 | | - | |
| 1671 | + | |
1672 | 1672 | | |
1673 | 1673 | | |
1674 | 1674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
| 742 | + | |
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5803 | 5803 | | |
5804 | 5804 | | |
5805 | 5805 | | |
5806 | | - | |
| 5806 | + | |
5807 | 5807 | | |
5808 | 5808 | | |
5809 | 5809 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12747 | 12747 | | |
12748 | 12748 | | |
12749 | 12749 | | |
12750 | | - | |
| 12750 | + | |
12751 | 12751 | | |
12752 | 12752 | | |
12753 | 12753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2877 | 2877 | | |
2878 | 2878 | | |
2879 | 2879 | | |
2880 | | - | |
| 2880 | + | |
2881 | 2881 | | |
2882 | 2882 | | |
2883 | 2883 | | |
| |||
0 commit comments