On (24/12/20 18:41), Sebastian Andrzej Siewior wrote:
> 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]
> Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
FWIW
Reviewed-by: Sergey Senozhatsky <[email protected]>