RE: [PATCH 00/14] Fix wrong %pF and %pS printk format specifier usages
From: Luck, Tony
Date: Thu Sep 07 2017 - 12:06:02 EST
>> if (not_a_function_descriptor(ptr))
>> return ptr;
>
> I'm not sure if it's possible on ia64/ppc64/parisc64
> to reliably detect if it's a function descriptor or not.
Agreed. I don't know how to write this test (without changing the compiler to
put the pointers in a separate section ... and then changing the module loader
to keep a list of all these sections).
-Tony