diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-11-11 14:10:56 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-11-20 21:55:24 -0500 |
commit | 5cd3167a5ebbbe49516f29e5dd16317ab6ff479a (patch) | |
tree | d3e7fb2c2f7c978c728c8e0e8f112b6d70b6f9f6 /scripts | |
parent | 50740f4dc78b41dec7c8e39772619d5ba841ddd7 (diff) |
scsi: target: tcmu: Constify some structures
'struct nla_policy' and 'struct match_table_t' are not modified in this
driver.
Constifying these structures moves some data to a read-only section, so
increase overall security, especially when the structure holds some
function pointers, which is the case of struct nla_policy.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
93188 6933 338 100459 1886b drivers/target/target_core_user.o
After:
=====
text data bss dec hex filename
93508 6581 338 100427 1884b drivers/target/target_core_user.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f83cd8469cc17391178e1181e8c26c4c1fb6028f.1731330634.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions