Re: [PATCH v2 08/13] asm-generic: Refactor dereference_[kernel]_function_descriptor()

2021-10-15 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 14, 2021 3:49 pm: > dereference_function_descriptor() and > dereference_kernel_function_descriptor() are identical on the > three architectures implementing them. > > Make them common and put them out-of-line in kernel/extable.c > which is one

[PATCH v2 08/13] asm-generic: Refactor dereference_[kernel]_function_descriptor()

2021-10-14 Thread Christophe Leroy
dereference_function_descriptor() and dereference_kernel_function_descriptor() are identical on the three architectures implementing them. Make them common and put them out-of-line in kernel/extable.c which is one of the users and has similar type of functions. Reviewed-by: Kees Cook