diff options
| author | Christophe JAILLET <[email protected]> | 2024-06-14 16:25:07 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-06-25 05:25:10 +0000 |
| commit | 3ebe69c0c3ae3ef5ecd1ad86aa98a3b7cbe3c7e9 (patch) | |
| tree | e52a492ae68db55ca451686abc26ebefab49d3ae /lib/dump_stack.c | |
| parent | lib/plist.c: avoid worst case scenario in plist_add (diff) | |
| download | kernel-3ebe69c0c3ae3ef5ecd1ad86aa98a3b7cbe3c7e9.tar.gz kernel-3ebe69c0c3ae3ef5ecd1ad86aa98a3b7cbe3c7e9.zip | |
ocfs2: constify struct ocfs2_lock_res_ops
"struct ocfs2_lock_res_ops" are not modified in this driver.
Constifying this structure moves some data to a read-only section, so
increase overall security.
In order to do it, "struct ocfs2_lock_res" also needs to be adjusted to
this new const qualifier.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
83038 2632 400 86070 15036 fs/ocfs2/dlmglue.o
After:
=====
text data bss dec hex filename
83806 1992 272 86070 15036 fs/ocfs2/dlmglue.o
Link: https://lkml.kernel.org/r/43d3e2ae3a97d3cbe93d6ba6ce48ae5ec04d7526.1718382288.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Cc: Changwei Ge <[email protected]>
Cc: Gang He <[email protected]>
Cc: Jun Piao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions
