[PATCH v2 01/28] module: Extend the preempt disabled section in dereference_symbol_descriptor().

Sergey Senozhatsky senozhatsky at chromium.org
Tue Jan 7 21:58:43 AEDT 2025


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" <James.Bottomley at HansenPartnership.com>
> Cc: Christophe Leroy <christophe.leroy at csgroup.eu>
> Cc: Helge Deller <deller at gmx.de>
> Cc: Madhavan Srinivasan <maddy at linux.ibm.com>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Cc: Naveen N Rao <naveen at kernel.org>
> Cc: Nicholas Piggin <npiggin at gmail.com>
> Cc: Sergey Senozhatsky <sergey.senozhatsky.work at gmail.com>
> Cc: linux-parisc at vger.kernel.org
> Cc: linuxppc-dev at lists.ozlabs.org
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>

FWIW
Reviewed-by: Sergey Senozhatsky <senozhatsky at chromium.org>


More information about the Linuxppc-dev mailing list