diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2025-01-08 09:04:30 +0000 |
|---|---|---|
| committer | Petr Pavlu <[email protected]> | 2025-01-26 12:04:37 +0000 |
| commit | a145c848d69f9c6f32008d8319edaa133360dd74 (patch) | |
| tree | 02bb13f2f668f034c665819e4404095fa98c0d18 /mm/debug.c | |
| parent | Linux 6.13 (diff) | |
| download | kernel-a145c848d69f9c6f32008d8319edaa133360dd74.tar.gz kernel-a145c848d69f9c6f32008d8319edaa133360dd74.zip | |
module: Extend the preempt disabled section in dereference_symbol_descriptor().
dereference_symbol_descriptor() needs to obtain the module pointer
belonging to pointer in order to resolve that pointer.
The returned mod pointer is obtained under RCU-sched/ preempt_disable()
guarantees and needs to be used within this section to ensure that the
module is not removed in the meantime.
Extend the preempt_disable() section to also cover
dereference_module_function_descriptor().
Fixes: 04b8eb7a4ccd9 ("symbol lookup: introduce dereference_symbol_descriptor()")
Cc: James E.J. Bottomley <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: Madhavan Srinivasan <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Naveen N Rao <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Sergey Senozhatsky <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Pavlu <[email protected]>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions
