diff options
author | Petr Pavlu <petr.pavlu@suse.com> | 2025-03-06 14:13:54 +0100 |
---|---|---|
committer | Petr Pavlu <petr.pavlu@suse.com> | 2025-05-18 13:56:22 +0200 |
commit | 60b57b9cb002df575a54635da1c55f361533deb7 (patch) | |
tree | b6831df29ea34318bee0fb0b839dabf30de3f868 /scripts/gdb/linux/utils.py | |
parent | f7984942630b0508c44276ceaa3a3a47d8fd3d2c (diff) |
module: Make .static_call_sites read-only after init
Section .static_call_sites holds data structures that need to be sorted and
processed only at module load time. This initial processing happens in
static_call_add_module(), which is invoked as a callback to the
MODULE_STATE_COMING notification from prepare_coming_module().
The section is never modified afterwards. Make it therefore read-only after
module initialization to avoid any (non-)accidental modifications.
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20250306131430.7016-4-petr.pavlu@suse.com
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions